From 1688a6d41603215e811eadf8b69ec7147fb7d478 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Thu, 14 Oct 2010 19:08:44 -0500 Subject: [PATCH] Change KVM to use e1000 add -net nic,model=e1000 in start_kvm and in the suggested command as output by image_to_vm.sh Signed-off-by: Olof Johansson BUG=none TEST=Boot an image, run lspci in a terminal, see intel nic Review URL: http://codereview.chromium.org/3779007 Change-Id: Id7f614adec0ae69b8f4de152832538a13ea4cbad --- image_to_vm.sh | 2 +- lib/cros_vm_lib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image_to_vm.sh b/image_to_vm.sh index d6ff61fa8b..382d4ac763 100755 --- a/image_to_vm.sh +++ b/image_to_vm.sh @@ -280,7 +280,7 @@ fi if [ "${FLAGS_format}" == "qemu" ]; then echo "If you have qemu-kvm installed, you can start the image by:" - echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic " \ + echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic,model=e1000 " \ "-net user,hostfwd=tcp::922-:22 \\" echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}" fi diff --git a/lib/cros_vm_lib.sh b/lib/cros_vm_lib.sh index f36804d378..1809acc9d1 100644 --- a/lib/cros_vm_lib.sh +++ b/lib/cros_vm_lib.sh @@ -51,7 +51,7 @@ function start_kvm() { -vga std \ -pidfile "${KVM_PID_FILE}" \ -daemonize \ - -net nic \ + -net nic,model=e1000 \ ${nographics} \ ${snapshot} \ -net user,hostfwd=tcp::${FLAGS_ssh_port}-:22 \