My environment is Ubuntu 20.04, but it's okay if the version is different. This method is universal.
Solution, follow these steps:
- Check your VM version and remember the result of this step.
vmware -v
- Clone the git repository.
git clone https://github.com/mkubecek/vmware-host-modules.git
- Enter the folder.
cd vmware-host-modules
- Check out the corresponding version of git, pay attention to the version number from the first step.
git checkout workstation-16.2.3
- Execute the following steps in order.
make
make install
sudo /etc/init.d/vmware start
- After completing the above steps, open a new terminal.
sudo su
sudo vmware
Okay, the problem is solved. You're done! 😆
Note on 11/3/2022:
Besides development, I won't use Ubuntu as my main system anymore.