Bug 709656 - qemu-img snapshot creation failed with RHEL5.4KVM
Summary: qemu-img snapshot creation failed with RHEL5.4KVM
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: Rhel5KvmTier2
TreeView+ depends on / blocked
 
Reported: 2011-06-01 10:12 UTC by Suresh Kolsur
Modified: 2011-07-28 14:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-28 14:39:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Suresh Kolsur 2011-06-01 10:12:44 UTC
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
image: test_8G.qcow2
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 2.5G
cluster_size: 4096

Version-Release number of selected component (if applicable):

RHEL Version:Red Hat Enterprise Linux Server release 5.4 (Tikanga)
KVM Version:kvm-83-105.el5
qemu-img binary version: 0.9.1
QEMU PC emulator version: 0.9.1 (kvm-83-maint-snapshot-20090205)

How reproducible:

#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.
  
Actual results:
There is no snapshot of the VM created.

Expected results:
Expected to have a snapshot of the VM created

Additional info:

Comment 1 Kevin Wolf 2011-07-28 14:39:25 UTC
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


Note You need to log in before you can comment on or make changes to this bug.