Mount VirtualBox VDI disk

I have a virtual Windows 7 computer using VirtualBox on a Linux host. How can I mount this virtual pc's harddisk (VDI file) in Linux? It's a dynamic file, meaning that it only takes up as much space as is actually used.


Solution 1:

it looks like vdfuse is the tool you are looking for. At least for Ubuntu (and possibly Debian) hosts. If you want to compile yourself (2010 source) you can do that too. Sources seem to be here.

To install in Ubuntu use sudo apt-get install virtualbox-fuse

There is also a script vdimount script on Google Code.

Solution 2:

VDI is a complex format and AFAIK there's currently no software that can directly mount a dynamic VDI image, although there are plenty to converting it from/to other formats.

I hope to be wrong (or be wrong in the future, such as when someone writes that piece of software) and I'll take a look at this thread just in case ;-)