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