Source: Install VMware Tools in centos 6, and solve the problem of HGFS in/mnt without sharing files after installation.
1. First install VMware Tools
1. Enter Linux as root
2. In the VMware Status Bar of Virtual Machine Software, click the Enable VMware Tools sub menu under the setting menu, at this time in the TAR zxf vmware-linux-tools.tar.gz of Linux
4. Enter the decompressed folder and start installation with./vmware-install.pl
5. Press enter to use the default configuration.
6. Enter the/usr/bin directory and run./vmware-config-tools.pl.
2. Solve the Problem of HGFS in/mnt after installing VMware Tools but not sharing files
Prerequisites: A shared directory is set in the Virtual Machine Software.
In Linux, the/mnt/HGFS folder is displayed, but the shared file is not displayed.
Use the following methods (root permission ):
1.Vmware-hgfsclientCommand to view which shared directories are currently available. Here I only use shared folders
2. UseMount-T vmhgfs. HOST:/shared/mnt/HGFS command to mount the shared folder (Note: Oh with A. Number). In this example,. HOST:/documents is the share name. You only need to replace them
UseVmware-hgfsclientCommand to get the directory,/mnt/HGFS is the mount point
3. You can use the shared folder until now, but you have to mount the folder again each time. Therefore, you must set it to automatically mount the shared folder after random startup.
Edit/etc/fstab and add the following line
. HOST:/shared/mnt/HGFS vmhgfs defaults 0 0 (write as needed)