On Sat, Aug 25, 2012 at 2:25 PM, Alexandre DERUMIER <aderum...@odiso.com> wrote: > I'm currently looking to add live snapshot support to proxmox kvm > distribution. > > Is it possible to use internal snapshots on a running guest running qcow2 > disk? > (qemu-img snapshot -c ) ?
No. qemu-img should not be used if the guest is running. > Or do I need to use external snapshots with qmp blockdev-snapshot-sync ? > (Seem more complex to delete old snapshots) External qcow2/qed snapshots can be created while the guest is running using snapshot-blockdev-sync, but it is not yet possible to flatten the chain arbitrarily while the guest is running. You can use block-stream to populate the top-most image file with data from its backing image chain. Jeff Cody is working on block-commit which allows merging down (this is the opposite of block-stream). The advantage with block-commit is that backing images are often smaller than the image file, it's therefore more efficient to copy less data down instead of copying the backing image up into the image file. Stefan