From b5b87cdb764dc757295316878a7fd6e2ff01bec4 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 7 Aug 2009 09:31:35 +0100 Subject: Allow network interface to be configured. Add ./configure --with-net-if=(virtio|ne2k_pci) option. This lets you workaround the following virtio_net bug: https://bugzilla.redhat.com/show_bug.cgi?id=516022 --- src/guestfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/guestfs.c') diff --git a/src/guestfs.c b/src/guestfs.c index de632751..186c5708 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -1103,7 +1103,7 @@ guestfs_launch (guestfs_h *g) } #endif add_cmdline (g, "-net"); - add_cmdline (g, "nic,model=virtio,vlan=0"); /* model=ne2k_pci also works */ + add_cmdline (g, "nic,model=" NET_IF ",vlan=0"); /* These options recommended by KVM developers to improve reliability. */ if (qemu_supports (g, "-no-hpet")) -- cgit