HOST: XP
Vm OS: Ubuntu 10.04.4 lts (view bash command: CAT/etc/issue ).
Virtual box version: 4.1.14 R 77440
In order to enter the password multiple times, I did not use sudo for operations under root.
You must set the root password when logging on to the root account. By default, the root account does not have a password, but does not allow logon. Therefore, you must set a password before you can log on. Sudo passwd root first requires the user password, and then sets the root
1. Add the vboxadditions. ISO image file.
Set ------- storage ------- ide controller ------- add an image file (the directory is in the installation directory of virtual box)
Ii. Install the enhancement feature.
Go to the Ubuntu system and open the terminal.
CD/Media/xxxxx_xxx_xxxx is followed by a folder in media. If the first step is correct, the folder is automatically generated in media.
Sudo./vboxlinuxadditions. Run or directly./vboxlinuxadditions. Run
3. Set sharing
Exit ubuntu. I can leave Ubuntu without setting it.
Set Data Space in virtual box
Set ------- Data Space/Shared Folder ------- fixed allocation ----- select the folder to be shared, do not select auto mount
4. Mount Shared Folders
Go to Ubuntu
Check whether/sbin/mount. vboxsf exists (via ls/sbin/mount)
Check whether vboxsf is loaded (through lsmod | grep vboxsf). If not, run the sudo modprobe vboxsf command to load
Create a mount point through mkdir/mnt/share
Mount-T vboxsf sharename/mnt/share where sharename is the name for sharing in windows, that is, the name set in step 3
V. Set automatic system mounting
Enter sudo gedit/etc/fstab on the terminal
Add tum/mnt/share vboxsf RW 0 0 to the last line
Tum indicates the Share Name in windows.
/Mnt/share indicates the mount point in Ubuntu
Read and Write Permissions Of The vboxsf Mount type RW
Source http://blog.csdn.net/qaz19870418/article/details/6306016