Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
LXC container won't start after systemd upgrade. #1554
Comments
|
Was there an update to |
linas
commented
May 12, 2017
|
No, the update was to systemd inside the container (ubuntu xenial) I did NOT upgrade the host. |
|
What happens when you kill and restart the container? Same thing? |
|
Ok, can you show the info that we request in the issue template, please? Especially
|
linas
commented
May 12, 2017
|
fuuuuu ... closing, user-error. I failed to perform the magic incantation, in advance:
I forget exactly why I have to do the above: its a work-around for some patch(es) that have not yet hit my host distro. (debian unstable). My apologies for the noise. |
linas
closed this
May 12, 2017
|
All good. :) |
|
What patches do you miss in Debian? (Debian maintainer here ;)) |
|
It looks like I have the same issue, but the solution proposed by @linas doesn't work for me: Trying the This is probably caused by
This may be related to lxc/cgmanager#32, where @hallyn wrote Please note that I'm not implying there is a bug in lxc. I'm just adding my comment to this ticket, because it seems to be the same or a closely related issue. Any pointers to the core issue are very welcome! |
|
As a workaround, setting the command line systemd/systemd#3388 (comment) may be related? |
jjb2016
commented
Jul 20, 2017
|
I have just cone across this issue and initially posted it on the Arch forum here ... And also reported it on systemd github here ... Am I to think that this will be fixed by by the systemd guys? From what i've read it seems like a change in systemd that has caused this. |
saivert
commented
Oct 2, 2017
•
|
So as far as I can tell we will just have to keep booting Arch Linux with kernel arg. "systemd.unified_cgroup_hierarchy=false" until LXC developers have started using the new hybrid cgroup support and dropped the use of cgmanager (which current packages in Arch linux still depend on). |
|
@saivert, LXC 2.1 comes with support for the standard systemd hybrid cgroup layout. However, Archlinux should kick cgmanager. We have marked this project as deprecated a long time ago. Instead they should switch to using the pam module which ships with LXCFS and which creates writable cgroups for unprivileged users on login. This is definitely required for hybrid cgroup support! |
saivert
commented
Oct 2, 2017
|
I should look into the issue with the current Arch Linux packages then. I will try building this from source first and then suggest fixes. The lxc package also currently depends on the cgmanager package so I will have to build lxc from source too. |
linas commentedMay 12, 2017
•
Edited 1 time
-
linas
May 12, 2017
I've been successfully using a dozen userland LXC containers for .. years. The host OS is Debian unstable. The containers run various flavors of Ubuntu. Last night, I
apt-get upgradedtwo of the Ubuntu Xenial 16.04 containers, and after that, neither boots. To debug, I see the following:Scrolling back to review the
apt-get upgradeinfo, (which was done in the container, not the host) I see thatsystemd-sysv udevwere both upgraded, and that during install, I got this message:I assume that this failed install is at the root cause of the non-bootable container. Am debugging more, will post news as I find it.