Objective
It is very popular for developers create a virtual private Hadoop and Spark cluster environment to perform testing, simulation and all other learning purposes. Especially with the advances in cloud technology, it takes only a few minutes and extremely easy to prepare a virtual machine for a cluster installation.
However, it is a known issue when VMWare tools was used to prepare a virtual machine, the shared folder feature did not functioning if the guest operating system was installed with the minimum CentOS or RedHat 7.x.
The share folder(s) will show up under directory “/mnt/hgfs” if a GUI tool is installed on the virtual machine with the VMware Tools installed. Otherwise, share folders did not show up.
The objective of this post is to show you how to fix this feature.
Version Tested
CentOS 7.x RHEL 7.x VMWare Workstation 10 & 12Steps
Activate VMware ToolsClick on “VM” from the menu bar, then select “Reinstall VMware Tools…”

Install VMware Tools
Mount VMWare tool software $ sudo mkdir /mnt/cdrom $ sudo mount /dev/cdrom /mnt/cdrom Uncompress VMware tools software to a temp location $ sudo tar zxvf /mnt/cdrom/VMwareTools-.tar.gz -C /tmp/
Mount VMware Tools
Install VMware Tools $ cd /tmp/vmware-tools-distrib $ sudo ./vmware-install.pl
Install VMware Tools
If install script failed to run, it’s probably caused by lacking some basic OS level libraries. Try run the following command then re-run the above script.
$ sudo yum groupinstall "Development Tools" $ sudo yum install net-tools kernel-headers kernel-devel gcc perl $ sudo yum update Unmount and clean up $ sudo umount /mnt/cdrom $ sudo rm -rf /tmp/vmware-tools-distrib Verify vmware-tools is installed, activated and reboot safe. $ sudo systemctl status vmware-tools $ sudo systemctl enable vmware-tools
Enable VMware Tools in RHEL/CentOS 7
Activate shared folder $ sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other Verify shared folder $ ls -la /mnt/hgfs
Verify mount share folder