On Fri, Jul 18, 2008 at 01:13:30PM +0100, Daniel P. Berrange wrote: > On Fri, Jul 18, 2008 at 12:33:22PM +0200, Stefan de Konink wrote: > > The desire to automatically install the autostarted network configuration > > of libvirt broke my (and some other users on xen-users) setup. I suggest > > to *remove* this network configuration as default and *not* put it into > > xenstore as a stateful config. > > > > *It does not work by default* > > It works just fine by default. If anything is breaking networking it is > XenD. You don't mention which version of Xen you have, but make sure you have this changeset in it.. [quote] changeset: 16625:44a98411d230 user: Keir Fraser <keir.fraser@xxxxxxxxxx> date: Sat Dec 15 18:26:52 2007 +0000 files: tools/python/xen/xend/XendNetwork.py description: xend: Prevent XenD touching externally managed bridges With current XenD 3.0.4 or later try the following: brctl addbr demo ifconfig demo up /etc/init.d/xend start /etc/init.d/xend stop ifconfig demo down brctl delbr demo Now, start XenD again.... /etc/init.d/xend start And watch in horror as it re-creates your 'demo' bridge. The problem is that the 'XendNetwork' class does not distinguish between bridge devices that it is managing (ie those created via XenAPI) and those which it does not manage (ie those created by OS distro init scripts, or by apps like libvirt). While initially I thought I could just make XenD ignore externally-managed bridges completely, it seems to needs to know about them otherwise it can't hook up guest VIFs to them correctly. So the attached patch adds a 'managed' flag to the XendNetwork class. Externally managed bridges have this set to False. At startup XenD will now only re-create bridge devices which have the 'managed' flag set to 'True' - ie those created via XenAPI. Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx> [/quote] Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list