Change 4963be85 re-introduced networking to the appliance, but didn't configure the custom network the appliance expects since we switched to link local addressing. This patch configures QEMU to use the custom network again. --- src/launch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Fix-networking-in-the-appliance.patch Type: text/x-patch Size: 457 bytes Desc: not available URL: <http://listman.redhat.com/archives/libguestfs/attachments/20101027/8794f5a1/attachment.bin>
Richard W.M. Jones
2010-Oct-27 10:00 UTC
[Libguestfs] [PATCH] Fix networking in the appliance
On Wed, Oct 27, 2010 at 10:53:08AM +0100, Matthew Booth wrote:> > Change 4963be85 re-introduced networking to the appliance, but didn't configure > the custom network the appliance expects since we switched to link local > addressing. This patch configures QEMU to use the custom network again. > --- > src/launch.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >> diff --git a/src/launch.c b/src/launch.c > index 02704a1..e5bca56 100644 > --- a/src/launch.c > +++ b/src/launch.c > @@ -490,7 +490,7 @@ guestfs__launch (guestfs_h *g) > /* Enable user networking. */ > if (g->enable_network) { > add_cmdline (g, "-netdev"); > - add_cmdline (g, "user,id=usernet"); > + add_cmdline (g, "user,id=usernet,net=169.254.0.0/16"); > add_cmdline (g, "-device"); > add_cmdline (g, NET_IF ",netdev=usernet"); > }ACK, this works for me. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
Apparently Analagous Threads
- [PATCH] New APIs: set-network and get-network to enable network support.
- [PATCH 00/10] Remove the need for vmchannel
- [PATCH 0/5] Assorted patches to add virtio-scsi support.
- [PATCH 1/2] appliance: Use dhclient instead of hard-coding IP address of appliance.
- [PATCH 0/3] RFC: Allow use of external QEMU process with libguestfs