libvirt-lxc-xml

lxc仅仅需要知道spawn作为容器的“init”函数(pid为1的进程)

例子

<domain type='lxc'>
  <name>helloworld</name>
  <memory>102400</memory>
  <os>
    <type>exe</type>
    <init>/bin/sh</init>
  </os>
  <devices>
    <console type = 'pty'/>
  </devices>
</domain>

posted @ 2013-02-22 15:16  zaleilynn  阅读(265)  评论(0编辑  收藏  举报