[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] xcp-xapi bonding

  • To: xen-api@xxxxxxxxxxxxx
  • From: Carlos Reategui <carlos@xxxxxxxxxxxx>
  • Date: Mon, 11 Mar 2013 17:08:49 -0700
  • Delivery-date: Tue, 12 Mar 2013 00:09:05 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

let me try this again...

So looks like I need to setup the bonding using the xe create-bond command just as if I were on XCP/XS.  However it is not clear to me how my /etc/network/interfaces file should be set.  Does it matter?  Should I set the interfaces to manual?  eg:

auto eth0
iface eth0 inet manual 
auto eth1 
iface eth1 inet manual

Do I also need to set up the bridge in this file or will that be done automatically by xcp-xapi. Eg:

auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0

auto xenbr1
iface xenbr1 inet dhcp
bridge_ports eth1

Using xe I am guessing I would then do the following:

ETH0=`xe pif-list device=eth0 --minimal`
ETH1=`xe pif-list device=eth1 --minimal`
NETID=`xe network-create name-label=bond0`
BONDID=`xe bond-create network-uuid=$NETID pif-uuids=$ETH0,$ETH1`

To set the bond mode would I do that on NETID or BONDID above?  What is the preferred bond mode on an L2 switch that only supports static LAG?  Same with setting management to true, which UUID?

If I want to use static IP addresses would I then pif-reconfigure-ip on the NETID?  What happens at reboot time will xcp take over, remember the previous setting and ignore the interfaces file?  Would it be better to not use dhcp in the interfaces file?  Can I define  xenbr0 and 1 in the interfaces file as manual?  I do need at least eth0 to have an IP so that I can initially install xcp-xapi.

For my NFS network using a bond of eth2 and 3 I was thinking of keeping them from xcp and just telling it to "xe pif-forget" on the uuids for those.  Is that ok?  Im assuming as long as the host knows about that network it should be fine.

If this is documented somewhere let me know (I am aware of the XS docs which do cover some of what I am asking but not in this debian based environment).


On Sat, Mar 9, 2013 at 12:46 AM, Carlos Reategui <carlos@xxxxxxxxxxxx> wrote:
Hi I am using xcp-xapi on ubuntu 12.04 and I am a bit confused about the networking.  Most if not all the stuff I have found online instruct one to set up the network via the OS standard /etc/network/interfaces.  The howtos have one set up the xenbr bridges there.  

In my setup xe network-list and xe pif-list are now inconsistent with interfaces file and I think this is what is causing me some issues.  I have 4 nics and I am creating 2 separate bonds and then bridging them to xenbr0 and 1. One for nfs access to my primary storage and the other for all the other vm traffic.  The bonds work great on the host but the VMs that start up are having networking issues.  This was all setup in the interfaces file and I have not done anything network related with xe which I think is my problem because xe network lists xenbr0-3 linked to eth0-3 instead of xenbr0 and 1 linked to bond0 and 1.  

Any pointers as to the right way to do this would be greatly appreciated.


Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.