Windows and VMware Ubuntu virtual machines for file sharing

Source: Internet
Author: User

This article is basically excerpted from: Infinite Challenger's blog

I use the system is WIN10 system, should not be the difference, the realization of the WIN10 system and VMware Virtual machine Ubantu system between the file sharing. To the Internet to find a lot of ways, because of the lack of familiarity with Linux, always ended in failure, the final reference to the "Infinite Challenger" blog, successful implementation, expressed great thanks! This article basically copies its contents, in this statement!

In general, due to special needs, virtual machines (VMware) are installed in the Win7 system to install Ubuntu virtual environments so that two systems can be used simultaneously without rebooting. But want to put in the virtual machine Ubuntu editing files can be used at the same time by the program in the Win7, but do not want to use the two systems of QQ or USB stick, you need to be able to file in the virtual machine and Win7 (here to Win7 as an example, WinXP operation) under the realization of mutual transmission. One way to do this is through VMware's shared folders to implement the file transfer of Ubuntu and Win7 for virtual machines.

Step one: Start Ubuntu 12.04 (other versions of Ubuntu operate almost)

1. In the VMware virtual machine interface, point to Vm->install VMware Tools. After that, click the main file button in the Ubuntu window and then on the left you will see the VMware Tools folder in the device, double click on it, and unzip the compressed file, copy it to the main folder (the original blogger said, I do not unzip the direct copy, can be successful)

2. Open the terminal terminal, enter the extracted folder and enter the following command:

A) sudo tar zxf vmwaretools-xxx.tar.gz (Note: XXX is version number)

b) Cd/vmware-tools-distrib

c) sudo./vmware-install.pl

Press ENTER during installation, or enter the prompt for Yes and no until the installation is complete.

3. View the results:

Lsmod | grep vmblock

Step two: Set up a directory for shared folders

1. Turn Ubuntu off (power off), or you cannot add a shared folder

2. In the VMware Virtual machine window, select Vm->settings->options->shared Folders

3. Point to the right of Add, point next-> Select the path to the Win7 shared directory, then click Next-> to select Enable this share->finish

4. On the right side of the Vm->settings->options->shared folders window, select Always enabled in the Folder sharing bar

5. Click OK to exit

But it's not done here yet. A third step is needed to complete file sharing.

Step three: Install the plugin under Ubuntu virtual machine

1. Execute the sudo apt-get install open-vm-dkms (Note: If you have installed it, you will not have to perform this line, follow the prompts to perform the default action)

2. Execute sudo mount-t vmhgfs. host://mnt/hgfs (Here's the space we must pay attention to)

3. Cd/mnt/hgfs

You can now see the Win7 shared folder directory under the/mnt/hgfs directory. Modifying files in a shared folder, whether in Linux or under Win7, will be modified at the same time on another system. Test effect: Ubantu end:

Windows and VMware Ubuntu virtual machines for file sharing

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.