Sharing settings between Windows 7 and Ubuntu 14 in VirtualBox

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.