lxc-create --version (return code: 0)
2.1.0
lxc-create --help (return code: 0)
Usage: lxc-create --name=NAME --template=TEMPLATE [OPTION...]
lxc-create creates a container
Options :
-n, --name=NAME NAME of the container
-f, --config=CONFIG Initial configuration file
-t, --template=TEMPLATE Template to use to setup container
-B, --bdev=BDEV Backing store type to use
--dir=DIR Place rootfs directory under DIR
BDEV options for LVM (with -B/--bdev lvm):
--lvname=LVNAME Use LVM lv name LVNAME
(Default: container name)
--vgname=VG Use LVM vg called VG
(Default: lxc)
--thinpool=TP Use LVM thin pool called TP
(Default: lxc)
BDEV options for Ceph RBD (with -B/--bdev rbd) :
--rbdname=RBDNAME Use Ceph RBD name RBDNAME
(Default: container name)
--rbdpool=POOL Use Ceph RBD pool name POOL
(Default: lxc)
BDEV option for ZFS (with -B/--bdev zfs) :
--zfsroot=PATH Create zfs under given zfsroot
(Default: tank/lxc)
BDEV options for LVM or Loop (with -B/--bdev lvm/loop) :
--fstype=TYPE Create fstype TYPE
(Default: ext3)
--fssize=SIZE[U] Create filesystem of
size SIZE * unit U (bBkKmMgGtT)
(Default: 1G, default unit: M)
Common options :
-o, --logfile=FILE Output log to FILE instead of stderr
-l, --logpriority=LEVEL Set log priority to LEVEL
-q, --quiet Don't produce any output
-P, --lxcpath=PATH Use specified container path
-?, --help Give this help list
--usage Give a short usage message
--version Print the version number
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
See the lxc-create man page for further information.