Ubuntu – How to set up shared folders in a Windows Virtualbox guest

shared-foldersvirtualboxwindows

I have installed VirtualBox OSE on Ubuntu 11.04 and Windows XP pro as the virtual machine.
Now I want to have a shared folder which can be accessed on both, my host Ubuntu machine, and my WinXP guest virtual machine.

How can I do that?

Best Answer

First step is to install Guest Additions in your virtual Windows.

After that you may define a shared folder as outlined in this answer. However in Windows you don't "mount" it but instead you take the following steps (from the user manual of Virtual Box):

In a Windows guest, shared folders are browseable and therefore visible in Windows Explorer. So, to attach the host's shared folder to your Windows guest, open Windows Explorer and look for it under "My Networking Places" -> "Entire Network" -> "VirtualBox Shared Folders". By right-clicking on a shared folder and selecting "Map network drive" from the menu that pops up, you can assign a drive letter to that shared folder.

If you don't see any entries coming up in the Browse dialog, you can manually fill out the Folder: field with \\VBOXSVR\<folder-name> where <folder-name> is the share name of your folder.


Screenshots for Windows Explorer (German locale)

Windows XP

enter image description here

Windows 7

enter image description here

Windows 10

enter image description here