[lxc-users] Using libvirt with containers
Anjali Kulkarni
anjali at juniper.net
Thu Oct 16 23:20:54 UTC 2014
Hi ,
I was trying to make libvirt work with containers, so I created the container with lxc-create and then used the virsh define command to define the container xml file, but it gives me the error shown at the end:
root@/scripts#lxc-create -t ubuntu -n cn-name
root@/scripts# virsh -c lxc:// define cn.xml
error: Failed to define domain from cn.xml
error: operation failed: domain 'cn-name' already exists with uuid 42e4d176-eddb-42a2-95f2-2d6448b787c3
Any idea why?
If I destroy the container created with lxc-create, then virsh -c lxc:// define cn.xml works fine.
However, then no rootfs is created for the container in /var/lib/lxc/cn-name/.
How to get around this problem?
Thanks
Anjali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141016/6bdf7530/attachment.html>
More information about the lxc-users
mailing list