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