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 1
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