How can I transfer files on virtual machines and Windows 7 (taking Windows 7 as an example, WINXP is the same. There are many methods. Today, we will introduce one of the methods to achieve file transmission between Ubuntu and win7 through the shared folder of VMware.
Step 1: Start Ubuntu 12.04 (operations in other versions of ubuntu are similar)
1. On the vmwarevm interface, click VM-> install VMware Tools...
Then, the windows of VMware Tools will pop up in Ubuntu. (for other versions of ubuntu, you can see the CD of VMware Tools on the desktop.
Symbol)
2. Open the terminal and enter the following command:
A) sudo CP/Media/vmware \ tools/VMwareTools-xxx.tar.gz/tmp (Note: XXX is the version number)
B) CD/tmp
B) sudo tar zxf VMwareTools-xxx.tar.gz (Note: XXX is the version number)
C) cd/vmware-tools-distrib
D) sudo./vmware-install.pl
Enter yes, no, or enter as prompted until the installation is complete.
3. view the result:
Lsmod | grep vmblock
Step 2: Set the directory of the shared folder
1. Shut down Ubuntu; otherwise, shared folders cannot be added.
2. In the vmwarevm window, choose VM> Settings> Options> Shared Folders.
3. Click Add on the right, click Next-> select the Win7 shared directory path, and click Next-> 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 column.
5. Click OK to exit
Step 3: Install the plug-in under the Ubuntu Virtual Machine
1. Execute sudo apt-get install open-vm-dkms (Note: If you have installed sudo apt-get install, you do not need to execute this line later)
2. Run sudo mount-t vmhgfs. host: // mnt/hgfs
3. cd/mnt/hgfs
Now you can see the shared folder directory of Win7 under the/mnt/hgfs directory.