[libvirt] how to connect LXC via libvirt

Hi Daniel, I followed the instructions in: https://lists.linux-foundation.org/pipermail/containers/2008-September/01323... to try to connect with LXC which is built in my VM (ubuntu7.10 + kernel 2.6.27-rc8). Unfortunately, I fail. The container can work when I use its user-space interfaces, however I can not execute the "virsh --connect lxc:/// define mycontainer.xml" after I have installed the libvirt (downloaded from CVS). I checked the libvirt.c and found there are only the "xen:///" support, not any codes to support LXC. Therefore, I am wondering whether LXC has been supported in libvirt mainstream and what should I do to get the result as your statement in maillist. Thanks, Ian

On Thu, Dec 18, 2008 at 11:15:54AM +0800, Ian jonhson wrote:
Hi Daniel,
I followed the instructions in:
https://lists.linux-foundation.org/pipermail/containers/2008-September/01323...
to try to connect with LXC which is built in my VM (ubuntu7.10 + kernel 2.6.27-rc8). Unfortunately, I fail.
The container can work when I use its user-space interfaces, however I can not execute the "virsh --connect lxc:/// define mycontainer.xml" after I have installed the libvirt (downloaded from CVS).
Please provide the error message you got when connecting with this: # LIBVIRT_DEBUG=1 virsh --connect lxc:/// Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Ian jonhson