Public bug reported:

On a host system with bonding interfaces, the LXC guest will remove all 
interfaces it knows from the bonding interfaces:
When the host's bond0 is made from eth0 and eth2 and the LXC guest has "eth0" 
and "eth1" configured, it will remove "eth0" from the hosts bond0 interface. 
This only happens if the guest has the package "infenslave-2.6" installed.


Steps to reproduce:
hyp02:~# grep '^Slave Interface: ' /proc/net/bonding/bond0.
Slave Interface: eth2
Slave Interface: eth0
hyp02:~# cd /data/virt/lxc
hyp02:/data/virt/lxc# cat demo.conf.

lxc.network.type = veth
lxc.network.link = extbr0
lxc.network.flags = up
lxc.network.name = eth0
lxc.network.veth.pair = demo01_ext

lxc.network.type = veth
lxc.network.link = intbr0
lxc.network.flags = up
lxc.network.name = eth1
lxc.network.veth.pair = demo01_int

lxc.cgroup.memory.limit_in_bytes = 8000M

hyp02:/data/virt/lxc# lxc-create -n demo01 -f ./demo.conf -t ubuntu.
[...]
hyp02:/data/virt/lxc# cat demo01/rootfs/etc/network/interfaces.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 10.7.8.41
        netmask 24

auto eth1
iface eth1 inet static
        address 10.10.33.41
        netmask 24
        gateway 10.10.33.32

hyp02:/data/virt/lxc# virt-install --connect lxc:/// --container
--noautoconsole --filesystem /data/virt/lxc/demo01/rootfs/,/
--vcpus=1,maxvcpus=1 --network bridge=extbr0,model=virtio --network
bridge=intbr0,model=virtio --ram 8000000 --name demo01

Starting install...
Creating domain...                                       |    0 B     00:00.....
Domain creation completed. You can restart your domain by running:
  virsh --connect lxc:/// start demo01

hyp02:~# grep '^Slave Interface: ' /proc/net/bonding/bond0.
Slave Interface: eth2
Slave Interface: eth0
hyp02:~# virsh -c lxc:/// console demo01

Ubuntu 12.04.2 LTS demo01 tty1

demo01 login: ubuntu
Password:.
Last login: Thu Feb  7 16:17:05 UTC 2013 on pts/0
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-36-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
ubuntu@demo01:~$ sudo su -
[sudo] password for ubuntu:.
root@demo01:~# ifdown eth0

hyp02:~# grep '^Slave Interface: ' /proc/net/bonding/bond0.
Slave Interface: eth2
Slave Interface: eth0
hyp02:~#

root@demo01:~# ifup eth0
root@demo01:~# apt-get install ifenslave-2.6
[...]
root@demo01:~# ifdown eth0

hyp02:~# grep '^Slave Interface: ' /proc/net/bonding/bond0.
Slave Interface: eth2
hyp02:~#

System:
# lsb_release -rd
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
# dpkg -l lxc libvirt-bin
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libvirt-bin    0.9.8-2ubuntu1 programs for the libvirt library
ii  lxc            0.7.5-3ubuntu6 Linux containers userspace tools

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1121917

Title:
  guest removes interface from host bonding interface when
  "infenslave-2.6" is installed in the guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1121917/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to