Share files between Linux virtual machines and Windows hosts using virtualbox Data Space

Source: Internet
Author: User

Environment Description: Host OS win7

Vm OS ubuntu10.10

Virtual Machine virtualbox4.0.4

 

The procedure is as follows:

1. Add the vboxadditions. ISO image file.

"Settings"-"Storage"-"add virtual optical drive-" choose disk-"and select vboxadditions in the virtualbox installation directory (for example, D:/program files/Oracle/virtualbox. iso-open ".

2. Install the enhancement feature.

Go to the Ubuntu system and open the terminal.

CD/Media/virtualbox_4.0.4_xxxxx where Xxxxx is the version number

Sudo./vboxlinuxadditions. Run

3. Select the folder to be shared.

Exit ubuntu.

To set a data space in virtualbox, follow these steps:

Choose "Settings"> "Data Space"> "add data space"> "select the folder to be shared.

4. Mount shared folders.

Go to Ubuntu.

Check whether/sbin/mount. vboxsf exists (via ls/sbin/mount ).

Check whether the boxvsf module is loaded by running the command lsmod | grep vboxsf. If not, run the sudo modprobe vboxsf command to load it.

Create a mount point using sudo mkdir/mnt/share.

Sudo Mount-T vboxsf sharename/mnt/share. Sharename is the name of the shared folder in windows.

5. Set it to automatically mount with the system.

Enter sudo gedit/etc/fstab in the terminal
Add the following line to the open interface file:
Tum/mnt/share vboxsf RW 0 0
(Note: The first column is the name of the data space, the second column is the path to be mounted, followed by the Mount parameter .)
Then save

 

 

 

 

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.