Always forget, forget to check again very troublesome, here to record.
1. Install the enhanced Feature Pack (guest additions)
After installing Ubuntu, run Ubuntu and log in. Then select "Device (Devices)", "Install the Enhanced Feature Pack (installed guest additions)" In the VirtualBox menu.
You will find an extra disc icon on the Ubuntu desktop, which is automatically loaded into the folder under Folder/media/(like mine). Enter the command line terminal and enter:
Cd/media/cdom0
sudo./vboxlinuxadditions.run
Start the installation kit. You will be prompted to restart Ubuntu after the installation is complete.
Be sure to restart Ubuntu
Be sure to restart Ubuntu
Be sure to restart Ubuntu
2. Setting up Shared Folders
After the reboot is complete, click on the "Devices (Devices)" Shared Folders menu, add a shared folder, the option fixed and temporary refers to whether the folder is persistent. Share name can take a favorite, such as "share", try to use English name.
3. Mount the shared folder
Re-enter virtual Ubuntu and enter it at the command line terminal:
sudo mkdir/mnt/shared
sudo mount-t vboxsf share/mnt/shared
Where "Share" is the name of the shared folder that was previously created. OK, now Ubuntu and host can transfer files.
If you do not want to manually mount each time, you can add an item to the/etc/fstab
share/mnt/shared vboxsf Rw,gid=100,uid=1000,auto 0 0
This will automatically be mounted.
4. Use the following command when uninstalling:
sudo umount-f/mnt/shared
Ubuntu Virtual Machine shared folder issues