The procedure is as follows:
1. Open the Ubuntu system in the virtual machine;
2. Install the "enhancement tool"
Device> install the enhancement tool
3. Set "shared folder"
Control-> Settings-> Add shared folder-> Select "shared folder path", set "shared folder name", and select "auto mount" and "fixed allocation ";
4. In Ubuntu, add the current user (for example, jianbao) to the vboxsf user group. See the following code:
Sudo usermod-a-G vboxsf jianbao
5. Restart the Ubuntu system.
Sudo reboot
6. Open the/media folder, which contains the shared folder (with sf _ in front) and can be opened directly.
Note:
The "-a" parameter in the command "sudo usermod-a-G vboxsf jianbao" must be rare. Otherwise, your Ubuntu system will crash because the sudo permission of the current user will be lost!
How to share files between Windows 7 and Ubuntu in VirtualBox
The Virtual Box Virtual machine is installed in Windows 7, and then the Ubuntu operating system is installed in the Virtual machine. The file sharing method between the two operating systems is as follows:
1. Create a shared folder in Windows
1. First, create a folder in windows 7 for sharing between the two operating systems. In my system, I created a folder named folder in drive F.
2. Set shared folders in Virtual Box
Open Virtual Box and click Settings. In the displayed window, select the shared folder created in Windows, as shown in the following figure.
3. Install Virtual Box enhancement
To share folders between these two systems, you must install the installer for this enhancement feature. After the Ubuntu system runs, install it directly as shown in the following figure.
Another method:
Open the terminal in Ubuntu and install it as follows:
After installation, restart the Ubuntu system.
4. Mount shared folders in Windows under Ubuntu
The Mount procedure is as follows:
1. mkdir cmd_windows (create a mount point)
2. mount-t vboxsf mounts folder mounted _windows (mount shared folder)
3. Add cd _ windows to the shared folder
4. ls view the new files in Ubuntu and open the folder Folder file in Windows. For more information, see
The entire process is shown in the following figure:
This completes file sharing between Windows and Virtual Box.