Blog

Mount a VirtualBox vdi harddisk image file

Be root and do:

modprobe nbd max_part=16
qemu-nbd -c /dev/nbd0 <vdi-file>
mount /dev/nbd0p1 /mnt

Use /mnt as you may.

 

Finally do:

umount /mnt
qemu-nbd -d /dev/nbd0

Idea: http://bethesignal.org/blog/2011/01/05/how-to-mount-virtualbox-vdi-image/