Consistent VM backup via snapshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to backup a KVM VM by creating a snapshot of the running VM
and extracting that snapshot from the running VM using qemu-img convert.
Sources on the net suggest that I would get an image that contains
all the machine state of the snapshot. So when I run the VM it would
continue to run just where it was when the snapshot was created.

But instead, when I run the VM with the converted image, the guest boots
up and does a filesystem recovery just as if it had crashed. So the
machine state information seems to go missing when extracting.

Should this work or am I missing something?

Would it instead be possible to create a snapshot of the running VM and
then just rsync the qcow2 image file to the backup location while the VM
is still running? This way, the snapshot inside the image with all state
information of the running VM would stay intact and could be resumed. I
tried this and it worked. I'm just not sure whether it would always
work, that is: Is a snapshot guaranteed to stay consistent even when the
VM is running on top of it and the image file is copied away from under
it?
-- 
Thank you,
Micha
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux