[lxc-users] Fail to convert LXC container configuration into a domain XML fragment

Fajar A. Nugraha list at fajar.net
Thu Mar 6 06:31:29 UTC 2014


On Thu, Mar 6, 2014 at 1:26 PM, Du Jun <dj199008 at gmail.com> wrote:

> Hi, all,
> I used lxc-tools to create a linux container. I am trying to transfrom LXC
> container configuration into a domain XML fragment using the following
> command:
>
> *$ virsh -c lxc:/// domxml-from-native lxc
> /var/lib/lxc/my_conatiner/config*
>
> However, I get the error message,
> error: this function is not supported by the connection driver:
> virConnectDomainXMLFromNative
>
> It seems that *virConnectDomainXMLFromNative *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).
>
> I wonder whether I can convert LXC container configuration into a domain
> XML fragment using *domxml-from-native*? If I can't, how cant I translate
> it?
>
>
It might be better for you to ask in libvirt list.

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.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140306/5523e422/attachment.html>


More information about the lxc-users mailing list