Changes between Version 1 and Version 2 of TipAndDoc/Linux/LXC/Ubuntu


Ignore:
Timestamp:
Apr 23, 2016 4:40:27 PM (9 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC/Ubuntu

    v1 v2  
    22 
    33 = Ubuntu 12.04 = 
     4 * mitty@precise:~$ lxc-create -t ubuntu -h 
     5{{{ 
     6usage: lxc-create -n <name> [-f configuration] [-t template] [-h] -- [template_options] 
     7usage: 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 
     13creates a lxc system object. 
     14 
     15Options: 
     16name         : name of the container 
     17configuration: lxc configuration 
     18template     : lxc-template is an accessible template script 
     19 
     20The container backing store can be altered using '-B'.  By default it 
     21is 'none', which is a simple directory tree under /var/lib/lxc/<name>/rootfs 
     22Otherwise, the following option values may be relevant: 
     23lvname       : [for -lvm] name of lv in which to create lv, 
     24                container-name by default 
     25vgname       : [for -lvm] name of vg in which to create lv, 'lxc' by default 
     26fstype       : name of filesystem to create, ext4 by default 
     27fssize       : size of filesystem to create, 1G by default 
     28 
     29template-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>] 
     32release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS 
     33trim: make a minimal (faster, but not upgrade-safe) container 
     34bindhome: bind <user>'s home into the container 
     35          The ubuntu user will not be created, and <user> will have 
     36          sudo access. 
     37arch: the container architecture (e.g. amd64): defaults to host arch 
     38auth-key: SSH Public key file to inject into container 
     39}}} 
     40 
    441 * http://manpages.ubuntu.com/manpages/precise/man5/lxc.conf.5.html 
    542