Share Folder for Kali Linux on VMWare Workstation is not visible

Solution is :

1 – Run: apt-get install dkms linux-headers-$(uname -r) build-essential psmisc

2 – Run: git clone https://github.com/rasa/vmware-tools-patches.git

3 – Run: cd vmware-tools-patches/patches

4 – Remove every folder except “vmhgfs”.

5 – Get the last version of VMwareTools clicking on VMWare Bar > VM > Install/Reinstall VMWare Tools. It will open a virtual CD containing the “tar” file.

6 – Copy VMwareTools-9.2.4-1398046.tar.gz to “vmware-tools-patches” folder.

7 – On “vmware-tools-patches” folder, run: ./untar-and-patch-and-compile.sh

NOTE : If ./untar-and-patch-and-compile.sh throws an error “Unable to delete open-vm-tools due to dependencies by open-vm-tools-desktop” execute the following command : apt-get remove open-vm-tools-desktop

8. Go to VM settings and enable and select the folder from base OS to be shared. You should find the shared folder in /mnt/hgfs/<Shared Folder Here>