After installing the VMware workstation, when I tried starting my VM, it showed me an error “Errors- vmware unable to install all modules vmmon vmnet”.

As the StackOverflow solutions were not working, I found this article after searching for answers for a couple of hours.

As my vmware workstation was already installed, I followed ” Errors- VMware unable to install all modules vmmon vmnet”. In my case, GCC and build tools were installed, i Downloaded the latest vmware-host-modules – VMMON and VMNET from github .

I downloaded the files and unzipped the files, then created ****tar files of the modules.

tar -cf vmmon.tar vmmon-only
tar -cf vmnet.tar vmnet-only

Then copied the files to /usr/lib/vmware.modules.source

sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

Then I restarted VMware workstation and then started the machine. It worked.