Permalink
Browse files

Fix kvm for modern machines.

  • Loading branch information...
1 parent 6648130 commit 07d7c8d06bf14e17b6185858fa086ef087e3d887 @rustyrussell committed Jul 5, 2011
Showing with 3 additions and 8 deletions.
  1. +1 −6 SETTINGS
  2. +2 −2 kvm/start_machine
View
@@ -12,13 +12,8 @@ fi
LOGFILES=/tmp/virtbench.log
# KVM settings
-if [ `uname -m` = x86_64 ]; then
- QEMU=qemu-system-x86_64
-else
- QEMU=qemu
-fi
+KVM=kvm
# Lguest settings
-SHARENET_FILE=/tmp/virtbench-lguest-net
LGUEST=/lib/modules/`uname -r`/build/Documentation/lguest/lguest
View
@@ -7,8 +7,8 @@ IPADDR=192.168.12.$(($1+1))
export IPADDR
# Redirect everything so this doesn't hold pipe open.
-$QEMU -m 512 \
- -net nic -net tap,ifname=tap$1,script=kvm/ifup \
+$KVM -m 512 \
+ -net nic,model=virtio -net tap,ifname=tap$1,script=kvm/ifup \
-nographic -hda scratchfile \
-kernel $KERNEL \
-initrd initrd.gz \

0 comments on commit 07d7c8d

Please sign in to comment.