<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Hi,</div>
<div><br>
</div>
<div>So I have started trying out 2.1.1 but have encountered a different issue.</div>
<div><br>
</div>
<div>I have the following:</div>
<div style="margin-left: 3ch;">
<div>/sys/fs/cgroup/<controllers>/</div>
<div>jobs/</div>
<div>cgroup.clone_children (= 0)</div>
<div>xx/</div>
<div>cgroup.clone_children (= 1)</div>
<div>cpusets.cpus (= 1)</div>
<div>cpusets.mems (= 0-1)</div>
</div>
<div><br>
</div>
<div>In the config file I have:</div>
<div style="margin-left: 3ch;">
<div>lxc.cgroup.dir = jobs/xx</div>
</div>
<div><br>
</div>
<div>As before, I want lxc-start to set up its own cgroup inside jobs/xx (e.g., at</div>
<div>jobs/xx/xx where the container name is "xx"), but inherit the settings from</div>
<div>jobs/xx.</div>
<div><br>
</div>
<div>I find that this is not working. Also, unexpectedly, jobs/cgroup.clone_children</div>
<div>is being reset to 1, which I do not want.</div>
<div><br>
</div>
<div>Is there any way to force lxc-start to just inherit and not touch anything else?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>John</div>
<div><br>
</div>
<div><br>
</div>
<div>On Wed, 2018-02-28 at 22:58 +0000, Marshall2, John (SSC/SPC) wrote:</div>
<blockquote type="cite">
<div>Hi,</div>
<div><br>
</div>
<div>At the moment I am using LXC 2.0.8 (ubuntu 16.04) and have noticed a change in behavior</div>
<div>since previous releases of LXC I have used (1.x and 2.0.5, I believe). I've not yet narrowed</div>
<div>when the change happened.</div>
<div><br>
</div>
<div>My goal is to start an LXC container within an existing (arbitrary) cgroup. Previously, I was</div>
<div>able to run lxc-start from within a cgroup and the new LXC cgroup would be created under</div>
<div>it. I used lxc.cgroup.pattern=%n in lxc.conf.</div>
<div><br>
</div>
<div>Is there any way to do the same thing with v2.0.8? I see that 2.1 has lxc.cgroup.dir which</div>
<div>appears to do what I need, but I am trying to do this with 2.0.8, at least for now.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>John</div>
<pre>_______________________________________________
lxc-users mailing list
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
</body>
</html>