VirtualBox virtual machine Ubuntu shared folder settings Auto mount

Source: Internet
Author: User

1. Install the enhanced Feature Pack (guest additions)

After installing Ubuntu 14.04, run Ubuntu and log in. Then select "Device (D)", "Install enhancements (I) ..." In the VirtualBox menu.

You will find an extra disc icon on the Ubuntu desktop, which is automatically loaded into the document folder by default.

/media/vboxguestadditions-4.1.4

Enter the command line terminal and enter:

cd/media/vboxguestadditions-4.1.4

sudo./vboxlinuxadditions.run

Different version paths may vary, please install according to your actual situation

Start the installation kit and restart Ubuntu after the installation is complete.

2. Configure a shared document folder

After the reboot is complete, click on the "Devices (Devices)", "Shared Folders" menu, add a shared document folder, the option fixed and temporary refers to whether the document folder is persistent. Share name can take a favorite, such as "Gongxiang", try to use English name.

3. Mount the shared document folder

Re-enter virtual Ubuntu and enter it at the command line terminal:

sudo mkdir/mnt/shared

sudo mount-t vboxsf gongxiang/mnt/shared

where "Gongxiang" is the name of the shared folder you created earlier. OK, Ubuntu and the host are now able to pass documents to each other.

If you do not want to manually mount each time, you can add an item to the/etc/fstab

gongxiang/mnt/shared vboxsf Rw,gid=username,uid=username,auto 0 0

The above vboxsf is the group name username is your user name is the folder name under/home/

/mnt/shared is the Mount directory

This will automatically be mounted.

4. Use the following command when uninstalling:

sudo umount-f/mnt/shared

Attention:

The name of the shared folder must not be the same as the name of the mount point.

VirtualBox virtual machine Ubuntu shared folder settings Auto mount

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.