Set file sharing in vbox, which can be set in the host and in the virtual machine.
My environment is: Host Ubuntu, virtual machine Linux and XP
First, install the enhancement function: after starting the virtual machine, select the device menu, and then "Install the enhancement function ".
Next, set the sharing:
Host settings:
Gui method: Open virtualbox-> Settings-> data space-> A small button with a plus sign (add data space)-> select the path to be shared and start a name, assume that fold is used.
Command method: run the following command in the middle end: vboxmanage sharedfolder Add "VM name"-name "sharename"-hostpath "\ test"
The VM name in this command specifies the name of the virtual machine to use the shared folder, such as WINXP (worry about spaces, etc., to be completely matched );
Sharename is the name of the shared folder, which can be set as needed, such as sharedfolder; \ test.
Settings in the virtual machine:
The Virtual Machine is Linux:
Enter the terminal and execute the following command:
Sudo mkdir/mnt/shared
Sudo Mount-T vboxsf gongxiang/mnt/shared
If you do not want to manually mount each time, you can add
Gongxiang/mnt/shared vboxsf RW, gid = 100, uid = 1000, auto 0 0
This enables automatic mounting.
To uninstall the SDK, run the following command:
Sudo umount-F/mnt/shared
The Virtual Machine is XP:
Start to enter the client Windows XP, open "my computer", click the menu bar "Tools"-" ing network drive", choose the drive letter, and enter the folder"\ Vboxsvr \ TMP", TMP is the" data space name "that I set previously. Change TMP to the" data space name "you just set, for example:
After confirming, you can see the disk label of the shared folder in "network drive", for example: