There are already a lot of articles such as this on the Internet. Here I will mainly summarize the problems I encountered in the practical process. I use Ubuntu 11.10. Due to my own project, parallel communication is required. because another Ubuntu is virtualized, another Ubuntu is installed on Ubuntu, for specific settings, see http://www.linuxidc.com/linux/2011-12/50241.htm. here I am also writing the procedures for setting up my hosts: Install and add
There are already a lot of articles such as this on the Internet. Here I will mainly summarize the problems I encountered in the practical process. I use Ubuntu 11.10. Due to my own project, parallel communication is required. because another Ubuntu is virtualized, another Ubuntu is installed on Ubuntu,
For specific settings, see: http://www.linuxidc.com/Linux/2011-12/50241.htm
Here I will also write down the process set by myself:
1. Install the enhanced feature package (VBoxGuestAdditions)
Open the virtual machine, the virtual machine is Ubuntu 11.04, and select "device" ----- "Install enhancement ". The VBoxAdditions image will be available under the optical drive. Open the image and run autorun. sh. The system will automatically install the image.
2. Set Shared Folders
Load When Ubuntu is running. Select a folder in the lower-right corner of the Ubuntu interface and right-click it to load it. As shown in:
3. Mount Shared Folders
Enter the virtual Ubuntu, and enter the following in the command line terminal:
Sudo mkdir/mnt/share
Sudo mount-t vboxsf download/mnt/share
"Download" is the name of the previously created shared folder, that is, the name displayed when the data space is allocated. OK. Now Ubuntu and the host can upload files to each other.
To automatically mount a file, add one to/etc/fstab.
Download/mnt/share vboxsf rw, gid = 100, uid = 1000, auto 0 0
4. Run the following command to uninstall the SDK:
Sudo umount-f/mnt/share
Note:
The name of the shared folder must not be the same as that of the mount point. For example, the mount point above is/mnt/share, if the name of the shared folder is also share, the following error message will appear when mounting (see http://www.virtualbox.org/ticket/2265 ):
/Sbin/mount. vboxsf: mounting failed with the error: Protocol error
The other methods are similar. Now let's talk about the problems I encountered:
1. first, the option "device" is not found. It turns out that I used ubuntu11.10. As a result, this option can only be seen when I move the mouse to the top of the screen, this seems to be a new feature of ubuntu11.10, which makes me look for a long time.
2. again encountered a problem is unable to automatically mount the boot, so that every time you have to manually, very annoying, and later saw this article: http://www.linuxidc.com/Linux/2011-12/50242.htm, it turns out that automatic mounting was selected when data space allocation was selected. This may be related to later settings.
3. the name must be set, not the path. For example, I set the "download" folder on the shared host, but its name is "download, the image above demonstrates this point.
Therefore, the command used for automatic mounting is:
Download/mnt/share vboxsf rw, gid = 100, uid = 1000, auto 0 0
4. Here I set the ubuntu Virtual Machine virtualbox to install ubuntu. It seems that no matter what system the host is, the command is similar.
OK. This is the answer.