set up virtual machines and host shared files in VMware player
Test environment: Virtual machine Software: VMware player 6.0.3 host os:windows7 virtual machine os:centos6.6 (32-bit) This task is done only if you want to install Vmware-tools in the virtual machine operating system. There is a module called Host-guest-file-system in Vmware-tools, which enables file sharing between host Windows and virtual machine Linux through this HGFS.
First, install Vmware-tools
First, when the virtual machine is powered on, click "Player", "Manage", "Install VMware Tools", and the virtual machine's CD-ROM will load the ISO files of VMware Tools.
Second step, mount the optical drive in the virtual machine (mount-t iso9660/dev/cdrom/media/cdrom)
Step three, go to mount Point (cd/media/cdrom) and you can see one of the files: vmwaretools-9.6.2-1688356.tar.gz. Copy it to a temporary directory for decompression (Tar-xzf vmwaretools-9.6.2-1688356.tar.gz). After extracting, come out a directory vmware-tools-distrib, enter this directory. See a Perl script file: vmware-install.pl, execute this perl script ($./vmware-install.pl) and go all the way to the successful installation.
Second, set up the shared directory in VMware player
"Player", "management", "Virtual machine settings", "Shared Folders", to the shared folder settings interface. In the upper folder sharing bar, select the Always Enable (E) radio button. In the lower "folders" column, add a folder on Windows (such as D://sharefolder) as "shared folder Sharefolder". You can see the Sharefolder folder in the/mnt/hgfs/directory under the client's Linux system (the path is:/mnt/hgfs/sharefolder).
Finally, use Hgfs to share files between host Windows and virtual machine LinuxOne, the resources of the Windows system are shared to the Linux system. Windows-Linux first copies the files you want to share to a shared folder on Windows. After entering the Linux system, Cd/mnt/hgfs/sharefolder, you can see the shared files on windows in/mnt/hgfs/sharefolder. Second, Linux shares files to Windows. The linux->windows principle is to copy the files that need to be shared to the Windows system into the/mnt/hgfs/sharefolder. You can then see the shared files in Windows.
Set up virtual machines and host shared files in VMware Player