mount kvm images (qcow2) on debian 7
I need to get some data form a libvirt/kvm image without starting the VM. Actually the VM is broken so it wont start. Here's how I could get access to the image:
mount:
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 /var/lib/libvirt/images/image.img
mount /dev/nbd0p1 /mnt
unmount:
umount /mnt
pkill -9 qemu-nbd
rmmod nbd
resources: