2 Enabling migration QMP events on VM...
5 === Migrate to file ===
6 {"execute": "migrate", "arguments": {"uri": "exec:cat > /dev/null"}}
8 {"data": {"status": "setup"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
9 {"data": {"status": "active"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
10 {"data": {"status": "completed"}, "event": "MIGRATION", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
14 {"execute": "query-status", "arguments": {}}
15 {"return": {"running": false, "singlestep": false, "status": "postmigrate"}}
17 === Create a snapshot of the disk image ===
18 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "file", "filename": "TEST_DIR/PID-top", "size": 0}}}
20 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
23 {"execute": "blockdev-add", "arguments": {"driver": "file", "filename": "TEST_DIR/PID-top", "node-name": "top-file"}}
25 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "qcow2", "file": "top-file", "size": 1048576}}}
27 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
30 {"execute": "blockdev-add", "arguments": {"driver": "qcow2", "file": "top-file", "node-name": "top-fmt"}}
32 {"execute": "blockdev-snapshot", "arguments": {"node": "base-fmt", "overlay": "top-fmt"}}
35 === Resume the VM and simulate a write request ===
36 {"execute": "cont", "arguments": {}}
40 === Commit it to the backing file ===
41 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "device": "top-fmt", "job-id": "job0", "top-node": "top-fmt"}}
43 {"execute": "job-complete", "arguments": {"id": "job0"}}
45 {"data": {"device": "job0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
46 {"data": {"device": "job0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
47 {"execute": "job-dismiss", "arguments": {"id": "job0"}}