On Windows, I sometimes run Ubuntu inside a VirtualBox virtual machine. I find that sharing a folder from Windows to Ubuntu is a convenient method of sharing files between the host and guest OS. Doing this is easy:
- Install Guest Additions on the Ubuntu virtual machine.
Add your user to the group
vboxsfin the Ubuntu VM:
$ sudo usermod -a -G vboxsf yourusername
Power down the Ubuntu virtual machine.
In VirtualBox, right-click on the Ubuntu virtual machine and choose Settings → Shared Folders.
Choose Add Share. Choose the Folder Path to the directory you want to share. Note down the Folder Name displayed. This name will be used inside Ubuntu, so change it if you want. Check the Auto-mount option to have Ubuntu mount this directory whenever it starts up.
Power up the Ubuntu virtual machine. Your
fooshared folder will be accessible in
Tried with: Ubuntu 12.04 x64, Windows 7 Enterprise x64 and VirtualBox 4.2.0