1. Install the enhancement feature
Open the Ubuntu virtual machine. I installed virtualbox 4.1 on a Mac.
In the "device" option column at the top, select "Install enhancement".
The system will automatically install
2. Set the shared data space
In the "allocate data space" under the "device" menu of the vbox running Ubuntu, add a new data space. Select the directory path and name it share. "share" is the name of the data space.
3. Load/unload shared data space
Create a mount point # mount a folder under Ubuntu
Sudo mkdir chmod-M 755/mnt/sharedpoint #/mnt/sharedpoint, create a folder SharePoint under the MNT directory as the Hanging Point;
Then run the following command:
Sudo Mount-T vboxsf share/mut/sharedpoint # The share here is the name of the data space before us,
Now, you can share data space through/mnt/sharedpoint.
Uninstall:
Sudo umount-F/munt/sharedpoint
4. automatic mounting
Add a line at the end of/etc/fstab
Share/mnt/sharedpoint vboxsf RW 0 0