- Details
Ever tried to mount a partition that is inside an image with multiple partitions? With kpartx of the multipath-tools package, it's really easy. It scans the image and creates a individual device file for every partition using the device mapper.
Example in case of a KVM image: http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.html
- Details
First create a loop device for the image:
losetup -f /path/to/image
Then create a vmdk file for the resulting loop device:
VBoxManage internalcommands createrawvmdk -filename my_image.vmdk -rawdisk /dev/loop/0
This vmdk file can be used by Virtualbox as a hard disk.