File Sharing between virtual machines and hosts in vbox (host Linux, virtual machine XP or Linux)

Source: Internet
Author: User

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:

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: info-contact@alibabacloud.com 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.