Article Title: Share File Settings in VirtualBox (hostlinux ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Run the following command on the VirtualBox host (in Linux:
VBoxManage sharedfolder add "VM name"-name "sharename"-hostpath "\ test"
VM name in this command specifies the name of the VM to use the shared folder, such as WinXP; sharename is the name of the shared folder, which can be set at will, such as sharedfolder; \ test.
The following is an example of this command:
VBoxManage sharedfolder add "WinXP"-name "downloads"-hostpath "\ home \ xu \ downloads"
Start the Virtual Machine (Windows XP in this example), click "run" in the Start Menu, Enter cmd, and then execute the following command:
Net use x: \ vboxsvr \ sharename
X in this command: The mapped drive letter; sharename is the name of the shared folder set in the previous step. Similarly, we provide an instance for reference:
Net use Z: \ vboxsvr \ downloads
After the command is successfully executed, you can use all the files in the shared folder through the resource manager.