diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-07 09:31:35 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-08-07 09:31:35 +0100 |
commit | b5b87cdb764dc757295316878a7fd6e2ff01bec4 (patch) | |
tree | 4be498378001dc98d35bfb5dc6e408ff557b371e /src | |
parent | 39e4f1dad208124640f0f795518390ba680a9704 (diff) | |
download | libguestfs-b5b87cdb764dc757295316878a7fd6e2ff01bec4.tar.gz libguestfs-b5b87cdb764dc757295316878a7fd6e2ff01bec4.tar.xz libguestfs-b5b87cdb764dc757295316878a7fd6e2ff01bec4.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/guestfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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")) |