From 4d65666e5ab4774209a2e14c426c75191ab2ff04 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Feb 2019 08:03:46 +0200 Subject: Start QMP monitor in test-machine --- test-machine | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test-machine') 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" \ -- cgit v1.1