If the qcow2 file is created with preallocation=full, I think metadata will not corrupt when it is shared between two vms? Snapshot is not required.
Is this right? BR Chang limin -----Original Message----- From: Max Reitz [mailto:mre...@redhat.com] Sent: Thursday, October 26, 2017 3:12 PM To: changlimin 00148 (Cloud); Fam Zheng Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off On 2017-10-26 03:06, Changlimin wrote: > share-rw=on is good for raw format file, but bad for qcow2 format file: > > Failed to get "write" lock > Is another process using the image? > > Is this intented? Yes, because you can never share qcow2 image files between VMs. The qcow2 format itself does not support this, as it may lead to metadata corruption. Max