losetup -f
Get a free loop-back device, say /dev/loop0.
losetup /dev/loop0 harshal.qcow
kaprtx -av /dev/loop0
vgscan
Get the name of the volume group in qcow file, say vg_harshal.
vgchange -ay vg_harshal
Enable that volumegroup.
lvdisplay
Get logical volume name for that volume group, say /dev/vg_harshal/root1
mount /dev/vg_harshal/root1 /mount_point
Good to Use.
Once done, we need to undo the changes.
umount /mount_point
vgchange -an vg_harshal
kpartx -dv /dev/loop0
losetup -d /dev/loop0
No comments:
Post a Comment