1 QEMU Monitor Protocol Events
2 ============================
7 Emitted when a disk I/O error occurs.
11 - "device": device name (json-string)
12 - "operation": I/O operation (json-string, "read" or "write")
13 - "action": action that has been taken, it's one of the following (json-string):
14 "ignore": error has been ignored
15 "report": error has been reported to the device
16 "stop": error caused VM to be stopped
20 { "event": "BLOCK_IO_ERROR",
21 "data": { "device": "ide0-hd1",
24 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
26 Note: If action is "stop", a STOP event will eventually follow the
32 It's emitted whenever the tray of a removable device is moved by the guest
33 or by HMP/QMP commands.
37 - "device": device name (json-string)
38 - "tray-open": true if the tray has been opened or false if it has been closed
41 { "event": "DEVICE_TRAY_MOVED",
42 "data": { "device": "ide1-cd0",
45 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
50 Emitted when the Virtual Machine is reseted.
57 "timestamp": { "seconds": 1267041653, "microseconds": 9518 } }
62 Emitted when the Virtual Machine resumes execution.
69 "timestamp": { "seconds": 1271770767, "microseconds": 582542 } }
74 Emitted when the guest changes the RTC time.
78 - "offset": delta against the host UTC in seconds (json-number)
82 { "event": "RTC_CHANGE",
83 "data": { "offset": 78 },
84 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
89 Emitted when the Virtual Machine is powered down.
95 { "event": "SHUTDOWN",
96 "timestamp": { "seconds": 1267040730, "microseconds": 682951 } }
98 Note: If the command-line option "-no-shutdown" has been specified, a STOP
99 event will eventually follow the SHUTDOWN event.
104 Emitted when the Virtual Machine is stopped.
111 "timestamp": { "seconds": 1267041730, "microseconds": 281295 } }
116 Emitted when a VNC client establishes a connection.
120 - "server": Server information (json-object)
121 - "host": IP address (json-string)
122 - "service": port number (json-string)
123 - "family": address family (json-string, "ipv4" or "ipv6")
124 - "auth": authentication method (json-string, optional)
125 - "client": Client information (json-object)
126 - "host": IP address (json-string)
127 - "service": port number (json-string)
128 - "family": address family (json-string, "ipv4" or "ipv6")
132 { "event": "VNC_CONNECTED",
134 "server": { "auth": "sasl", "family": "ipv4",
135 "service": "5901", "host": "0.0.0.0" },
136 "client": { "family": "ipv4", "service": "58425",
137 "host": "127.0.0.1" } },
138 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
141 Note: This event is emitted before any authentication takes place, thus
142 the authentication ID is not provided.
147 Emitted when the connection is closed.
151 - "server": Server information (json-object)
152 - "host": IP address (json-string)
153 - "service": port number (json-string)
154 - "family": address family (json-string, "ipv4" or "ipv6")
155 - "auth": authentication method (json-string, optional)
156 - "client": Client information (json-object)
157 - "host": IP address (json-string)
158 - "service": port number (json-string)
159 - "family": address family (json-string, "ipv4" or "ipv6")
160 - "x509_dname": TLS dname (json-string, optional)
161 - "sasl_username": SASL username (json-string, optional)
165 { "event": "VNC_DISCONNECTED",
167 "server": { "auth": "sasl", "family": "ipv4",
168 "service": "5901", "host": "0.0.0.0" },
169 "client": { "family": "ipv4", "service": "58425",
170 "host": "127.0.0.1", "sasl_username": "luiz" } },
171 "timestamp": { "seconds": 1262976601, "microseconds": 975795 } }
176 Emitted after authentication takes place (if any) and the VNC session is
181 - "server": Server information (json-object)
182 - "host": IP address (json-string)
183 - "service": port number (json-string)
184 - "family": address family (json-string, "ipv4" or "ipv6")
185 - "auth": authentication method (json-string, optional)
186 - "client": Client information (json-object)
187 - "host": IP address (json-string)
188 - "service": port number (json-string)
189 - "family": address family (json-string, "ipv4" or "ipv6")
190 - "x509_dname": TLS dname (json-string, optional)
191 - "sasl_username": SASL username (json-string, optional)
195 { "event": "VNC_INITIALIZED",
197 "server": { "auth": "sasl", "family": "ipv4",
198 "service": "5901", "host": "0.0.0.0"},
199 "client": { "family": "ipv4", "service": "46089",
200 "host": "127.0.0.1", "sasl_username": "luiz" } },
201 "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
203 SPICE_CONNECTED, SPICE_DISCONNECTED
204 -----------------------------------
206 Emitted when a SPICE client connects or disconnects.
210 - "server": Server information (json-object)
211 - "host": IP address (json-string)
212 - "port": port number (json-string)
213 - "family": address family (json-string, "ipv4" or "ipv6")
214 - "client": Client information (json-object)
215 - "host": IP address (json-string)
216 - "port": port number (json-string)
217 - "family": address family (json-string, "ipv4" or "ipv6")
221 { "timestamp": {"seconds": 1290688046, "microseconds": 388707},
222 "event": "SPICE_CONNECTED",
224 "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
225 "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
232 Emitted after initial handshake and authentication takes place (if any)
233 and the SPICE channel is up'n'running
237 - "server": Server information (json-object)
238 - "host": IP address (json-string)
239 - "port": port number (json-string)
240 - "family": address family (json-string, "ipv4" or "ipv6")
241 - "auth": authentication method (json-string, optional)
242 - "client": Client information (json-object)
243 - "host": IP address (json-string)
244 - "port": port number (json-string)
245 - "family": address family (json-string, "ipv4" or "ipv6")
246 - "connection-id": spice connection id. All channels with the same id
247 belong to the same spice session (json-int)
248 - "channel-type": channel type. "1" is the main control channel, filter for
249 this one if you want track spice sessions only (json-int)
250 - "channel-id": channel id. Usually "0", might be different needed when
251 multiple channels of the same type exist, such as multiple
252 display channels in a multihead setup (json-int)
253 - "tls": whevener the channel is encrypted (json-bool)
257 { "timestamp": {"seconds": 1290688046, "microseconds": 417172},
258 "event": "SPICE_INITIALIZED",
259 "data": {"server": {"auth": "spice", "port": "5921",
260 "family": "ipv4", "host": "127.0.0.1"},
261 "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
262 "connection-id": 1804289383, "host": "127.0.0.1",
263 "channel-id": 0, "tls": true}
270 Emitted when the watchdog device's timer is expired.
274 - "action": Action that has been taken, it's one of the following (json-string):
275 "reset", "shutdown", "poweroff", "pause", "debug", or "none"
279 { "event": "WATCHDOG",
280 "data": { "action": "reset" },
281 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
283 Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is
284 followed respectively by the RESET, SHUTDOWN, or STOP events.
290 Emitted when a block job has completed.
294 - "type": Job type ("stream" for image streaming, json-string)
295 - "device": Device name (json-string)
296 - "len": Maximum progress value (json-int)
297 - "offset": Current progress value (json-int)
298 On success this is equal to len.
299 On failure this is less than len.
300 - "speed": Rate limit, bytes per second (json-int)
301 - "error": Error message (json-string, optional)
302 Only present on failure. This field contains a human-readable
303 error message. There are no semantics other than that streaming
304 has failed and clients should not try to interpret the error
309 { "event": "BLOCK_JOB_COMPLETED",
310 "data": { "type": "stream", "device": "virtio-disk0",
311 "len": 10737418240, "offset": 10737418240,
313 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
319 Emitted when a block job has been cancelled.
323 - "type": Job type ("stream" for image streaming, json-string)
324 - "device": Device name (json-string)
325 - "len": Maximum progress value (json-int)
326 - "offset": Current progress value (json-int)
327 On success this is equal to len.
328 On failure this is less than len.
329 - "speed": Rate limit, bytes per second (json-int)
333 { "event": "BLOCK_JOB_CANCELLED",
334 "data": { "type": "stream", "device": "virtio-disk0",
335 "len": 10737418240, "offset": 134217728,
337 "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }