Virtualbox virtual Ubuntu shared folder settings under WIN7

Source: Internet
Author: User
My Ubuntu is Ubuntu9.04, and sunvitualbox1. install the enhanced feature package (VBoxGuestAdditions) to open the virtual machine, set Ubuntu9.04, and find the optical drive option to load VBoxGuestAdditions. Iso. (This image is under the installation directory of the Virtual Machine). Run ubuntu. A VBoxGuestAdditions image will be available under the optical drive, open the image, run autorun. sh, and the system will

I'm Ubuntu 9.04, sun vitualbox

1. Install the enhanced feature package (VBoxGuestAdditions)

Open the VM, set Ubuntu 9.04, and find the optical drive option to load VBoxGuestAdditions. Iso. (This image is under the installation directory of the virtual machine), OK

Run ubuntu. There will be a VBoxGuestAdditions image under the optical drive. Open the image and run autorun. sh. The system will automatically install the image. After the installation is complete, you will be prompted to restart Ubuntu.

2. Set Shared Folders

There are two ways to set the Shared Folder: 1. Set it before running Ubuntu, enable the setting option-data space, and load the folder option on the right to load a shared folder, such as D: \ games, OK

2. Load When Ubuntu is running. Select a folder in the lower right corner of the Ubuntu interface and right-click it to load

3. Mount Shared Folders

Re-enter the virtual Ubuntu and enter the following in the command line terminal:

Sudo mkdir/mnt/share

Sudo mount-t vboxsf games/mnt/shared

"Games" is the name of the previously created shared folder. OK. Now Ubuntu and the host can upload files to each other.

If you do not want to manually mount each time, you can add

Games/mnt/share vboxsf rw, gid = 100, uid = 1000, auto 0 0

This enables automatic mounting.

4. Run the following command to uninstall the SDK:

Sudo umount-f/mnt/share

Note:

The name of the shared folder must not be the same as that of the mount point. For example, the mount point above is/mnt/shared, if the name of the shared folder is also shared, the following error message will appear when mounting (see http://www.virtualbox.org/ticket/2265 ):

/Sbin/mount. vboxsf: mounting failed with the error: Protocol error

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: 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.