Red Hat Bugzilla – Bug 709656
qemu-img snapshot creation failed with RHEL5.4KVM
Last modified: 2011-07-28 10:39:25 EDT
Description of problem:
Tried using the qemu-img binary to create a snapshot of qcow2 image when VM is not running, but fails to create snapshot.
#qemu-img info test_8G.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 2.5G
Version-Release number of selected component (if applicable):
RHEL Version:Red Hat Enterprise Linux Server release 5.4 (Tikanga)
qemu-img binary version: 0.9.1
QEMU PC emulator version: 0.9.1 (kvm-83-maint-snapshot-20090205)
#qemu-img snapshot -c testsnap test_8G.qcow2
qemu-img binary process is running for long time(> 10 min) and is not creating a snapshot.
# qemu-img snapshot -l test_8G.qcow2
Steps to Reproduce:
1. create a qcow2 image and install a VM on that.
2. using qemu-img snapshot -c; try to create a snapshot of the VM
3. Above with fail to create with out throwing any Error.
There is no snapshot of the VM created.
Expected to have a snapshot of the VM created
Please use external snapshots instead, i.e. create a new image that references test_8G.qcow2 as its backing file and use this image to run your VM:
qemu-img create -f qcow2 -b test_8G.qcow2 -F qcow2 test_8G_cow.qcow2