[libvirt] libvirt support for LXC

Hi, I am new to this community and am not much aware of current status libvirt work for LXC. Currently I am evaluating LXC with libvirt. and I found still many features like checkpoint/restore/live migration , Attach storage device etc are not implemented. Is there any work going on these feature? or any plan or Roadmap? Following is a table showing libvirt functionality support for LXC. Please feel free to comment in case, I am wrong or tested not propely the libvirt and marked some working feature as not working for LXC. Sr. No. Command Name Description (brief) Status (working or not) 01 autostart Enable and disable the automatic starting of a guest domain when the libvirt daemon starts. ₒ 02 Console connect to the virtual serial console for the guest. ₒ 03 create creates a guest domain from an xml file # does not work. gives error. - 04 Define defines but doesnt start a guest domain from an xml file ○ 05 destroy immediately terminates a running guest domain and releases any resources in use by it. Not to be used lightly ○ 06 attach-disk / detach-disk attach or detach a disk device Note : Doesnt work. maybe i am doing something wrong. - 07 domjobinfo info about running guest domain jobs - 08 domjobabort aborts current running guest domain job - 09 Dump Core dump a guest domain - 10 managedsave / managedsave-remove Save and destroy a running guest domain, so it can be restarted from the same state at a later time. When the virsh start command is next run for the guest domain, it will automatically be started from this saved state - 11 Migrate ** migrates a guest domain to another host 12 Reboot Runs a reboot in the guest domain - 13 Restore restores a guest domain - 14 Resume resumes a guest domain ○ 15 Save saves the running state of a guest domain to a file. - 16 shutdown runs shutdown in a guest domain - 17 Start starts a guest domain either form a last managedsave or via a fresh boot if no managed save is present ○ 18 Update-device update device from an XML file - 19 virt-viewer display a vnc type interface to running domain ○ 20 maxvcpus show maximum number of virtual CPUs for guest domains on this connection - 21 memtune gets or sets the current memory parameters for a guest domain ○ 22 schedinfo show or set scheduler parameters ○ 23 setmaxmem change the maximum memory allocation limit in the guest domain ○ 24 setmem change the current memory allocation in the guest domain ○ 25 setvcpus change the number of virtual cpus in the guest domain - 26 vcpuinfo returns basic info about the guest domains virtual CPU's - 27 dominfo displays some basic information about the domain specified ○ 28 dommemstat displays info about the memory statistics of the domain - 29 domblkinfo gets the block device size or a guest domain ○ 30 domblkstat gets device block stats for a running guest domain ○ 31 domifstat gets network interface stat for a running guest domain ○ 32 dominfo gets basic information about a guest domain ○ 33 dommemstat gets memory statistics for a running guest domain ○ 34 domstate returns the state of a guest domain i.e. whether running etc ○ 35 list returns a list of guest domains ○ 36 Capabilities returns the capabilities of the host and guest in xml format ○ 37 freecell Display available free memory for a NUMA cell ○ 38 hostname Display the name of the hypervisor host ○ 39 nodeinfo Returns basic information about the node ○ 40 iface-define define a physical host network interface. The file expected is of the type xml. We have an example of how it is executed. ○ 41 iface-destroy shutsdown and siables a physical host network device ○ 42 iface-dumpxml Output information for a physical host network interface, as an XML dump to stdout ○ 43 iface-list Returns a list of physical host network interfaces ○ 44 iface-start Enables and starts a physical host network interface ○ 45 iface-undefine Removes the configuration information for a physical host network interface ○ 46 net-autostart Enable or disable the automatic starting of a virtual network, when the libvirt daemon starts ○ 47 net-define Adds a new permanent virtual network from an XML file, without starting it ○ 48 net-dumpxml Displays the XML configuration for a virtual network (to stdout) ○ 49 net-edit opens the network config xml for editing by user. ○ 50 net-info displays basic information about a network ○ 51 net-start starts a network ○ 52 net-undefine undefines a network from the configuration file. ○ 53 Domain snapshot commands (multiple) Does not work with LXC. - Thanks & Regards, Kunal Kushwaha

On Thu, Feb 07, 2013 at 03:51:52PM +0530, Kunal Kushwaha wrote:
Hi,
I am new to this community and am not much aware of current status libvirt work for LXC.
Currently I am evaluating LXC with libvirt. and I found still many features like checkpoint/restore/live migration ,
Checkpoint/restore/migration is something we'd have to delegate to the CRIU code (http://criu.org/LXC). I'm not sure how easy that is todo though, since CRIU code is not a nicely reusable library, it is a set of command line tools. This will need some investigation. I don't believe anyone is actively working on it.
Attach storage device etc are not implemented.
I think you migth have looked at an old libvirt release. I added support for hotplug of disks (raw file or block dev), netwok devices & host devices (usb, block & character devices) in the last few months
Please feel free to comment in case, I am wrong or tested not propely the libvirt and marked some working feature as not working for LXC.
You seem to have sent HTML to this list, which does not render at all nicely
Command Name
Description (brief)
Status (working or not)
01
autostart
Enable and disable the automatic starting of a guest domain when the libvirt daemon starts.
ₒ
02
Console
connect to the virtual serial console for the guest.
ₒ
03
create
creates a guest domain from an xml file # does not work. gives error.
Can you resend this list in a format that is more readable in plain text only. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

I am using libvirt version 0.9.10 and have updated from yum repo of CentOS 6.X I am not able to format this table into text as of now, so am attaching a PDF file for same. Please let me know, in case you want me to sent in text inline instead of attachment. Will try to do covert in plain text again. Best Regards, Kunal Kushwaha On Thu, Feb 7, 2013 at 8:49 PM, Daniel P. Berrange <berrange@redhat.com>wrote:
Hi,
I am new to this community and am not much aware of current status
On Thu, Feb 07, 2013 at 03:51:52PM +0530, Kunal Kushwaha wrote: libvirt
work for LXC.
Currently I am evaluating LXC with libvirt. and I found still many features like checkpoint/restore/live migration ,
Checkpoint/restore/migration is something we'd have to delegate to the CRIU code (http://criu.org/LXC). I'm not sure how easy that is todo though, since CRIU code is not a nicely reusable library, it is a set of command line tools. This will need some investigation. I don't believe anyone is actively working on it.
Attach storage device etc are not implemented.
I think you migth have looked at an old libvirt release. I added support for hotplug of disks (raw file or block dev), netwok devices & host devices (usb, block & character devices) in the last few months
Please feel free to comment in case, I am wrong or tested not propely the libvirt and marked some working feature as not working for LXC.
You seem to have sent HTML to this list, which does not render at all nicely
Command Name
Description (brief)
Status (working or not)
01
autostart
Enable and disable the automatic starting of a guest domain when the libvirt daemon starts.
ₒ
02
Console
connect to the virtual serial console for the guest.
ₒ
03
create
creates a guest domain from an xml file # does not work. gives error.
Can you resend this list in a format that is more readable in plain text only.
Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/:| |: http://libvirt.org -o- http://virt-manager.org:| |: http://autobuild.org -o- http://search.cpan.org/~danberr/:| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc:|

On 130207 15:19:08, Daniel P. Berrange wrote:
On Thu, Feb 07, 2013 at 03:51:52PM +0530, Kunal Kushwaha wrote:
Hi,
I am new to this community and am not much aware of current status libvirt work for LXC.
Currently I am evaluating LXC with libvirt. and I found still many features like checkpoint/restore/live migration ,
Checkpoint/restore/migration is something we'd have to delegate to the CRIU code (http://criu.org/LXC). I'm not sure how easy that is todo though, since CRIU code is not a nicely reusable library, it is a set of command line tools. This will need some investigation. I don't believe anyone is actively working on it.
Please, feel free to contact CRIU development team (https://lists.openvz.org/mailman/listinfo/criu). We are open for discussion and will help with integration.
Attach storage device etc are not implemented.
I think you migth have looked at an old libvirt release. I added support for hotplug of disks (raw file or block dev), netwok devices & host devices (usb, block & character devices) in the last few months
Please feel free to comment in case, I am wrong or tested not propely the libvirt and marked some working feature as not working for LXC.
You seem to have sent HTML to this list, which does not render at all nicely
Command Name
Description (brief)
Status (working or not)
01
autostart
Enable and disable the automatic starting of a guest domain when the libvirt daemon starts.
ₒ
02
Console
connect to the virtual serial console for the guest.
ₒ
03
create
creates a guest domain from an xml file # does not work. gives error.
Can you resend this list in a format that is more readable in plain text only.
Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Dmitry Guryanov

Is there any libvirt or third party tool available for converting Physical machine to virtual for LXC? I would like to evaluate such tools, so please let me know. Best Regards, Kunal Kushwaha On Wed, Feb 13, 2013 at 4:28 PM, Dmitry Guryanov <dguryanov@parallels.com>wrote:
On Thu, Feb 07, 2013 at 03:51:52PM +0530, Kunal Kushwaha wrote:
Hi,
I am new to this community and am not much aware of current status
On 130207 15:19:08, Daniel P. Berrange wrote: libvirt
work for LXC.
Currently I am evaluating LXC with libvirt. and I found still many features like checkpoint/restore/live migration ,
Checkpoint/restore/migration is something we'd have to delegate to the CRIU code (http://criu.org/LXC). I'm not sure how easy that is todo though, since CRIU code is not a nicely reusable library, it is a set of command line tools. This will need some investigation. I don't believe anyone is actively working on it.
Please, feel free to contact CRIU development team (https://lists.openvz.org/mailman/listinfo/criu).
We are open for discussion and will help with integration.
Attach storage device etc are not implemented.
I think you migth have looked at an old libvirt release. I added support for hotplug of disks (raw file or block dev), netwok devices & host devices (usb, block & character devices) in the last few months
Please feel free to comment in case, I am wrong or tested not propely
the
libvirt and marked some working feature as not working for LXC.
You seem to have sent HTML to this list, which does not render at all nicely
Command Name
Description (brief)
Status (working or not)
01
autostart
Enable and disable the automatic starting of a guest domain when the libvirt daemon starts.
ₒ
02
Console
connect to the virtual serial console for the guest.
ₒ
03
create
creates a guest domain from an xml file # does not work. gives error.
Can you resend this list in a format that is more readable in plain text only.
Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Dmitry Guryanov
participants (3)
-
Daniel P. Berrange
-
Dmitry Guryanov
-
Kunal Kushwaha