diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2009-07-13 23:12:10 +0200 |
---|---|---|
committer | Daniel Lezcano <dlezcano@fr.ibm.com> | 2009-07-13 23:12:10 +0200 |
commit | 0d9f8e188c1c4832e4f6b9de646478947ae86877 (patch) | |
tree | 3866f968404f4049953cf10415ddc579ceb3eabb /doc | |
parent | lxc-execute or lxc-start to fail if cgroup not mounted (diff) | |
download | lxc-0d9f8e188c1c4832e4f6b9de646478947ae86877.tar.gz lxc-0d9f8e188c1c4832e4f6b9de646478947ae86877.tar.bz2 lxc-0d9f8e188c1c4832e4f6b9de646478947ae86877.zip |
detect a cgroup named 'lxc'
This patch makes lxc to detect a specific cgroup dedicated to lxc
which is mounted with the lxc name. That allows to mount different
cgroup in different places with different options (aka subsystems)
and assign one to be used by lxc. If no such mount point is found,
the first cgroup mount point is used.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lxc.sgml.in | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/doc/lxc.sgml.in b/doc/lxc.sgml.in index 77795a5..85988da 100644 --- a/doc/lxc.sgml.in +++ b/doc/lxc.sgml.in @@ -126,27 +126,36 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA </programlisting> <para> - For the moment the easiest way to have all the features in the - kernel is to use the git tree at: - <systemitem> - git://git.kernel.org/pub/scm/linux/kernel/git/daveh/linux-2.6-lxc.git - </systemitem> - But the kernel version >= 2.6.27 shipped with the distros, may + The kernel version >= 2.6.27 shipped with the distros, will work with <command>lxc</command>, this one will have less functionalities but enough to be interesting. - The planned kernel version which <command>lxc</command> should - be fully functionaly is 2.6.29. + With the kernel 2.6.29, <command>lxc</command> is fully + functional. </para> <para> Before using the <command>lxc</command>, your system should be configured with the file capabilities, otherwise you will need - to run the <command>lxc</command> commands as root. The - control group should be mounted anywhere, eg: - <command>mount -t cgroup cgroup /cgroup</command> + to run the <command>lxc</command> commands as root. </para> + + <para> + The control group can be mounted anywhere, eg: + <command>mount -t cgroup cgroup /cgroup</command>. + + If you want to dedicate a specific cgroup mount point + for <command>lxc</command>, that is to have different cgroups + mounted at different places with different options but + let <command>lxc</command> to use one location, you can bind + the mount point with the <option>lxc</option> name, eg: + <command>mount -t cgroup lxc /cgroup4lxc</command> or + <command>mount -t cgroup -ons,cpuset,freezer,devices + lxc /cgroup4lxc</command> + + </para> + </refsect1> <refsect1> |