Recently, having finally refused to surrender to windows, I installed Ubuntu virtualised as a guest on Windows as a host using Oracle’s recently released VirtualBox. Here’s a tip on how to share folders between guest and host in the official way.
On the guest VM virtualbox menu open ‘Shared folders’.
On the top right of the dialogue box that comes up click the ‘+’ icon. Fill in the dialogue by adding a name and location.
After that you should have a shares dialogue as below.
Next, as root, mount manually.
mkdir /mnt/share mount -t vboxsf virtual-box-ubuntu-share /mnt/share/
And, finally, add the following entry into /etc/fstab for future boots.
virtual-box-ubuntu-share /mnt/share vboxsf defaults 0 0
Done. Ubuntu on VirtualBox running as guest on a Windows host is by far the best and most compelling complement to your development environment if you are forced into using Windows as a host. VirtualBox even supports seamless mode which means that you can have Linux and Windows windows intermingled on the windows desktop. Superb. And best of all – both VirtualBox and Ubuntu being completely free.