Re: qemu-img snapshot on running virtual machine

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

 



On 15/03/2018 16:49, Eric Blake wrote:

Yes, having two processes (in this case, the qemu process under libvirt's control, and the qemu-img process) both trying to write to a single qcow2 file at once is a recipe for disaster.  You are VERY likely to cause irreparable disk corruption; although at least newer qemu/qemu-io binaries now use file locking to at least fail up front when they detect that another process has the image open for writing, rather than letting you shoot yourself in the foot.

The only SAFE way to take a snapshot of a running virtual machine is through commands issued to the qemu process that is running the machine (that is, via libvirt APIs if libvirt is managing the qemu process).


Roger :)
Thanks so much, Eric.

--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@xxxxxxxxxx - info@xxxxxxxxxx
GPG public key ID: FF5F32A8

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux