diff options
Diffstat (limited to 'test-machine')
-rwxr-xr-x | test-machine | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test-machine b/test-machine index 55df723..c6e9674 100755 --- a/test-machine +++ b/test-machine @@ -20,6 +20,7 @@ fi br=br0 mac="de:ad:be:ef:b8:da" +kvm=(qemu-system-x86_64 -enable-kvm) tap=tap0 @@ -29,7 +30,7 @@ sudo ip link set "$tap" up #sleep 0.5s sudo ip link set "$tap" master "$br" -kvm \ +"${kvm[@]}" \ -m 8G \ -cpu host -smp "8,sockets=1,cores=4,threads=2" \ -netdev "tap,id=net0,ifname=$tap,script=no" \ @@ -56,7 +57,7 @@ sudo ip tuntap delete "$tap" mode tap exit 0 -sudo kvm \ +sudo "${kvm[@]}" \ -m 8G \ -cpu host -smp "sockets=1,cores=4,threads=2" \ -device "virtio-net-pci,netdev=net0,mac=$mac" \ |