guest removes interface from host bonding interface when "infenslave-2.6" is installed in the guest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Won't Fix
|
High
|
Unassigned |
Bug Description
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/
Slave Interface: eth2
Slave Interface: eth0
hyp02:~# cd /data/virt/lxc
hyp02:/
lxc.network.type = veth
lxc.network.link = extbr0
lxc.network.flags = up
lxc.network.name = eth0
lxc.network.
lxc.network.type = veth
lxc.network.link = intbr0
lxc.network.flags = up
lxc.network.name = eth1
lxc.network.
lxc.cgroup.
hyp02:/
[...]
hyp02:/
# 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:/
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/
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:/
ubuntu@demo01:~$ sudo su -
[sudo] password for ubuntu:.
root@demo01:~# ifdown eth0
hyp02:~# grep '^Slave Interface: ' /proc/net/
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/
Slave Interface: eth2
hyp02:~#
System:
# lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
# dpkg -l lxc libvirt-bin
Desired=
| Status=
|/ Err?=(none)
||/ 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
Changed in libvirt (Ubuntu): | |
importance: | Undecided → High |
Changed in libvirt (Ubuntu): | |
assignee: | Stéphane Graber (stgraber) → nobody |
Opps, now the full versions:
# dpkg -l lxc libvirt-bin | cat Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ======= ======= ======= =-===== ======= ======= ======= ==-==== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ====
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii libvirt-bin 0.9.8-2ubuntu17.7 programs for the libvirt library
ii lxc 0.7.5-3ubuntu66 Linux containers userspace tools