/
Mounting raw and qcow2 VM disk images

Mounting raw and qcow2 VM disk images

sudo modprobe loop
sudo losetup -f
sudo losetup /dev/loop0 myimage.img
sudo partprobe /dev/loop0
(kpartx -a /dev/loop0)
mount /dev/mapper/loop0p1 /mnt/image
(e.g: mount /dev/mapper/loop0p1 /mnt1)

Reference
1. http://alexeytorkhov.blogspot.com.au/2009/09/mounting-raw-and-qcow2-vm-disk-images.html
2. http://softwarebakery.com/shrinking-images-on-linux

Related content

Mounting QRIScloud and rdsi storage to local clients
Mounting QRIScloud and rdsi storage to local clients
More like this
Download a nectar snapshot image
Download a nectar snapshot image
More like this
Converting an externally created VirtualBox or Vmware image for use in nectar
Converting an externally created VirtualBox or Vmware image for use in nectar
More like this