The shared folder in VirtualBox is successfully shared.

Source: Internet
Author: User
Tags net command
The shared folder in VirtualBox is finally successful-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: bdwangfs

If you need to use files in the host from the VirtualBox client, you can achieve this through sharing folders. Taking my actual situation as an example (the VirtualBox host is Linux and the client is Windows XP), let's talk about the setup process.

1. Execute the following commands on the VirtualBox host (that is, in the Linux system:

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"

2. Start the VM (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.

Note the following When configuring Shared Folders:

First, the virtual machine cannot be enabled or suspended during configuration;

The second is to install the VirtualBox Guest Additions program for the client; the third is that shared folders can only be used for Windows 2000/XP and Linux 2.4/2.6 clients.

In addition, if your VirtualBox host is Windows and the client is Linux, you can configure it according to this method. The difference is that you can replace the second step with mount.

The sharing of VirtualBox has plagued me for a few days. Can't I share it? Do I have to use the NET command? However, this command does not work. However, I accidentally discovered the secret of sharing, and mapped out the joy of sharing success!

1. First, make sure that you have set up sharing when the virtual machine is not enabled.

2. Ensure that vbox tools are installed and TOOLS are loaded in the drive of the virtual machine. If not, reinstall TOOLS. [This is the key]

3. If there are no errors in the above two steps, you can find the shared folder in the ing network drive.

I have finally shared this virtual machine successfully, and I wish my friends who have used this virtual machine a success.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.