[fedora-virt] VM snapshot with qemu-img

Benjamin Cleyet-Marrel bcm at accelance.fr
Tue Sep 22 13:06:57 UTC 2009


Hi Richard,

I think it is possible using qemu to do a live snapshot provided that
you use qcow2 image format.
If you send a savevm to the qemu monitor it will save the RAM cpu
position to the qcow2 image and perform a snapshot of all attached
device.
you can then get the list of snapshot using info snapshots
and restore it by doing loadvm.

Cheers
Ben


-------- Message initial --------
De: Richard W.M. Jones <rjones at redhat.com>
À: rt <r_torresa at yahoo.it>
Cc: fedora-virt at redhat.com
Sujet: Re: [fedora-virt] VM snapshot with qemu-img
Date: Tue, 22 Sep 2009 13:48:35 +0100


On Mon, Sep 21, 2009 at 10:08:58AM -0700, rt wrote:
> I tried to take snapshot of vm using "qemu-img snapshot" command but
> reverting to a snapshot corrupt the vm disk...

This is only ever going to work if the VM is shut down when
you take the snapshot.

Sorry, but we just don't have the ability to do live snapshots
of running VMs.  It requires a lot of work throughout the stack
(qemu / libvirt / user tools).

Rich.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/virt/attachments/20090922/25dc9413/attachment.html 


More information about the virt mailing list