Changes between Version 20 and Version 21 of TipAndDoc/Linux/LXC
- Timestamp:
- Dec 27, 2012 10:37:54 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TipAndDoc/Linux/LXC
v20 v21 24 24 * man 5 lxc.conf 25 25 > By default lxc choose a name for the network device belonging to the outside of the container, this name is handled by lxc, but if you wish to handle this name yourself, you can tell lxc to set a specific name with the {{{lxc.network.veth.pair}}} option. 26 * 複数のコンテナで同じ名前のpairを指定すると、二つ目は起動しない(下記の例ではtest1, test2コンテナで{{{lxc.network.veth.pair = test}}}と指定) 27 * $ sudo lxc-start -n test2 28 {{{ 29 lxc-start: failed to create test-vethNdql6o : File exists 30 lxc-start: failed to create netdev 31 lxc-start: failed to create the network 32 lxc-start: failed to spawn 'test2' 33 lxc-start: No such file or directory - failed to remove cgroup '/sys/fs/cgroup/cpu/sysdefault/lxc/test2' 34 }}} 26 35 * 指定しない場合、mktemp("vethXXXXXX")で決定される 27 36 * [http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=blob;f=src/lxc/conf.c;h=2eb598bc6b4511a91b2122beb54db27a7c12491f;hb=6371febf3c7d181cb0f11209df67c35f9d7b233b#l1376 SourceForge - lxc/lxc/blob - src/lxc/conf.c]