Environment Description: Host OS win7
Vm OS ubuntu10.10
Virtual Machine virtualbox4.0.4
The procedure is as follows:
1. Add the vboxadditions. ISO image file.
"Settings"-"Storage"-"add virtual optical drive-" choose disk-"and select vboxadditions in the virtualbox installation directory (for example, D:/program files/Oracle/virtualbox. iso-open ".
2. Install the enhancement feature.
Go to the Ubuntu system and open the terminal.
CD/Media/virtualbox_4.0.4_xxxxx where Xxxxx is the version number
Sudo./vboxlinuxadditions. Run
3. Select the folder to be shared.
Exit ubuntu.
To set a data space in virtualbox, follow these steps:
Choose "Settings"> "Data Space"> "add data space"> "select the folder to be shared.
4. Mount shared folders.
Go to Ubuntu.
Check whether/sbin/mount. vboxsf exists (via ls/sbin/mount ).
Check whether the boxvsf module is loaded by running the command lsmod | grep vboxsf. If not, run the sudo modprobe vboxsf command to load it.
Create a mount point using sudo mkdir/mnt/share.
Sudo Mount-T vboxsf sharename/mnt/share. Sharename is the name of the shared folder in windows.
5. Set it to automatically mount with the system.
Enter sudo gedit/etc/fstab in the terminal
Add the following line to the open interface file:
Tum/mnt/share vboxsf RW 0 0
(Note: The first column is the name of the data space, the second column is the path to be mounted, followed by the Mount parameter .)
Then save