Public bug reported: I am using Ubuntu 13.04 with latest update and the package LXC to run some virtual machines in it.
I am using the following parameter for one of the machines: --------- CONFIG ------------ lxc.network.type=veth lxc.network.link=br0 lxc.network.flags=up lxc.network.hwaddr = 10:16:3e:53:5b:7a lxc.network.veth.pair = veth_jenkins lxc.network.ipv4 = 192.168.1.30/24 #lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3597 lxc.rootfs = /var/lib/lxc/jenkins/rootfs lxc.utsname = jenkins lxc.devttydir = lxc lxc.tty = 4 lxc.pts = 1024 lxc.mount = /var/lib/lxc/jenkins/fstab lxc.arch = amd64 lxc.cap.drop = sys_module mac_admin mac_override lxc.pivotdir = lxc_putold # uncomment the next line to run the container unconfined: #lxc.aa_profile = unconfined lxc.cgroup.devices.deny = a # Allow any mknod (but not using the node) lxc.cgroup.devices.allow = c *:* m lxc.cgroup.devices.allow = b *:* m # /dev/null and zero lxc.cgroup.devices.allow = c 1:3 rwm lxc.cgroup.devices.allow = c 1:5 rwm # consoles 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 # /dev/{,u}random 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 # rtc lxc.cgroup.devices.allow = c 254:0 rwm #fuse lxc.cgroup.devices.allow = c 10:229 rwm #tun lxc.cgroup.devices.allow = c 10:200 rwm #full lxc.cgroup.devices.allow = c 1:7 rwm #hpet lxc.cgroup.devices.allow = c 10:228 rwm #kvm lxc.cgroup.devices.allow = c 10:232 rwm lxc.cgroup.memory.limit_in_bytes = 8G lxc.cgroup.memory.soft_limit_in_bytes = 2G lxc.cgroup.cpuset.cpus = 0-3 --------- /CONFIG ------------ When I start this LXC container, the network will be started as expected as you can see in the ifconfig output: veth_jenkins Link encap:Ethernet HWaddr fe:31:67:cb:ef:25 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:145 errors:0 dropped:0 overruns:0 frame:0 TX packets:350 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25708 (25.7 KB) TX bytes:59185 (59.1 KB) The issue I have is the following: when I shutdown the LXC container, the "veth_jenkins" interface stays active and will not teared down with the machine. This is not so nice, but it is really ugly, if you try to start the machine again, because then it will not start anymore, because it says, that the interface name is not unique...of course not, but I would like to not use random name, because I like to be able to identify the related interfaces. ** Affects: qemu-kvm (Ubuntu) Importance: Undecided Status: New ** Tags: interface lxc network virtualization vm -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1186501 Title: LXC won't tear down VETH device on shutdown To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1186501/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs