[libvirt] Xen: Stream-API or XML-RPC or XenAPI for managedSave, snapshots

Hello, for our project I need libvirts "managed save" functionality for Xen-3.4. In my implementation I tried to use Xens 'suspend' and 'resume', which would nicely match, but these two functions are not available throu the legacy streaming API (xend-http-server, xend-unix-server), which libvirt seems to still use. They are available throu the XML-RPC interface and the XenAPI interface, which libvirt doesn't seem to use. Are there any plans to convert libvirt to use one of the newer interfaces? My other option would be to either implement another subdriver for xenUnified*, which would implement domainManagedSave(), domainHasManagedSaveImage() and domainManagedSaveRemove() using XML-RPC (or XenAPI), or to implement suspend() and resume() in Xend. I also will need to look at snapshots next: Has someone already investigated adding snapshot support to Xen(-3.4)? Sincerely Philipp Hahn -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH Linux for Your Business fon: +49 421 22 232- 0 Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99 http://www.univention.de Besuchen Sie uns auf unseren nächsten Veranstaltungen: 26. - 28.10.: IT & Business 2010 in Stuttgart 27. - 28.10.: MODERNER STAAT 2010 in Berlin http://www.univention.de/univention/termine/veranstaltungstermin/

On Wed, Oct 27, 2010 at 04:56:03PM +0200, Philipp Hahn wrote:
Hello,
for our project I need libvirts "managed save" functionality for Xen-3.4. In my implementation I tried to use Xens 'suspend' and 'resume', which would nicely match, but these two functions are not available throu the legacy streaming API (xend-http-server, xend-unix-server), which libvirt seems to still use. They are available throu the XML-RPC interface and the XenAPI interface, which libvirt doesn't seem to use.
There is a XenAPI driver in recent libvirt. Accessible with xenapi://hostname:port/ I'm not sure that 'suspend'/'resume' map to "managed save". suspend/resume are basically just pausing CPUs afaik, and this is already done in libvirt APIs. Managed save is about saving guest state in a standard location and automagically restoring from that upon guest boot.
I also will need to look at snapshots next: Has someone already investigated adding snapshot support to Xen(-3.4)?
Not that I'm aware of Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Hello Daniel. Am Mittwoch 27 Oktober 2010 18:05:50 schrieb Daniel P. Berrange:
for our project I need libvirts "managed save" functionality for Xen-3.4. In my implementation I tried to use Xens 'suspend' and 'resume', which would nicely match, but these two functions are not available throu the legacy streaming API (xend-http-server, xend-unix-server), which libvirt seems to still use. They are available throu the XML-RPC interface and the XenAPI interface, which libvirt doesn't seem to use.
There is a XenAPI driver in recent libvirt. Accessible with xenapi://hostname:port/
Thanks you for the hint, I'll take a look.
I'm not sure that 'suspend'/'resume' map to "managed save". suspend/resume are basically just pausing CPUs afaik, and this is already done in libvirt APIs. Managed save is about saving guest state in a standard location and automagically restoring from that upon guest boot.
Don't confuse libvirts naming with Xens naming: libvirt.suspend = xen.pause libvirt.resume = xen.unpause libvirt.managedsave = xen.suspend libvirt."managed start" = xen.resume
I also will need to look at snapshots next: Has someone already investigated adding snapshot support to Xen(-3.4)?
Not that I'm aware of
I'll give it a try when time permits. Sincerely Philipp Hahn -- Philipp Hahn Open Source Software Engineer hahn@univention.de Univention GmbH Linux for Your Business fon: +49 421 22 232- 0 Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99 http://www.univention.de Besuchen Sie uns auf unseren nächsten Veranstaltungen: 26. - 28.10.: IT & Business 2010 in Stuttgart 27. - 28.10.: MODERNER STAAT 2010 in Berlin http://www.univention.de/univention/termine/veranstaltungstermin/
participants (2)
-
Daniel P. Berrange
-
Philipp Hahn