<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 6, 2014 at 1:26 PM, Du Jun <span dir="ltr"><<a href="mailto:dj199008@gmail.com" target="_blank">dj199008@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, all,<div>I used lxc-tools to create a linux container. I am trying to transfrom LXC container configuration <span style="font-family:Verdana,Arial,Helvetica,sans-serif">into a domain XML fragment</span> using the following command:</div>
<div><br></div><div><b>$ virsh -c lxc:/// domxml-from-native lxc /var/lib/lxc/my_conatiner/config</b><br></div><div><b><br></b></div><div>However, I get the error message,</div><div><font color="#ff0000">error: this function is not supported by the connection driver: virConnectDomainXMLFromNative</font><br>
</div><div><font color="#ff0000"><br></font></div><div><font color="#000000">It seems that </font><font color="#000000"><b>virConnectDomainXMLFromNative </b>is not supported in libvrit LXC driver. However, I find the command in the official documentation of libvirt. Besides, my libvirt's version is 1.2.2(the latest version).</font></div>
<div><font color="#000000"><br></font></div><div><font color="#000000">I wonder whether I can convert LXC container configuration into a domain XML fragment using </font><b>domxml-from-native</b>?<span style> If I can't, how cant I translate it? </span></div>
<div><span style><br></span></div></div></blockquote><div><br></div><div>It might be better for you to ask in libvirt list.</div><div><br></div><div>IIRC libvirt and lxc uses different userland tools, so I wouldn't be surprised if it turns out that not all directive in lxc container config file is supported by libvirt.</div>
<div><br></div><div>-- </div><div>Fajar</div></div></div></div>