I’m not really sure why, but every time I install VMWare Workstation on Ubuntu, I can never get it to run right away. There’s another step to the setup after running the installer that might as well be documented as part of the installation process.
It’s compiling kernel extensions for
vmnet – and Workstation tries to compile them out of the box, but it never works. It’s missing some essential kernel extensions that are only available from GitHub (not exactly a professional look…)
I had to write a post about it since after doing it for the umpteenth time I realized this might be a problem for a lot of people that isn’t well documented and might be exceedingly confusing for first-time users.
First, you’ll have to download the kernel extensions. Here’s where they’re available:
You’ll see filenames available for download that look like
w15.5.5-k5.7 – you want to match the first 3 numbers to your Workstation version, and the last two to your kernel – this example would be for Workstation 15.5.5 and an OS with 5.7 kernel.
Thankfully there’s plenty of releases to find one that’ll work for your setup. At the time of writing there is nearly 700 releases to choose from (indicating that this has probably been a major issue for a long, long time… )
After downloading the release,
unzip it and it’ll create a folder called:
cd into this folder and create two
$ tar -cf vmmon.tar vmmon-only/
$ tar -cf vmnet.tar vmnet-only/
Then copy them to the modules source directory for Workstation (as root):
# cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
After copying the
.tar files to /usr/lib/vmware/modules/source/ run this command:
# vmware-modconfig --console --install-all
If all goes as planned, you should be able to run Workstation now.
Note: Keep in mind that if you update your kernel you’ll absolutely have to go through this process all over again. Sometimes, but not always, updates to Workstation will require it, too.
You’re sure to get just as familiar with the process as I am before long.