<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">hi all,<div><br></div><div>    I try to follow the instructions in <a href="http://libvirt.org/drvlxc.html" target="_blank">http://libvirt.org/drvlxc.html</a> to config libvirt-lxc, but failed when starting the lxc.</div><div><br></div><div>    The domain config file:</div><div># cat b.xml </div><div><br></div><div><div><domain type='lxc'></div><div>  <name>b</name></div><div>  <memory>32768</memory></div><div>  <os></div><div>    <type>exe</type></div><div>    <init>/bin/sh</init></div><div>  </os></div><div>  <vcpu>1</vcpu></div><div>  <clock offset='utc'/></div><div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>destroy</on_crash&!
 gt;</div><div>  <devices></div><div>    <emulator>/usr/libexec/libvirt_lxc</emulator></div><div>    <filesystem type='mount'></div><div>      <source dir='/data/lxc/centos6'/></div><div>      <target dir='/'/></div><div>    </filesystem></div><div>    <interface type='network'></div><div>      <source network='default'/></div><div>    </interface></div><div>    <console type='pty' /></div><div>  </devices></div><div></domain></div></div><div><br></div><div>then define it:</div><div><div># virsh --connect lxc:/// define b.xml</div><div>Domain b defined from b.xml</div></div><div><br></div><div>then start:</div><div><div># virsh --connect lxc:/// start b    </div><div>error: Failed to start domain b</div><div>error: internal error guest failed to start: 2012-10-10 09:56:17.369!
 +0000: 452722: info : libvirt version: 0.9.10, package: 21.el6!
 _3.4 (CentOS BuildSystem <http://bugs.centos.org>, 2012-08-23-18:28:26, c6b9.bsys.dev.centos.org)</div><div>2012-10-10 09:56:17.369+0000: 452722: error : lxcControllerRun:1484 : Failed to query file context on /data/lxc/centos6: No data available</div></div><div><br></div><div>It's the filesystem mount section that cause this problem. The tutorial says the path '/data/lxc/centos6' should be "<span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; line-height: normal; ">private root filesystem (perhaps hand-crafted using busybox, or installed from media, debootstrap, whatever)", but I am not quite clear about what this path should be. In my case, the "</span>/data/lxc/centos6" is the root of template downloaded from <a href="http://wiki.openvz.org/Download/template/precreated">http://wiki.openvz.org/Download/template/precreated</a>. </div><div><br></div><div><div># pwd</div><div>/data/lxc/centos6</div></div><div><div># ls</div><div>b!
 in  boot  dev  etc  fastboot  home  lib  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var</div></div><div><br></div><div>Can someone elaborate what should <source dir='/data/lxc/centos6'/> be?</div><div><br></div><div>many thanks</div><div>    </div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>