From time to time, after applying Windows updates on my Windows 7 kvm-based virtual machine, the machine won’t boot after restarting. In the past, I was lucky to be able to fix it.
Last night, I could not say the same thing. Instead of stressing out losing my hair on how to get it working again, it’s decided to just restore the whole Windows image. First, I need to get some updated data from it though.
In this post, I’ll share a short instruction on how to mount qcow2 disk image to a directory on Fedora 21 so I can get some data out.
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 /home/kenno/VMs/kvm/7-32b.qcow2
mount /dev/nbd0p1 /mnt
Reference: http://alexeytorkhov.blogspot.com.au/2009/09/mounting-raw-and-qcow2-vm-disk-images.html