[lxc-devel] cgroups: support cgroups mounted in multiple places (v3)

Michael H. Warfield mhw at WittsEnd.com
Sun Jul 10 19:31:00 UTC 2011


On Mon, 2011-07-04 at 15:21 +0100, jonessex wrote:
> Built from git and still seeing the same problem: it appears to be
> down to incompatibility with libcgroup/libvirt as removing these from
> my system (and therefore mounting /cgroup with mount as opposed to the
> cgconfig service) seems to let me start a container OK. 

That's a known problem.  You don't have to remove them, merely disable
them, by running "chkconfig cgconfig off" and "ckconfig cgred off" and
rebooting.  Then mount your cgroup on a common mount point.  I get the
impression from Serge and Daniel that this problem can't be solved with
that kernel because that kernel doesn't support clone_children so you
don't have any recourse.

> On 3 Jul 2011, at 19:24, jonathan essex wrote:
> 
> > I seem to be having this same issue in a Scientific Linux 6.0 (RHEL 6 clone) installation with lxc-0.7.4.1
> > 
> > lxc-checkconfig seems to think everything is OK, but when I try to lxc-start a container I've created, I get this error message:
> > 
> > lxc-start: no ns_cgroup option specified
> > lxc-start: failed to spawn 'centos-test'
> > lxc-start: No such file or directory - failed to remove cgroup '/cgroup/cpuset/centos-test'
> > 
> > Is this the problem under discussion? I'm new to lxc, so quite possible I'm just misunderstanding something.
> > 
> > Happy to test the patch if someone will outline how to get it/apply it. (Aware that this is probably a tedious newbie type question, but asking anyway)
> > 
> > Cheers
> > Jon

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110710/29659cfe/attachment.pgp>


More information about the lxc-devel mailing list