This article describes the settings for Ubuntu and Windows shared Folders in VirtualBox, as follows:
System platform: win8.1, virtualbox4.3.8, ubuntu12.04
1, install Vboxguestadditions_4.3.8.iso Enhancement tool, after installation, restart Ubuntu According to the prompts, the specific operation is as follows:
A, mirror the vboxguestadditions_4.3.8.iso to Ubuntu, stored in the Ubuntu/media directory, the following operations:
B, installation VirtualBox enhanced Package
linjiqin@ubuntu:~$ cd ~
linjiqin@ubuntu:~$ Su-
password:
root@ubuntu:~# cd/media/
root@ubuntu:/media# ls
sf_share vboxadditions_4.3.8_92456
root@ubuntu:/media# cd vboxadditions_4.3.8_92456/
root@ubuntu:/ media/vboxadditions_4.3.8_92456# ls
32Bit cert vboxsolarisadditions.pkg
64Bit OS2 Vboxwindowsadditions-amd64.exe
AUTORUN. INF runasroot.sh VBoxWindowsAdditions.exe
autorun.sh vboxlinuxadditions.run Vboxwindowsadditions-x86.exe
root@ubuntu:/media/vboxadditions_4.3.8_92456# sudo/vboxlinuxadditions.run # Install VirtualBox enhancement Pack
....
root@ubuntu:/media/vboxadditions_4.3.8_92456#
2, first off Ubuntu, in the VirtualBox "settings" to find "shared folder", click to enter, click on the right Add Directory button, add Windows to share the directory, take a name. For example, I built a folder named share in D, as shown below:
3, restart Ubuntu, Ubuntu system in the top "device" to find "shared folder", click to enter, click on the right Add Directory button, add a second operation of the shared directory, the following figure:
4. Mount Shared Folders
Enter virtual Ubuntu and type 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 the host can transfer files to each other.
To mount automatically, you can add an item in the/etc/fstab
share/mnt/shared vboxsf Rw,gid=100,uid=1000,auto 0 0
5, uninstall the words using the following command:
Attention:
The name of the shared folder must not be the same as the name of the mount point. For example, the above mount point is/mnt/shared, if the name of the shared folder is also shared, the following error message will appear when mounting:/sbin/mount.vboxsf:mounting failed with the: Protocol Error
Original link: http://www.cnblogs.com/linjiqin/p/3615477.html
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.