Answer the question
In order to leave comments, you need to log in
How to access img image in KVM?
The redhat website has detailed instructions on how to mount an img image of a kvm virtual machine and access it, the kpartx tool is suggested.
But when I enter the command: kpartx -a /path/to/guest.img
Absolutely nothing happens - the output of the command is empty, no device /dev/mapper/loop is added. How to win?
Answer the question
In order to leave comments, you need to log in
Solved the problem like this:
qemu-nbd -c /dev/nbd0 /path/to/guest.img
mount /dev/nbd0p1 /mnt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question