| 4 | * mitty@precise:~$ lxc-create -t ubuntu -h |
| 5 | {{{ |
| 6 | usage: lxc-create -n <name> [-f configuration] [-t template] [-h] -- [template_options] |
| 7 | usage: lxc-create -n <name> [-f configuration] [-t template] [-h] [fsopts] -- [template_options] |
| 8 | fsopts: -B none |
| 9 | fsopts: -B lvm [--lvname lvname] [--vgname vgname] [--fstype fstype] [--fssize fssize] |
| 10 | fsopts: -B btrfs |
| 11 | flag is not necessary, if possible btrfs support will be used |
| 12 | |
| 13 | creates a lxc system object. |
| 14 | |
| 15 | Options: |
| 16 | name : name of the container |
| 17 | configuration: lxc configuration |
| 18 | template : lxc-template is an accessible template script |
| 19 | |
| 20 | The container backing store can be altered using '-B'. By default it |
| 21 | is 'none', which is a simple directory tree under /var/lib/lxc/<name>/rootfs |
| 22 | Otherwise, the following option values may be relevant: |
| 23 | lvname : [for -lvm] name of lv in which to create lv, |
| 24 | container-name by default |
| 25 | vgname : [for -lvm] name of vg in which to create lv, 'lxc' by default |
| 26 | fstype : name of filesystem to create, ext4 by default |
| 27 | fssize : size of filesystem to create, 1G by default |
| 28 | |
| 29 | template-specific help follows: (these options follow '--') |
| 30 | /usr/lib/lxc/templates/lxc-ubuntu -h|--help [-a|--arch] [-b|--bindhome <user>] [--trim] [-d|--debug] |
| 31 | [-F | --flush-cache] [-r|--release <release>] [ -S | --auth-key <keyfile>] |
| 32 | release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS |
| 33 | trim: make a minimal (faster, but not upgrade-safe) container |
| 34 | bindhome: bind <user>'s home into the container |
| 35 | The ubuntu user will not be created, and <user> will have |
| 36 | sudo access. |
| 37 | arch: the container architecture (e.g. amd64): defaults to host arch |
| 38 | auth-key: SSH Public key file to inject into container |
| 39 | }}} |
| 40 | |