losetup /dev/loop0 image.img
# or
losetup -f file.raw
# if /dev/loop0p1 does not exist
kpartx -a /dev/loop0
# Mount part
mount /dev/loop0p1 /mnt/image
# Stopping
kpartx -d /dev/loop0
losetup -d /dev/loop0
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 file.qcow2
mount /dev/nbd0p1 /mnt/image
# Stopping
nbd-client -d /dev/nbd0
Using guestfish CLI applciation
guestfish
add-ro /apth/to/image.disk
run
list-filesysmtems
cat /etc/fstab
exit
qemu-img convert -f qcow2 /home/your_current_image.qcow2 -O raw /home/your_new_image.raw
kpartx -av /dev/VolGroup00/disk_image
vgscan
# vgrename if clashing with VG on host
# Activate guest Vol if needed
vgchange -ay VolGroupXX
lvscan
mount /dev/VolGroupXX/disk_image /mnt
# Cleaning
umount /mnt
vgchange -an VolGroupXX
kpartk -dv /dev/VolGroup00/disk_image
pvscan