Public bug reported: LXC containers fail to start up with systemd. After setting up lxcbr0 manually (bug 1312532) and adjusting the AppArmor profile (bug 1325468) they fail with:
$ sudo strace -fvvs1024 -o /tmp/t lxc-start -n debci lxc-start: Device or resource busy - failed to set memory.use_hierarchy to 1; continuing lxc-start: Device or resource busy - failed to set memory.use_hierarchy to 1; continuing lxc-start: Input/output error - error 5 creating /usr/lib/x86_64-linux-gnu/lxc/dev/lxc/console lxc-start: failed to setup the console for 'debci' lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn 'debci' strace shows: 10421 mkdir("/usr/lib/x86_64-linux-gnu/lxc/dev/lxc", 0755) = -1 EEXIST (File exists) 10421 unlink("/usr/lib/x86_64-linux-gnu/lxc/dev/console") = -1 ENOENT (No such file or directory) 10421 creat("/usr/lib/x86_64-linux-gnu/lxc/dev/lxc/console", 0660) = -1 EIO (Input/output error) Indeed /usr/lib/x86_64-linux-gnu/lxc/dev/ does not have a "console" (while my /dev does). There is no relevant error in dmesg: [ 1238.586524] device vethLLNW81 entered promiscuous mode [ 1238.587813] IPv6: ADDRCONF(NETDEV_UP): vethLLNW81: link is not ready [ 1238.627543] IPv6: ADDRCONF(NETDEV_CHANGE): vethLLNW81: link becomes ready [ 1238.627671] lxcbr0: port 1(vethLLNW81) entered forwarding state [ 1238.627712] lxcbr0: port 1(vethLLNW81) entered forwarding state [ 1238.671822] lxcbr0: port 1(vethLLNW81) entered disabled state [ 1238.674607] device vethLLNW81 left promiscuous mode [ 1238.674676] lxcbr0: port 1(vethLLNW81) entered disabled state ** Affects: lxc (Ubuntu) Importance: Undecided Status: New ** Tags: systemd-boot ** Tags added: systemd-boot -- 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/1325470 Title: [systemd] error 5 creating /usr/lib/x86_64-linux- gnu/lxc/dev/lxc/console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1325470/+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