[lxc-users] Attach a lxc container to an existing cgroup ?

Serge Hallyn serge.hallyn at ubuntu.com
Fri Mar 21 14:24:37 UTC 2014


Quoting Jäkel, Guido (G.Jaekel at dnb.de):
> Dear Sebastian,
> 
> as to my knowledge, with the current version of LXC you might use more than one configuration file and in addition, there's a file include option in the configuration parser. And even with an older, you may simulate this by a little wrapper that convert a config file into a bunch of "-s" options.
> 
> Said that, I'm using a hierarchical LXC configuration since years that will stick together global, group and individual aspects of a container.
> 
> You might be able to approximate your aims in another way, if you consider to include a "customer X" policy into the different configuration for the containers for customer X. Of course, you just can archive similar settings for a group and can't directly control the sum of an aspect (e.g. memory), but I wonder if this real constructive. 
> 
> And you can't change something for the involved containers at once by touching one value at one cgroup entry. But you may write a little script that will re-read the lxc configuration and update the definded cgroup entries. @Serge: Such an lxc-reconfigure command may be something to add to the lxc package.

What would the lxc-reconfigure command do exactly?


More information about the lxc-users mailing list