aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Hallyn <serge.hallyn@canonical.com>2012-03-19 00:31:40 +0100
committerDaniel Lezcano <daniel.lezcano@free.fr>2012-03-19 00:31:40 +0100
commit1305dd24af039cefc54bc2f21b04b33b62bb26c8 (patch)
treeb5ed10ae17f2595840741b6fd8f67215c3c805a5
parentubuntu templates cleanups (diff)
downloadlxc-1305dd24af039cefc54bc2f21b04b33b62bb26c8.tar.gz
lxc-1305dd24af039cefc54bc2f21b04b33b62bb26c8.tar.bz2
lxc-1305dd24af039cefc54bc2f21b04b33b62bb26c8.zip
Update manpages to reflect some updated options.
(which reminds me a lxc-clone manpage still needs to be written) Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--doc/lxc-create.sgml.in44
-rw-r--r--doc/lxc-destroy.sgml.in25
-rw-r--r--doc/lxc-start.sgml.in17
-rw-r--r--doc/lxc.conf.sgml.in29
4 files changed, 112 insertions, 3 deletions
diff --git a/doc/lxc-create.sgml.in b/doc/lxc-create.sgml.in
index f3e8524..a3cca83 100644
--- a/doc/lxc-create.sgml.in
+++ b/doc/lxc-create.sgml.in
@@ -50,7 +50,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<cmdsynopsis>
<command>lxc-create <replaceable>-n name</replaceable>
<optional>-f config_file</optional>
- <optional>-t template</optional></command>
+ <optional>-t template</optional>
+ <optional>-B backingstore</optional>
+ <optional>-- template-options</optional>
+ </command>
</cmdsynopsis>
</refsynopsisdiv>
@@ -114,6 +117,45 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <option>-B <replaceable>backingstore</replaceable></option>
+ </term>
+ <listitem>
+ <para>
+ 'backingstore' is one of 'none', 'lvm', or 'btrfs'. The
+ default is 'none', meaning that the container root filesystem
+ will be a directory under <filename>@LXCPATH@/container/rootfs</filename>.
+ The option 'btrfs' need not be specified as it will be used
+ automatically if the <filename>@LXCPATH@</filename> filesystem is found to
+ be btrfs. If backingstore is 'lvm', then an lvm block device will be
+ used and the following further options are available:
+ <replaceable>--lvname lvname1</replaceable> will create an LV
+ named <filename>lvname1</filename> rather than the default, which
+ is the container name. <replaceable>--vgname vgname1</replaceable>
+ will create the LV in volume group <filename>vgname1</filename>
+ rather than the default, <filename>lxc</filename>.
+ <replaceable>--fstype FSTYPE</replaceable> will create an FSTYPE
+ filesystem on the LV, rather than the default, which is ext4.
+ <replaceable>--fssize SIZE</replaceable> will create a LV (and
+ filesystem) of size SIZE rather than the default, which is 1G.
+ </para>
+ </listitem>
+
+ <varlistentry>
+ <term>
+ <option>-- <replaceable>template-options</replaceable></option>
+ </term>
+ <listitem>
+ <para>
+ This will pass <replaceable>template-options</replaceable> to the
+ template as arguments. To see the list of options supported by
+ the template, you can run
+ <command>lxc-create -t TEMPLATE -h</command>.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>
diff --git a/doc/lxc-destroy.sgml.in b/doc/lxc-destroy.sgml.in
index eda425c..e75de57 100644
--- a/doc/lxc-destroy.sgml.in
+++ b/doc/lxc-destroy.sgml.in
@@ -49,7 +49,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<refsynopsisdiv>
<cmdsynopsis>
<command>lxc-destroy <replaceable>-n
- name</replaceable></command>
+ name</replaceable>
+ <optional>-f</optional>
+ </command>
</cmdsynopsis>
</refsynopsisdiv>
@@ -64,6 +66,27 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</refsect1>
<refsect1>
+
+ <title>Options</title>
+
+ <variablelist>
+ <varlistentry>
+ <term>
+ <option>-f</option>
+ </term>
+ <listitem>
+ <para>
+ If a container is running, stop it first. If this option is
+ not specified and the container is running, then
+ <command>lxc-destroy</command> will be aborted.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+
+ </refsect1>
+
+ <refsect1>
<title>Diagnostic</title>
<variablelist>
diff --git a/doc/lxc-start.sgml.in b/doc/lxc-start.sgml.in
index 1f6c293..4504d58 100644
--- a/doc/lxc-start.sgml.in
+++ b/doc/lxc-start.sgml.in
@@ -51,7 +51,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
name</replaceable> <optional>-f
config_file</optional> <optional>-c
console_file</optional> <optional>-d</optional> <optional>-s
- KEY=VAL</optional>
+ KEY=VAL</optional> <optional>-C</optional>
<optional>command</optional></command></cmdsynopsis>
</refsynopsisdiv>
@@ -147,6 +147,21 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>
+ <option>-C,
+ --close-all-fds</option>
+ </term>
+ <listitem>
+ <para>
+ If any file descriptors are inherited, close them. If this option
+ is not specified, then <command>lxc-start</command> will exit with
+ failure instead. Note: <replaceable>--daemon</replaceable> implies
+ <replaceable>--close-all-fds</replaceable>.
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>
diff --git a/doc/lxc.conf.sgml.in b/doc/lxc.conf.sgml.in
index 532739e..9edabf8 100644
--- a/doc/lxc.conf.sgml.in
+++ b/doc/lxc.conf.sgml.in
@@ -453,6 +453,35 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
</refsect2>
<refsect2>
+ <title>Console devices location</title>
+ <para>
+ LXC consoles are provided through Unix98 PTYs created on the
+ host and bind-mounted over the expected devices in the container.
+ By default, they are bind-mounted over <filename>/dev/console</filename>
+ and <filename>/dev/ttyN</filename>. This can prevent package upgrades
+ in the guest. Therefore you can specify a directory location (under
+ <filename>/dev</filename> under which LXC will create the files and
+ bind-mount over them. These will then be symbolically linked to
+ <filename>/dev/console</filename> and <filename>/dev/ttyN</filename>.
+ A package upgrade can then succeed as it is able to remove and replace
+ the symbolic links.
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>
+ <option>lxc.devttydir</option>
+ </term>
+ <listitem>
+ <para>
+ Specify a directory under <filename>/dev</filename>
+ under which to create the container console devices.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect2>
+
+ <refsect2>
<title>Mount points</title>
<para>
The mount points section specifies the different places to be