[pve-devel] [PATCH] remove running from Storage and check it in QemuServer

Alexandre DERUMIER aderumier at odiso.com
Thu Apr 30 13:18:04 CEST 2015


>>We need to use qemu "snapshot-drive" if the VM is running?

For qcow2 file yes.

found some reference here:

https://www.suse.com/documentation/sles11/book_kvm/data/cha_qemu_guest_inst_qemu-img.html
"
WARNING: Do not create or delete virtual machine snapshots with the qemu-img snapshot command while the virtual machine is running.
 Otherwise, you can damage the disk image with the state of the virtual machine saved.
"-
---- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 30 Avril 2015 13:11:35
Objet: Re: [pve-devel] [PATCH] remove running from Storage and check it in QemuServer

> > So, with this code, we always call qemu-img snasphot for qcow2, which is 
> > wrong 
> > if the vm is running. 
> > (for rbd,zfs,.. no problem). 
> > 
> > I think that's why we passed the running flag to pve-storage. 
> 
> Ah, yes - the logic is wrong, but fixable. 

Or is it the other way around? We need to use qemu "snapshot-drive" if the VM is 
running? 
confused :-/ 



More information about the pve-devel mailing list