Quoting Christian Seiler (christ...@iwakd.de):
> Hi Serge,
> 
> >Ok, how about we make the system-cgroup-dir configurable in
> >/etc/lxc/lxc.conf?  So if you have
> >
> >     lxc.system-cgroup-dir = /machine
> >
> >then root-created containers will end up in /machine (or, if you're
> >already nested under /lxc/m1, then /lxc/m1/machine).  If that is
> >unset or /, then you're placed in root cgroup.  If you're not
> >root, then you end up under your current cgroup (assuming you
> >have rights to create them, which you won't for some)
> >
> >Does that seem reasonable?
> 
> Yes, but maybe we could generalize it a bit more:
> 
> lxc.system-cgroup-pattern = /lxc/%s
>      -> $init_cgroup/lxc/foo
> lxc.system-cgroup-pattern = /machine/%s.lxc
>      -> $init_cgroup/machine/foo.lxc
> lxc.system-cgroup-pattern = %s
>      -> $current_cgroup/foo
> 
> For non-root, I agree, it should be under your current cgroup.
> 
> Thoughts?

Looks good to me, thanks

-serge

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to