| 75 | | * mitty@precise:~$ lxc-create -t ubuntu -h |
| 76 | | {{{ |
| 77 | | usage: lxc-create -n <name> [-f configuration] [-t template] [-h] -- [template_options] |
| 78 | | usage: lxc-create -n <name> [-f configuration] [-t template] [-h] [fsopts] -- [template_options] |
| 79 | | fsopts: -B none |
| 80 | | fsopts: -B lvm [--lvname lvname] [--vgname vgname] [--fstype fstype] [--fssize fssize] |
| 81 | | fsopts: -B btrfs |
| 82 | | flag is not necessary, if possible btrfs support will be used |
| 83 | | |
| 84 | | creates a lxc system object. |
| 85 | | |
| 86 | | Options: |
| 87 | | name : name of the container |
| 88 | | configuration: lxc configuration |
| 89 | | template : lxc-template is an accessible template script |
| 90 | | |
| 91 | | The container backing store can be altered using '-B'. By default it |
| 92 | | is 'none', which is a simple directory tree under /var/lib/lxc/<name>/rootfs |
| 93 | | Otherwise, the following option values may be relevant: |
| 94 | | lvname : [for -lvm] name of lv in which to create lv, |
| 95 | | container-name by default |
| 96 | | vgname : [for -lvm] name of vg in which to create lv, 'lxc' by default |
| 97 | | fstype : name of filesystem to create, ext4 by default |
| 98 | | fssize : size of filesystem to create, 1G by default |
| 99 | | |
| 100 | | template-specific help follows: (these options follow '--') |
| 101 | | /usr/lib/lxc/templates/lxc-ubuntu -h|--help [-a|--arch] [-b|--bindhome <user>] [--trim] [-d|--debug] |
| 102 | | [-F | --flush-cache] [-r|--release <release>] [ -S | --auth-key <keyfile>] |
| 103 | | release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS |
| 104 | | trim: make a minimal (faster, but not upgrade-safe) container |
| 105 | | bindhome: bind <user>'s home into the container |
| 106 | | The ubuntu user will not be created, and <user> will have |
| 107 | | sudo access. |
| 108 | | arch: the container architecture (e.g. amd64): defaults to host arch |
| 109 | | auth-key: SSH Public key file to inject into container |
| 110 | | }}} |
| 111 | | |
| 112 | | * [https://www.stgraber.org/2013/12/20/lxc-1-0-blog-post-series/ LXC 1.0: Blog post series [0/10] | Stéphane Graber's website] |
| 113 | | * [https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/ LXC 1.0: GUI in containers [9/10] | Stéphane Graber's website] |
| | 75 | * [https://www.stgraber.org/2013/12/20/lxc-1-0-blog-post-series/ LXC 1.0: Blog post series (0/10) | Stéphane Graber's website] |
| | 76 | * [https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/ LXC 1.0: GUI in containers (9/10) | Stéphane Graber's website] |