Hi list, how do I disable default bridge xenbr0 when starting xen? Commenting out (network-script network-bridge) in /etc/xen/xend-config.sxp does not do this. I have my own configured bridge, so I do not need xenbr. Regards Ralf -- alles bleibt anders... ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi,> how do I disable default bridge xenbr0 when starting xen? Commenting out > (network-script network-bridge) in /etc/xen/xend-config.sxp does not do > this.write your own xen-bridge script, mine looks like this: cat network-bridge-none #/bin/bash exit 0 and use "(network-script network-bridge-none)" in xend-config.sxp. Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralf Hornik Mailings
2008-Jul-03 17:32 UTC
Re: [Xen-users] Howto disable xenbr in xen-3.2.1?
Hi Martin, "Martin Hierling" <martin@mh-itc.de> schreibte:>> how do I disable default bridge xenbr0 when starting xen? Commenting out >> (network-script network-bridge) in /etc/xen/xend-config.sxp does not do >> this. > > write your own xen-bridge script, mine looks like this: > cat network-bridge-none > #/bin/bash > exit 0Thank you, but that didn''t help. Even deactivating all scripts let xend build xenbr0. It seems, that building xenbr0 is somewhere hardcoded in the source...? What else is started by starting xend, that can trigger this? Btw, I use ubuntu hardy kernel 2.6.24-xen and xen-3.2.1 from xen source Ralf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Jul 3, 2008 at 1:32 PM, Ralf Hornik Mailings <ralf@best.homeunix.org> wrote:> Hi Martin, > > "Martin Hierling" <martin@mh-itc.de> schreibte: > > how do I disable default bridge xenbr0 when starting xen? Commenting out >>> (network-script network-bridge) in /etc/xen/xend-config.sxp does not do >>> this. >>> >> >> write your own xen-bridge script, mine looks like this: >> cat network-bridge-none >> #/bin/bash >> exit 0 >> > > Thank you, but that didn''t help. Even deactivating all scripts let xend > build xenbr0. > > It seems, that building xenbr0 is somewhere hardcoded in the source...? > > What else is started by starting xend, that can trigger this? > > Btw, I use ubuntu hardy kernel 2.6.24-xen and xen-3.2.1 from xen source >There shouldn''t be a xenbr0 by default in xen 3.2. Was this an upgrade from a previous install of Xen? Also, why don''t you just use the hardy xen packages (ubuntu-xen-server meta package) Cheers, -- Todd Deshane http://todddeshane.net check out our book: http://runningxen.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi,>>> how do I disable default bridge xenbr0 when starting xen? Commenting out >>> (network-script network-bridge) in /etc/xen/xend-config.sxp does not do >>> this. >> >> write your own xen-bridge script, mine looks like this: >> cat network-bridge-none >> #/bin/bash >> exit 0 > > Thank you, but that didn''t help. Even deactivating all scripts let xend > build xenbr0. > It seems, that building xenbr0 is somewhere hardcoded in the source...?No. deactivating the bridge script doenst mean that there is no default value. You have to activate the xen-bridge-none script. On my installation (gentoo) there is no xenrb0! #1 ~ $ brctl show bridge name bridge id STP enabled interfaces br10 8000.0016368e07cc no vlan10 br18 8000.0016368e07cc no vlan18 br2 8000.0016368e07cc no vlan2 br3 8000.0016368e07cc no vlan3 gill.3 br320 8000.0016368e07cc no vlan320 br321 8000.0016368e07cc no vlan321 natira.321 drusilla.321 empty.321 br323 8000.0016368e07cc no vlan323 br324 8000.0016368e07cc no vlan324 br404 8000.0016368e07cc no vlan404 tamura.404 smith.404 thompson.404 br999 8000.0016368e07cf no int> What else is started by starting xend, that can trigger this? > Btw, I use ubuntu hardy kernel 2.6.24-xen and xen-3.2.1 from xen sourcedoes the ubuntu network scripts start that bridge? How does your /etc/network/interfaces look like? Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You can also use "(network-script /bin/true)" to achieve the same result (assuming true is in /bin). -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Martin Hierling Sent: Thursday, July 03, 2008 13:06 To: xen-users Subject: Re: [Xen-users] Howto disable xenbr in xen-3.2.1? Hi,> how do I disable default bridge xenbr0 when starting xen? Commenting out > (network-script network-bridge) in /etc/xen/xend-config.sxp does not do > this.write your own xen-bridge script, mine looks like this: cat network-bridge-none #/bin/bash exit 0 and use "(network-script network-bridge-none)" in xend-config.sxp. Martin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralf Hornik Mailings
2008-Jul-03 20:33 UTC
Re: [Xen-users] Howto disable xenbr in xen-3.2.1?
Martin Hierling schrieb: @Todd: I won''t use the ubuntu hardy package any more because it''s simply broken: http://ubuntuforums.org/showthread.php?t=770902 The Xen 3.2.1 source package works for me now but I need a xen kernel 2.6.22 and above, regarding some hardware issues on my machine.> No. deactivating the bridge script doenst mean that there is no > default value. > You have to activate the xen-bridge-none script. On my installation > (gentoo) there is no xenrb0!I believe but it doesn''t matter, what script I activate. When I strace the xend start process, I see the brctl command building xenbr0. No other process does this. When I grep the source, there are a lot of references to xenbr.> does the ubuntu network scripts start that bridge? How does your > /etc/network/interfaces look like?--8<------- # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 auto br0 iface br0 inet static address 10.0.0.2 netmask 255.255.255.0 gateway 10.0.0.1 bridge_ports eth0 root@sonne:~# ---->8--------------- root@sonne:~# brctl show bridge name bridge id STP enabled interfaces br0 8000.000103bb4292 no eth0 xenbr0 8000.000000000000 no _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralf Hornik Mailings wrote:> Martin Hierling schrieb: > > @Todd: I won''t use the ubuntu hardy package any more because it''s > simply broken: > http://ubuntuforums.org/showthread.php?t=770902If you feel like converting, RHEL/Centos 5.2 plus xen-3.2.1 works great :D Tested with HVM guest XP-Sp3 + GPLPV.> > The Xen 3.2.1 source package works for me now but I need a xen kernel > 2.6.22 and above, regarding some hardware issues on my machine. >What hardware would that be? If you have a working 2.6.22-xen kernel (from xen-3.2.1 or earlier) it should be possible to use that kernel together with your custom-built xen-3.2.1 hypervisor and userland.>> No. deactivating the bridge script doenst mean that there is no >> default value. >> You have to activate the xen-bridge-none script. On my installation >> (gentoo) there is no xenrb0! > > I believe but it doesn''t matter, what script I activate. When I strace > the xend start process, I see the brctl command building xenbr0. No > other process does this. When I grep the source, there are a lot of > references to xenbr. >I have to say that''s weird. I''m using RHEL5, and on /etc/xen/xend-config.sxp I have (network-script /bin/true) I setup bridges manually. With this config it doesn''t create xenbr0 (with xen < 3.2) or make eth0 a bridge (xen >=3.2). There is something else that''s creating a xen-related bridge though. It''s libvirt, which (by default in RH) creates virbr0. Perhaps that''s what causing your problem? Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralf Hornik Mailings
2008-Jul-04 08:29 UTC
Re: [Xen-users] Howto disable xenbr in xen-3.2.1?
Finally I solved it... Fajar A. Nugraha schrieb:>> > What hardware would that be?The complaining hardware is an it821x IDE controller, that runs with pata_it821x fast and with no errors. This module first appeared to be stable in 2.6.22+ (ciiw). At least 2.6.18 raises errors.> If you have a working 2.6.22-xen kernel (from xen-3.2.1 or earlier) it > should be possible to use that kernel together with your custom-built > xen-3.2.1 hypervisor and userland.Thats exactly what I do :-)> I have to say that''s weird. > I''m using RHEL5, and on /etc/xen/xend-config.sxp I have > (network-script /bin/true)Remarking the line does ths same.> > There is something else that''s creating a xen-related bridge though. > It''s libvirt, which (by default in RH) creates virbr0. Perhaps that''s > what causing your problem?The problem was an xml file (/var/lib/xend/state/network.xml) that referrenced to xenbr0. Probably a file created by ubuntu package. After recreating it, the bridge xenbr0 disappeared. Best regards Ralf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2008/7/4 Ralf Hornik Mailings <ralf@best.homeunix.org>:> Finally I solved it... > >> There is something else that''s creating a xen-related bridge though. It''s >> libvirt, which (by default in RH) creates virbr0. Perhaps that''s what >> causing your problem? > > The problem was an xml file (/var/lib/xend/state/network.xml) that > referrenced to xenbr0. Probably a file created by ubuntu package. > After recreating it, the bridge xenbr0 disappeared.Interesting! I''ve been having the same problem (previously used bridge wouldn''t go away after upgrade to 3.2.0 despite removing all references to it in my xen config files). Thanks for solving the mystery. - Ben _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users