Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
systemd 226 breaks privileged and unprivileged containers when run inside a container #663
Comments
|
Yup, I noticed this last week. Haven't made any progress in figuring out why it won't start. Replacing it by a script doesn't work so i assume it never actually gets started (as opposed to starting and dying as used to be the case).
There is a warning about the devices cgroup, but i don't believe that's causing it to fail.
|
|
If you force
the next service that fails is
endlessly. |
|
bisect says this introduced the failure: systemd/systemd@efdb023 ("core: unified cgroup hierarchy support"). unified cgroup hierarchy is disabled by default, but I figure the part that matters is that this also moves pid1 from the hierarchy root into a new |
|
To deal with the init.scope I tried http://paste.ubuntu.com/12776710/ but that did not suffice. I think it gets me further, but I don't know how to figure out why the services systemd starts are failing. |
|
Told @hallyn on IRC, but for the record: I changed lib/systemd/system/systemd-journald.service to run ExecStart=/usr/bin/strace -fvvs1024 /lib/systemd/systemd-journald. But that doesn't help, it already fails setting up the cgroup for the new service, in between fork and exec apparently. Attaching strace to the container's init itself is more insightful:
I. e. creating the new cgroup ( I don't think Does that help at all? |
|
If i lxc-attach to the container while it's trying to boot, the simulated cgroupfs seems suspiciously empty:
So maybe the successful |
|
But the
|
|
This should be fixed with the newest commits to lxcfs and cgmanager. I can now start debian unstable containers as well as ubuntu wily containers with ppa:pitti/systemd (which is 226). |
brauner commentedSep 26, 2015
systemd 226breaks privileged and unprivileged containers for me when run inside of a container.journaldcannot be started apparently; it just keeps trying to start it endlessly. This happens forDebian SidandArchlinuxat least.