[lxc-devel] lxc-stop/start drops other lxc network connections

Dusty Hall draper7 at gmail.com
Sat Sep 8 13:00:13 UTC 2012


Is there any reason why I'm seeing other lxc's drop their network
connections when I stop or start another lxc?  I'm running a bridging
network with static ip's on lxc's, see below.  This is happening on
both Ubuntu pkgs: 0.7.4-0ubuntu7.3 & 0.7.5-3ubuntu59.   Any advice
would be greatly appreciated.

--- /etc/network/interfaces ---
auto br0
iface br0 inet static
  address 192.168.0.1
  network 192.168.0.0
  netmask 255.255.252.0
  broadcast 192.168.3.255
  bridge_maxwait 5
  bridge_fd 0
  pre-up /usr/sbin/brctl addbr br0
--------------------------------------

--- dmesg output -----
[6636083.276750] eth0: no IPv6 routers present
[6636083.356606] vethQmGcj9: no IPv6 routers present
[6636087.549377] br0: port 3(vethQmGcj9) entering forwarding state
[6636876.087425] br0: port 3(vethQmGcj9) entering forwarding state
[6636876.180172] br0: port 3(vethQmGcj9) entering disabled state
[6636978.696950] device vethdkxmWu entered promiscuous mode
[6636978.698854] ADDRCONF(NETDEV_UP): vethdkxmWu: link is not ready
[6636979.087122] ADDRCONF(NETDEV_CHANGE): vethdkxmWu: link becomes ready
[6636979.087177] br0: port 3(vethdkxmWu) entering learning state
[6636979.087181] br0: port 3(vethdkxmWu) entering learning state
[6636989.273244] vethdkxmWu: no IPv6 routers present
[6636989.592703] eth0: no IPv6 routers present
[6636994.094936] br0: port 3(vethdkxmWu) entering forwarding state
----------------------

-- sample lxc.conf -----
lxc.utsname = lxc-7
lxc.tty = 4
lxc.pts = 1024
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.ipv4 = 192.168.1.7/22
lxc.rootfs = /lxc-7/rootfs
lxc.cgroup.cpuset.cpus = 14-15
lxc.cgroup.memory.limit_in_bytes = 8G
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rwm
-----

Thanks,

Dusty




More information about the lxc-devel mailing list