Install virtualbox shared directory

Source: Internet
Author: User

Download virtualbox extension https://www.virtualbox.org/wiki/Downloads on this link

VM virtualbox extension pack 

Double-click to install

Start Linux in virtualbox

Select a device from the virtualbox menu> install the enhancement feature (an empty optical drive must be reserved in the device before, otherwise shutdown and add)


After the displayed icon appears, double-click it and select File Access (you can also find it in the/Media/Linux directory)

There are many files. Select virtualboxlinux **. Run to open the file and run it on the terminal.

Enter the administrator password.

(I failed to install it. I checked it carefully and found that lubuntu didn't install make. Khan! =. =)

After the installation is complete, you need to create a shared file mount point under the/mnt/directory (previously, when using VMWare, the HGFS directory was automatically created ....)

Then manually mount the file, for example, # Mount-T vboxsf sharedfolder/mnt/share (note that the Administrator permission is required. The folder here is the folder you set in the shared folder in virtualbox settings. The setting is very simple, ).

After that, I have been wondering why I cannot mount it automatically. I checked a lot of information on the Internet and summarized it as follows:

If you select "auto mount" when setting the shared directory, you do not need to change anything in Linux in guest, the system automatically creates a mount point with the prefix "SF _" and the shared name in "/Media". For example, if you set the shared name to "share ", the mount point is "sf_share", and the system will automatically mount it as soon as it is started. However, because the default permission for this mount point is for the "vboxsf" user group created for vbox, you will not be able to view it. You just need to add your username to the "vboxsf" group: sudo adduser "User Name" vboxsf.

(It's a bit awkward because it's not the same as VMware. It's automatic mounting)

**************************************** **************************************** ***********

This method does not seem to work. I don't know if I have tried it, or if I have experienced experts to give me some advice.

To use "fstab" for automatic mounting, you must disable "automatic mounting" in the shared directory settings ":

Add share/mnt/shared vboxsf RW, gid = username, uid = username, auto 0 0 to the/etc/fstab file.

**************************************** **************************************** **

* ****** Update 1.0 *******

It is always troublesome to go to the/Media/sf_share directory when using it. If you want to create a link to the home directory, a new problem is raised.

LN: unable to create the Symbolic Link "Out/target/": Read-Only File System"

The solution is as follows:

VBoxManage setextradata linux VBoxInternal2/SharedFoldersEnableSymlinksCreate/share  

Here, Linux is the virtual machine name share your shared directory name.

In Linux, you can directly find the vboxmanage command. In Windows, you need to enter the installation directory in cmd: C: \ Program Files \ oracle \ virtualbox, and then use vboxmanage.exe

Restart virtualbox

Install virtualbox shared directory

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.