Linux / How to mount a .VDI (VirtualBox Disk Image)

Below is the steps which will allow you to mount VirtualBox disk image in Linux OS.
 

modprobe nbd max_part=16
qemu-nbd -c /dev/nbd0 /path/to/some.vdi
mount -o loop /dev/nbd0p1 /mnt


# do stuff

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


More details: 
http://askubuntu.com/questions/202571/how-to-mount-a-virtual-hard-disk
http://www.planetcobalt.net/sdb/vdi.shtml

1 comment:

  1. Very helpful, thank you for sharing!

    ReplyDelete