touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #06281
[Bug 1325470] Re: [systemd] error 5 creating /usr/lib/x86_64-linux-gnu/lxc/dev/lxc/console after failed container startup
*** This bug is a duplicate of bug 1350947 ***
https://bugs.launchpad.net/bugs/1350947
** This bug is no longer a duplicate of bug 1325468
[systemd] container startup fails with AppArmor
** This bug has been marked a duplicate of bug 1350947
apparmor: no working rule to allow making a mount private
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 after failed container startup
Status in “lxc” package in Ubuntu:
New
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1325470/+subscriptions