Original URL: http://www.crifan.com/add_share_folder_for_virtualbox_guest_xp_and_host_win7/
An XP virtual machine has been installed in VirtualBox under host Win7.
Now you need to share a file in the Win7 to the XP virtual machine.
So need to go to toss VirtualBox and the sharing between host.
1. Close the running XP virtual machine first.
2. Then go to create a new shared folder:
Then make sure that there is a folder for sharing in the current host Win7, here is a new Share_to_xp folder:
3. Run the XP virtual machine.
Refer to the "4.3" in the Help file for VirtualBox. Shared Folders "in:
There is several ways in which GKFX folders can be set to a particular virtual machine:
- In the windows of a running VM, you can select "Gkfx folders" from the "Devices" menu, or click on the folder icon on the Status bar in the bottom right corner.
- If a VM isn't currently running, you can configure GKFX folders in each of the virtual machine ' s "Settings" dialog.
- From the command line, you can create a shared folders using Vboxmanage, as follows:
Vboxmanage sharedfolder Add "VM name"--name "sharename"--hostpath "C:\test"
See sections 8.28, "Vboxmanage sharedfolder add/remove" for details.
To go to XP in the running, click on the Virtual Machine menu: Shared folders with devices:
Results out of the prompt:
The VirtualBox feature enhancement package appears to be unavailable in the virtual machine, and the shared folder will not be available without them.
Click "OK" to jump out of the "Shared folder" dialog box:
Click OK here and let it go.
Because it prompts you to install the Enhancement Pack, install the Enhanced Feature Pack before you can use the shared folder.
4. For more information on how to install enhancements for VirtualBox, see:
Tutorial How to install the Guest additions/Enhancements kit/feature enhancement Package/Enhanced Feature Pack for VirtualBox
5. After the security is finished, after restarting XP, you can see that there will be more than one network share disk in XP:
Vbboxsrv on the SHARE_TO_XP (G:) Network Drive
This is the shared folder we need.
Then put some files into the shared folder in the host Win7:
Then in the XP virtual machine, go to the shared folder, you can see the shared files:
Summary
If you want to implement a shared file (folder) in the XP virtual machine and host (Win7) in VirtualBox, you need to:
1. Install the Enhanced Feature Pack (Oracle VM VirtualBox Guest additions)
Because the functionality of the shared folder is included in the Enhanced Feature pack, you need to install the Enhanced Feature Pack before you can use the shared folder.
Here is the first explanation:
Installation enhancements for Devices
For more information, see also:
Tutorial How to install the Guest additions/Enhancements kit/feature enhancement Package/Enhanced Feature Pack for VirtualBox
2. Add a shared folder to the settings of the virtual machine
Then go to the XP virtual machine configuration and set the corresponding shared folder:
Settings, shared folders, add Shared folders, select the corresponding folder, set to auto load, OK to see the newly added shared folders:
So, re-run the XP virtual machine again, you can see the XP virtual machine will have a VBOXSRV (VirtualBox server abbreviation) of the shared disk:
Is the shared folder we want.
"Go" tutorial to implement shared folders between XP virtual machines and host Win7 in VirtualBox