WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] CentOS 5.3 bond0 and xen 3.3.0

That would be because both Xen and RHEL/Centos are broken when it comes
to bonded bridged interfaces.

There are various approaches to making it work.  My notes on how I am
currently doing it are below.  Change interfaces, addresses and
BONDING_OPTS for your local requirements.

Bonding/Trunking
Bonding/Trunking is supported out of the box on RHEL/Centos, but it does
not work when combined with a bridge for Xen as of RHEL/Centos 5.3. This
has been reported as bug 463014
(https://bugzilla.redhat.com/show_bug.cgi?id=463014) which has a simple
patch for /etc/sysconfig/network-scripts/ifup-eth.

The standard Xen network-script does not support bonded interfaces at
all as it takes the interface down, which breaks the bond.

Note that the instructions below use the Red Hat init scripts to setup
xenbr0. The Xen script that normally does this is disabled.

Apply the patch from https://bugzilla.redhat.com/show_bug.cgi?id=463014

Configure Bond on RHEL/Centos
/etc/modprobe.conf
alias bond0 bonding

/etc/sysconfig/network-srcipt/ifcfg-xenbr0
DEVICE=xenbr0
BOOTPROTO=none
ONBOOT=yes
TYPE=Bridge
NETMASK=255.255.255.0
NETWORK=192.168.42.0
IPADDR=192.168.42.41

/etc/sysconfig/network-srcipt/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
BONDING_OPTS='mode=2 miimon=100 xmit_hash_policy=1'
BRIDGE=xenbr0

/etc/sysconfig/network-srcipt/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:15:17:55:C1:D0

/etc/sysconfig/network-srcipt/ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:15:17:55:C1:D1

To configure Xen to use the bond in /etc/xen/xend-config.sxp
change the network-script and vif-script lines to the following

(network-script '/bin/true')
(vif-script 'vif-bridge bridge=xenbr0')

Reboot.

On Thu, 2009-05-28 at 12:08 -0800, jonr@xxxxxxxxxx wrote:
> So far this has been the trifecta of evil for me. I have got bond0 to  
> come up when I don't start xend and it works perfectly. Until I start  
> xend then I get the dreaded:
> 
> 
> bonding: bond0: Warning: the permanent HWaddr of eth0 is still in use  
> by bond0. Set the HWaddr of eth0 to a different address to avoid  
> conflicts.
> Nothing to flush.
> Waiting for pbond0 to negotiate link.
> can't add pbond0 to bridge bond0: Invalid argument
> 
> 
> In my /etc/xen/xend-config.sxp file I have edited the network bridge  
> script to use bond0 instead of eth0.
> 
> But when xend is started it tries to bridge on eth0, at least that is  
> what I am thinking, instead of bond0.
> 
> Am I missing something? Is there another file I need to edit so that  
> it comes up on bond0 instead of eth0?
> 
> 
> Thanks for any help,
> 
> Jon
> 
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users