aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-07 17:06:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-07 17:06:30 +0200
commit15d04f51966049004d0523b5a16f473aa4c892ab (patch)
treebddc988998ba6f2e08c4e0c2f23fe019371e4873
parent75f067664109fd4ba8ae53189dcb1bb0ad5b00f3 (diff)
Use qemu-system-x86_64 instead of kvm wrapper
Some distributions (like Fedora) don't have it.
-rwxr-xr-xtest-machine5
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" \