7 The QEMU Monitor Protocol (QMP) is a JSON[1] based protocol for QEMU.
9 By using it applications can control QEMU in reliable and "parseable" way,
10 QMP also provides asynchronous events support.
12 For more information, please, refer to the following files:
14 o qmp-spec.txt QEMU Monitor Protocol current draft specification
15 o qmp-events.txt List of available asynchronous events
17 There are also two simple Python scripts available:
20 o vm-info Show some informations about the Virtal Machine
22 [1] http://www.json.org
27 To enable QMP, QEMU has to be started in "control mode". This is done
28 by passing the flag "control" to the "-monitor" command-line option.
32 $ qemu [...] -monitor control,tcp:localhost:4444,server
34 Will start QEMU in control mode, waiting for a client TCP connection
35 on localhost port 4444.
37 To manually test it you can connect with telnet and issue commands:
39 $ telnet localhost 4444
41 Connected to localhost.
42 Escape character is '^]'.
43 {"QMP": {"capabilities": []}}
44 { "execute": "query-version" }
50 http://www.linux-kvm.org/page/MonitorProtocol
51 Luiz Fernando N. Capitulino <lcapitulino@redhat.com>