aboutsummaryrefslogtreecommitdiff
path: root/test-machine
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-02-07 08:03:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-02-07 08:03:46 +0200
commit4d65666e5ab4774209a2e14c426c75191ab2ff04 (patch)
treed4589f6c2f762f997dc091de2a3b752fae5fb99f /test-machine
parent1fd86636b0d70d754caf205d8048893a9c9793c3 (diff)
Start QMP monitor in test-machine
Diffstat (limited to 'test-machine')
-rwxr-xr-xtest-machine11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-machine b/test-machine
index c6e9674..56c08e2 100755
--- a/test-machine
+++ b/test-machine
@@ -33,12 +33,23 @@ sudo ip link set "$tap" master "$br"
"${kvm[@]}" \
-m 8G \
-cpu host -smp "8,sockets=1,cores=4,threads=2" \
+ \
-netdev "tap,id=net0,ifname=$tap,script=no" \
-device "virtio-net-pci,netdev=net0,mac=$mac" \
+ \
-drive "if=none,id=disk0,file=$dir/disk.img,format=raw" \
-device "virtio-blk-pci,scsi=off,drive=disk0" \
+ \
+ -chardev stdio,id=qmp \
+ -mon chardev=qmp,mode=control,pretty=on \
+ \
-boot c "$@"
+# -chardev socket,id=mon,path=/tmp/test-machine-sock,server,nowait \
+# -mon chardev=mon,mode=readline \
+
+# { "execute": "qmp_capabilities" }
+
# -device "virtio-blk-pci,scsi=off,drive=disk0"
#
# -device "virtio-scsi-pci,id=scsi" \