How to Set Up Vmmon and Vmnet Modules in VMware Workstation for Ubuntu

Are you facing the below error when installing the vmware modules in Vmware workstation?


I followed the instructions to install those modules from this GitHub repo.
Find the vmware version installed
To find version of the vmware installed, run the below command
vmware -vIt will show the output as
VMware Workstation 17.5.0 build-22583795/codeFrom the baove out the version of the vmware installed is 17.5.0
Get the code form Github
Go to this github repository and
branches, click thealltab. Search for the version you have installed like shown below.
Copy the branch name, and run the below command to get the source code into your system(Host).
git clone -b branch-name https://github.com/mkubecek/vmware-host-modules.gitReplace the branch-name with, you copied from github repository
Compile and Install
Go to directory vmware-host-modules like
cd cmware-host-modules, And run the following two command. Make sure all VMs are stoppedsudo make sudo make installRestart the vmware by using the below command
sudo systemctl restart vmwareThen, open the vmware it will work smoothly and won’t show the pop to install the moduels again.
For more visit this installtion guide from the author
The above soultion may not presist for every reboot. So, we may need to do every time the system reboots. To overcome from this, do the following
1. Create a Module Configuration File
Navigate to the
modules-load.ddirectory:cd /etc/modules-load.d/Create a new file for VMware modules:
sudo nano vmware-modules.conf
2. Add VMware Modules
Add the following lines to the file to specify the modules to load:
vmmon
vmnet
3. Update Dependencies
Run depmod to ensure the system recognizes the modules:
sudo depmod -a
Now the modules will be loaded automatically every time the system reboots.


