<div dir="ltr">Thanks for the reply Evgeni,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 28, 2018 at 12:24 PM, Evgeni Golov <span dir="ltr"><<a href="mailto:evgeni@debian.org" target="_blank">evgeni@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrea,<br>
<br>
On Sun, Jan 28, 2018 at 11:34:03AM +0100, Andrea Villa wrote:<br>
> Just create a simple user unprivileged lxc container after following the<br>
> official Debian documentation <a href="https://wiki.debian.org/LXC#" rel="noreferrer" target="_blank">https://wiki.debian.org/LXC#</a><br>
> Unprivileged_container.<br>
<br>
Can we for a second pretend, wiki.d.o is not official documentation,<br>
thanks ;)<br>
<br>
And looking at the page, it lists at least a few steps that should not<br>
be needed.<br>
<br>
> Container fails when started with:<br>
><br>
> ----------------<br>
> lxc-start 20170124115651.107 ERROR lxc_cgfs -<br>
> cgroups/cgfs.c:lxc_cgroupfs_<wbr>create:909 - Could not set clone_children to 1<br>
> for cpuset hierarchy in parent cgroup.<br>
> lxc-start 20170124115651.107 ERROR lxc_cgfs -<br>
> cgroups/cgfs.c:cgroup_rmdir:<wbr>209 - Read-only file system - cgroup_rmdir:<br>
> failed to delete /sys/fs/cgroup/perf_event/<br>
<br>
You're running a BPO kernel, right? Can you please try with the kernel<br>
from stable?<br>
<br>
I am running stable boxes with unprivileged containers just fine, so<br>
there is something weird here, and it might very well be the kernel.<br></blockquote><div><br></div><div>I've just tried with kernel 4.9.65-3+deb9u2, which should be the latest for stretch without backports. LXC refuses to start the containers <br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> * What exactly did you do (or not do) that was effective (or<br>
> ineffective)?<br>
><br>
> I have found this thread on LXC forums <a href="https://discuss" rel="noreferrer" target="_blank">https://discuss</a>.<br>
> <a href="http://linuxcontainers.org/t/failed-creating-cgroups/272/4" rel="noreferrer" target="_blank">linuxcontainers.org/t/failed-<wbr>creating-cgroups/272/4</a> that suggests to use<br>
> the Ubuntu's version of the libpam-cgfs package.<br>
> The Ubuntu version of the package seems to include some patches that<br>
> properly set user's CGroups permission upon user's login.<br>
<br>
Ubuntus version (which one, btw?) does not carry patches, their<br>
packaging is usually just what we ship in Debian, plus sometimes faster<br>
upstream releases.<br>
<br>
><br>
> * What was the outcome of this action?<br>
><br>
> Installing the Ubuntu version of the libpam-cgfs fixes the problem.<br>
><br>
><br>
> I was not sure if I should have posted the bug here on in libpam-cfgs. I<br>
> hope you don't mind my choice.<br>
<br>
We can re-assing at will, so that's fine.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Evgeni<br>
</font></span></blockquote></div><br></div></div>