diff options
Diffstat (limited to 'test-machine')
-rwxr-xr-x | test-machine | 11 |
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" \ |