<command>lxc-create</command>
<arg choice="req">-n <replaceable>name</replaceable></arg>
<arg choice="opt">-f <replaceable>config_file</replaceable></arg>
- <arg choice="opt">-t <replaceable>template</replaceable></arg>
+ <arg choice="req">-t <replaceable>template</replaceable></arg>
<arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
<arg choice="opt">-- <replaceable>template-options</replaceable></arg>
</cmdsynopsis>
<varlistentry>
<term>
- <option>-f <replaceable>config_file</replaceable></option>
+ <option>-f, --config <replaceable>config_file</replaceable></option>
</term>
<listitem>
<para>
<varlistentry>
<term>
- <option>-t <replaceable>template</replaceable></option>
+ <option>-t, --template <replaceable>template</replaceable></option>
</term>
<listitem>
<para>
for details of the expected script structure.
Alternatively, the full path to an executable template script
can also be passed as a parameter.
+ "none" can be used to force lxc-create to skip rootfs creation.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
- <option>-B <replaceable>backingstore</replaceable></option>
+ <option>-B, --bdev <replaceable>backingstore</replaceable></option>
</term>
<listitem>
<para>
- 'backingstore' is one of 'none', 'dir', 'lvm', 'loop', or 'btrfs'. The
- default is 'none', meaning that the container root filesystem
+ 'backingstore' is one of 'dir', 'lvm', 'loop', 'btrfs', 'zfs', 'rbd', or 'best'. The
+ default is 'dir', meaning that the container root filesystem
will be a directory under <filename>@LXCPATH@/container/rootfs</filename>.
- 'dir' has the same meaning as 'none', but also allows the optional
+ This backing store type allows the optional
<replaceable>--dir ROOTFS</replaceable> to be specified, meaning
that the container rootfs should be placed under the specified path,
- rather than the default. If 'btrfs' is specified, then the
+ rather than the default. (The 'none' backingstore type is an alias for
+ 'dir'.) If 'btrfs' is specified, then the
target filesystem must be btrfs, and the container rootfs will be
created as a new subvolume. This allows snapshotted clones to be
created, but also causes rsync --one-filesystem to treat it as a
<replaceable>--fssize SIZE</replaceable> will create a LV (and
filesystem) of size SIZE rather than the default, which is 1G.
</para>
+ <para>
+ If backingstore is 'loop', you can use <replaceable>--fstype FSTYPE</replaceable> and <replaceable>--fssize SIZE</replaceable> as 'lvm'. The default values for these options are the same as 'lvm'.
+ </para>
+ <para>
+ If backingstore is 'rbd', then you will need to have a valid configuration in <filename>ceph.conf</filename> and a <filename>ceph.client.admin.keyring</filename> defined.
+ You can specify the following options :
+ <replaceable>--rbdname RBDNAME</replaceable> will create a blockdevice named RBDNAME rather than the default, which is the container name.
+ <replaceable>--rbdpool POOL</replaceable> will create the blockdevice in the pool named POOL, rather than the default, which is 'lxc'.
+ </para>
+ <para>
+ If backingstore is 'best', then lxc will try, in order, btrfs,
+ zfs, lvm, and finally a directory backing store.
+ </para>
</listitem>
</varlistentry>
</refsect1>
+ &commonoptions;
+
<refsect1>
<title>Diagnostic</title>
<para>
As the message mention it, you try to create a container
but there is a container with the same name. You can use
- the <command>lxc-ls -l</command> command to list the
+ the <command>lxc-ls</command> command to list the
available containers on the system.
</para>
</listitem>