292N/Alxc: linux Container library 52N/A(C) Copyright IBM Corp. 2007, 2008 52N/AThis library is free software; you can redistribute it and/or 292N/Amodify it under the terms of the GNU Lesser General Public 292N/ALicense as published by the Free Software Foundation; either 292N/Aversion 2.1 of the License, or (at your option) any later version. 52N/AThis library is distributed in the hope that it will be useful, 52N/Abut WITHOUT ANY WARRANTY; without even the implied warranty of 52N/AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 292N/ALesser General Public License for more details. 292N/AYou should have received a copy of the GNU Lesser General Public 292N/ALicense along with this library; if not, write to the Free Software 292N/AFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 292N/A<!
DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
292N/A<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
52N/A<!
ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
52N/A <
docinfo><
date>@LXC_GENERATE_DATE@</
date></
docinfo>
52N/A <
refentrytitle>lxc-create</
refentrytitle>
52N/A <
manvolnum>1</
manvolnum>
52N/A <
refname>lxc-create</
refname>
377N/A <
command>lxc-create</
command>
377N/A <
arg choice="req">-n <
replaceable>name</
replaceable></
arg>
6N/A <
arg choice="opt">-f <
replaceable>config_file</
replaceable></
arg>
15N/A <
arg choice="opt">-t <
replaceable>template</
replaceable></
arg>
6N/A <
arg choice="opt">-B <
replaceable>backingstore</
replaceable></
arg>
6N/A <
arg choice="opt">-- <
replaceable>template-options</
replaceable></
arg>
6N/A <
title>Description</
title>
377N/A <
command>lxc-create</
command> creates a system object where is
377N/A stored the configuration informations and where can be stored
377N/A user information. The identifier <
replaceable>name</
replaceable>
377N/A is used to specify the container to be used with the different
377N/A The object is a directory created in <
filename>@LXCPATH@</
filename>
377N/A and identified by its name.
467N/A The object is the definition of the different resources an
467N/A application can use or can see. The more the configuration file
467N/A contains informations, the more the container is isolated and
6N/A the more the application is jailed.
467N/A If the configuration file <
replaceable>config_file</
replaceable>
467N/A is not specified, the container will be created with the default
6N/A isolation: processes, sysv ipc and mount points.
121N/A <
option>-f <
replaceable>config_file</
replaceable></
option>
15N/A Specify the configuration file to configure the virtualization
15N/A and isolation functionalities for the container.
15N/A <
option>-t <
replaceable>template</
replaceable></
option>
302N/A 'template' is the short name of an existing 'lxc-template'
44N/A script that is called by lxc-create,
44N/A eg. busybox, debian, fedora, ubuntu or sshd.
44N/A Refer to the examples in <
filename>@LXCTEMPLATEDIR@</
filename>
191N/A for details of the expected script structure.
44N/A <
option>-B <
replaceable>backingstore</
replaceable></
option>
220N/A 'backingstore' is one of 'none', 'dir', 'lvm', or 'btrfs'. The
221N/A default is 'none', meaning that the container root filesystem
349N/A 'dir' has the same meaning as 'none', but also allows the optional
349N/A <
replaceable>--dir ROOTFS</
replaceable> to be specified, meaning
367N/A that the container rootfs should be placed under the specified path,
441N/A rather than the default.
367N/A The option 'btrfs' need not be specified as it will be used
367N/A automatically if the <
filename>@LXCPATH@</
filename> filesystem is found to
367N/A be btrfs. If backingstore is 'lvm', then an lvm block device will be
367N/A used and the following further options are available:
367N/A <
replaceable>--lvname lvname1</
replaceable> will create an LV
6N/A named <
filename>lvname1</
filename> rather than the default, which
6N/A is the container name. <
replaceable>--vgname vgname1</
replaceable>
6N/A will create the LV in volume group <
filename>vgname1</
filename>
467N/A rather than the default, <
filename>lxc</
filename>.
467N/A <
replaceable>--fstype FSTYPE</
replaceable> will create an FSTYPE
467N/A filesystem on the LV, rather than the default, which is ext4.
451N/A <
replaceable>--fssize SIZE</
replaceable> will create a LV (and
467N/A filesystem) of size SIZE rather than the default, which is 1G.
6N/A <
option>-- <
replaceable>template-options</
replaceable></
option>
302N/A This will pass <
replaceable>template-options</
replaceable> to the
6N/A template as arguments. To see the list of options supported by
6N/A the template, you can run
459N/A <
command>lxc-create -t TEMPLATE -h</
command>.
63N/A <
title>Diagnostic</
title>
63N/A <
term>The container already exists</
term>
63N/A As the message mention it, you try to create a container
63N/A but there is a container with the same name. You can use
168N/A the <
command>lxc-ls -l</
command> command to list the
275N/A available containers on the system.
63N/A <
title>Author</
title>
63N/A <
para>Daniel Lezcano <
email>daniel.lezcano@free.fr</
email></
para>
377N/A<!-- Keep this comment at the end of the file 327N/Asgml-minimize-attributes:nil 327N/Asgml-always-quote-attributes:t 327N/Asgml-parent-document:nil 327N/Asgml-default-dtd-file:nil 377N/Asgml-local-ecat-files:nil