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 & 12

Steps

  1. Activate VMware Tools
  2. Click on “VM” from the menu bar, then select “Reinstall VMware Tools…”

    VMware Tools
    Install VMware Tools
  3. Mount VMWare tool software
  4. $ sudo mkdir /mnt/cdrom
    $ sudo mount /dev/cdrom /mnt/cdrom
  5. Uncompress VMware tools software to a temp location
  6. $ sudo tar zxvf /mnt/cdrom/VMwareTools-.tar.gz -C /tmp/
    Mount VMware Tools
    Mount VMware Tools
  7. Install VMware Tools
  8. $ cd /tmp/vmware-tools-distrib
    $ sudo ./vmware-install.pl
    Install VMware Tools
    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
  9. Unmount and clean up
  10. $ sudo umount /mnt/cdrom
    $ sudo rm -rf /tmp/vmware-tools-distrib
  11. Verify vmware-tools is installed, activated and reboot safe.
  12. $ sudo systemctl status vmware-tools
    $ sudo systemctl enable vmware-tools
    Enable VMware Tools in RHEL/CentOS 7
    Enable VMware Tools in RHEL/CentOS 7
  13. Activate shared folder
  14. $ sudo /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other 
  15. Verify shared folder
  16. $ ls -la /mnt/hgfs 

    Verify mount share folder
    Verify mount share folder

Join The Discussion

Your email address will not be published. Required fields are marked *