From 6928140540461cae7d68c872c3b5a5867db60872 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 16 Feb 2015 20:49:13 -0700 Subject: [PATCH] Switch to virtio --- scripts/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/run b/scripts/run index 35b33657..67fa7724 100755 --- a/scripts/run +++ b/scripts/run @@ -41,5 +41,6 @@ else zcat ${HD_GZ} > ${HD} fi - kvm -m 1024 -kernel ${KERNEL} -initrd ${INITRD_TEST} -append "$@" -hda ${HD} -serial stdio -netdev user,id=hostnet0 -device virtio-net-pci,romfile=,netdev=hostnet0 + qemu-system-x86_64 -kernel ${KERNEL} -initrd ${INITRD_TEST} -m 1024 -net nic,vlan=0,model=virtio -net user,vlan=0,hostfwd=tcp::2222-:22,hostname=rancher -drive if=virtio,file=${HD} -machine accel=kvm -cpu host -smp 4 -append "x $@" + fi