From 15d04f51966049004d0523b5a16f473aa4c892ab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 7 Jan 2018 17:06:30 +0200 Subject: Use qemu-system-x86_64 instead of kvm wrapper Some distributions (like Fedora) don't have it. --- test-machine | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test-machine') 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" \ -- cgit v1.1