Pages

Wednesday, February 27, 2013

error: Requested operation is not valid: Disk does not support snapshotting

error: Requested operation is not valid: Disk  does not support snapshot

This error arises when you try to take a snapshot of a VM hard disk with virsh command
as shown below


virsh snapshot-create Clusterbase

error: Requested operation is not valid: Disk '/path/to/kvm/clusterbase.img' does not support snapshot.

If you see image of this VM is .img format, by default Virsh snapshot will work only for qcow2 format as of time of this post writing. So first convert that image to qcow2 format and then try to do a snapshot t with same command.

Convert img file to  qcow2 format


qemu-img convert -f raw -O qcow2 /path/to/kvm/clusterbase.img /path/to/kvm/clusterbase.qcow2

Hope this helps to resolve this error.

2 comments:

  1. Thank you
    I have the same problem but
    dose this command take long time to execute ?

    ReplyDelete
    Replies
    1. Yes, it depends on image size as well as your processor speed.

      Delete