7 The QEMU Monitor Protocol (QMP) allows applications to communicate with
10 QMP is JSON[1] based and has the following features:
12 - Lightweight, text-based, easy to parse data format
13 - Asynchronous events support
16 For more information, please, refer to the following files:
18 o qmp-spec.txt QEMU Monitor Protocol current specification
19 o qmp-commands.txt QMP supported commands
20 o qmp-events.txt List of available asynchronous events
22 There are also two simple Python scripts available:
25 o vm-info Show some information about the Virtual Machine
27 [1] http://www.json.org
32 To enable QMP, QEMU has to be started in "control mode". There are
33 two ways of doing this, the simplest one is using the the '-qmp'
38 $ qemu [...] -qmp tcp:localhost:4444,server
40 Will start QEMU in control mode, waiting for a client TCP connection
41 on localhost port 4444.
43 It is also possible to use the '-mon' command-line option to have
44 more complex combinations. Please, refer to the QEMU's manpage for
50 To manually test QMP one can connect with telnet and issue commands:
52 $ telnet localhost 4444
54 Connected to localhost.
55 Escape character is '^]'.
56 {"QMP": {"version": {"qemu": "0.12.50", "package": ""}, "capabilities": []}}
57 { "execute": "qmp_capabilities" }
59 { "execute": "query-version" }
60 {"return": {"qemu": "0.12.50", "package": ""}}
65 http://www.linux-kvm.org/page/MonitorProtocol
66 Luiz Fernando N. Capitulino <lcapitulino@redhat.com>