[libvirt] [PATCH] network: bridge: Don't start network if it collides with host routing

Dave Allan dallan at redhat.com
Fri May 21 14:10:25 UTC 2010


On Fri, May 21, 2010 at 01:23:32AM -0400, Laine Stump wrote:
> On 05/20/2010 07:41 PM, Cole Robinson wrote:
> >Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=235961
> >
> >If using the default virtual network, an easy way to lose guest network
> >connectivity is to install libvirt inside the VM. The autostarted
> >default network inside the guest collides with host virtual network
> >routing. This is a long standing issue that has caused users quite a
> >bit of pain and confusion.

Indeed; thanks for taking this on.  Would it also be useful to have an
API that simply sets the network and mask of the default network?

> >On network startup, parse /proc/net/route
> 
> Any interest in doing this with netlink instead? (I've got this
> "thing" against parsing text files to get information if it can be
> retrieved via a nice clean API). If so, I think I can whip up the
> equivalent code with libnl calls, but probably not until later in
> the afternoon.

I agree, using netlink would be a bit cleaner.

Dave




More information about the libvir-list mailing list