I'm running some Xen-servers and started migrating to KVM.
Currently my guests are either running on raw-images or LVMs.
I found libvirt providing some very nice snapshot features (virsh snapshot-create, ...) so I decided to use qcow2 instead of raw/lvm.
And here is my question: libvirt creates the same sort of snapshots on the qcow2 image as if I use qemu-img - is it possible to mount them ? I read something about qemu-nbd and the possibility of mounting qcow but I could not find a word about snapshots.
You should apply the snapshot and mount the image like always. It's better to create a snapshot right before applying if you want to turn back to the original disk contents before you do these operations. After you apply the snapshot you just mount the image with
qemu-nbd
as always:You might want to save snapshot separately and mount it as another disk drive. For this you should use
convert
comand forqemu-img
.See man qemu-img(1) and qemu-nbd(1) for more details.
it uses qemu-img for snapshot creation. So if you mount a snapshot, it should be able to access the rest of the images further down the snapshot chain