I have a VM that was created in raw disk format but learned later that both virsh and qemu-img only supports creating snapshots in qcow2 format.
So I converted my base raw disks to qcow2 and then created snapshots for the disks. The question now is how to apply the snapshot to my base raw disk images?
I tried:
$ qemu-img snapshot -a disk1-snapshot1.qcow2 disk1.img WARNING: Image format was not specified for 'disk1.img' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. WARNING: Image format was not specified for 'disk1.img' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. qemu-img: Could not apply snapshot 'disk1-snapshot1.qcow2': -95 (Operation not supported)