Created attachment 331653 [details] Implements --checkpoint to avoid a shutdown when 'virsh save' run Description of problem: A backup scenario I'm working on requires a clean snapshot of both VM memory and disk state. Something like a 'virsh save --checkpoint domain filename' shouldn't shutdown the VM shutdown, just leave it paused. It can then be resumed after the backup system has done its thing. A '--checkpoint' option just like the migrate '--live' feature would enable a 'virsh save' to be done that leaves the VM in a paused state rather than shutting it down. Similar to what is already available in Xen doing an 'xm save -c domain filename' Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. 'virsh save domain filename' always shuts the domain down Actual results: A non-running domain Expected results: In the case of KVM hopefully a paused domain that can be resumed Additional info: Patch created (against 0.6.0) to implement --checkpoint in 'virsh save'
this idea upstream http://www.redhat.com/archives/libvir-list/2009-March/msg00205.html
libvirt now has full support for doing live snapshots of guests + their storage. commit 2f992d4be4c6157feec4f88ac586f2c50a8fd466 Author: Chris Lalancette <clalance> Date: Wed Mar 31 16:33:13 2010 -0400 Snapshot API framework. Signed-off-by: Chris Lalancette <clalance>