Changes between Version 6 and Version 7 of TipAndDoc/Linux/LXC


Ignore:
Timestamp:
Aug 12, 2012 12:23:23 AM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/LXC

    v6 v7  
    77 * [http://www.slideshare.net/mkouhei/lxc-cf201207presen LXC 再入門] 
    88 * [http://www.slideshare.net/masahide_yamamoto/osc2011-nagoya LXC入門 - Osc2011 nagoya] 
     9 
     10 * mitty@precise:~$ lxc-create -t ubuntu -h 
     11{{{ 
     12usage: lxc-create -n <name> [-f configuration] [-t template] [-h] -- [template_options] 
     13usage: 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 
     19creates a lxc system object. 
     20 
     21Options: 
     22name         : name of the container 
     23configuration: lxc configuration 
     24template     : lxc-template is an accessible template script 
     25 
     26The container backing store can be altered using '-B'.  By default it 
     27is 'none', which is a simple directory tree under /var/lib/lxc/<name>/rootfs 
     28Otherwise, the following option values may be relevant: 
     29lvname       : [for -lvm] name of lv in which to create lv, 
     30                container-name by default 
     31vgname       : [for -lvm] name of vg in which to create lv, 'lxc' by default 
     32fstype       : name of filesystem to create, ext4 by default 
     33fssize       : size of filesystem to create, 1G by default 
     34 
     35template-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>] 
     38release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS 
     39trim: make a minimal (faster, but not upgrade-safe) container 
     40bindhome: bind <user>'s home into the container 
     41          The ubuntu user will not be created, and <user> will have 
     42          sudo access. 
     43arch: the container architecture (e.g. amd64): defaults to host arch 
     44auth-key: SSH Public key file to inject into container 
     45}}} 
    946 
    1047 = Ubuntu 12.04 =