Once the VMware Workstation Pro desktop virtualization software (Type-II hypervisor) is installed on your Ubuntu/Debian system, you must compile the VMware Workstation Pro kernel modules for your Ubuntu/Debian system for it to work.
In this article, I will show you how to compile the VMware Workstation Pro kernel modules on Ubuntu/Debian. I will also discuss the problems you may face while compiling the VMware Workstation Pro kernel modules and how to solve them.
The methods shown in this article should work on the following Linux distributions:
Ubuntu
Debian
Linux Mint
Elementary OS
Deepin Linux
KDE Neon
Other Ubuntu/Debian-based Linux distributions
Before attempting to compile VMware Workstation Pro kernel modules, you should install all the available updates on your Ubuntu/Debian system.
To check if new updates are available on your Ubuntu/Debian system, run the following command:
If any updates are available for your Ubuntu/Debian system, you will see them in the output of the command.
As you can see, 28 packages can be upgraded on my Ubuntu/Debian system.
To install all the available updates on your Ubuntu/Debian system, run the following command:
To confirm the installation, press Y and then press
The updates are being downloaded and installed. It will take a while to complete.
At this point, all the updates should be installed on your Ubuntu/Debian system.
For the changes to take effect, reboot your Ubuntu/Debian system.
To install the required tools for building the VMware Kernel Modules on Ubuntu/Debian, run the following command:
To confirm the installation, press Y and then press
All the required packages are being downloaded and installed. It will take a while to complete.
At this point, all the required build tools should be installed.
By default, VMware Workstation Pro kernel modules won’t load at boot time if UEFI Secure Boot is enabled in the BIOS/UEFI Firmware of your motherboard.
To load VMware Workstation Pro kernel module at boot time and use VMware Workstation Pro, you must disable UEFI Secure Boot from the BIOS/UEFI firmware of your motherboard.
If you want to load the VMware Workstation Pro kernel modules without disabling UEFI Secure Boot, you must sign the VMware Workstation Pro kernel modules after they are compiled and installed on your Ubuntu/Debian system.
The official VMware Kernel Modules (installed alongside the VMware Workstation Pro installation) should compile on most Ubuntu/Debian versions and Ubuntu/Debian-based Linux distributions just fine.
To compile the official VMware Kernel Modules on Ubuntu/Debian, run the following command:
The latest version of the VMware Workstation Pro (v17.5.2) kernel modules won’t compile on Ubuntu 24.04 LTS at the time of this writing.
If you attempt to compile the VMware Workstation Pro v17.5.2 on Ubuntu 24.04 LTS, you might see the following error messages. The problem is that the VMware Workstation Pro v17.5.2 kernel modules does not support latest Linux kernels yet. So, it fails to compile.
To solve this problem, you must compile the patched version of the VMware Workstation Pro kernel modules.
Here is the full error message.
The GitHub repository mkubecek/vmware-host-modules releases patched versions of the VMware Workstation Pro kernel modules regularly so that the VMware Workstation Pro kernel modules can be compiled for the latest Linux kernels.
If the official VMware Workstation Pro kernel modules fail to compile on your Ubuntu/Debian system, your only option is to compile and use the patched VMware Workstation Pro kernel modules.
In this section, I will show you how to download patched VMware Workstation Pro kernel modules for the installed VMware Workstation Pro version and compile it on your Ubuntu/Debian system. For demonstration, I am using VMware Workstation Pro v17.5.2 on Ubuntu 24.04 LTS (Linux kernel version 6.8.0).
First, navigate to the /tmp directory as follows:
Clone the GitHub repository mkubecek/vmware-host-modules with the following command:
A new directory vmware-host-modules/ should be created. Navigate to the vmware-host-modules/ directory as follows:
To check the VMware Workstation Pro version you have installed, run the following command:
As you can see, I have VMware Workstation Pro v17.5.2 installed on my Ubuntu 24.04 LTS system.
To check the available patched VMware Workstation Pro 17 kernel modules on the clonned GitHub repository, run the following command:
As you can see, VMware Workstation Pro v17.5.2 is not available yet, but v17.5.1 is available. VMware Workstation Pro v17.5.1 kernel modules should work just fine on VMware Workstation Pro v17.5.2.
NOTE: By the time you read this article, patched kernel module should be available for your VMware Workstation Pro version. Or, VMware may fix problems with their official kernel modules and you may no longer need patched VMware Workstation Pro kernel modules.
Checkout the workstation-17.5.1 branch as follows:
You will find two folders vmmon-only/ and vmnet-only/ in the /tmp/vmware-host-modules directory.
Compress the vmmon-only/ directory to vmmon.tar and vmnet-only/ directory to vmnet.tar as follows:
$ tar -cf vmnet.tar vmnet-only/
Copy the compressed vmmon.tar and vmnet.tar file from the /tmp/vmware-host-module directory to /usr/lib/vmware/modules/source directory to replace the official VMware Workstation Pro kernel modules with the patched kernel modules.
To compile the patched VMware Workstation Pro kernel modules, run the following command:
The VMware Workstation Pro kernel modules are being compiled. It will take a few seconds to complete.
At this point, the patched VMware Workstation Pro kernel modules should be compiled and installed.
VMware Workstation Pro kernel modules won’t load on UEFI Secure Boot enabled Ubuntu/Debian systems, resulting in VMware Workstation Pro services failing to start. Because of that, you will see the marked errors just after compiling the VMware Workstation Pro kernel modules.
To solve this problem, disable UEFI Secure Boot from the BIOS/UEFI Firmware of your motherboard. Or, sign the VMware Workstation Pro kernel modules for your UEFI secure boot enabled Ubuntu/Debian system.
In this article, I have shown you how to compile the official VMware Workstation Pro kernel modules on Ubuntu/Debian. I have also shown you how to downlaod and compile patched VMware Workstation Pro kernel modules on Ubuntu/Debian in case the official VMware Workstation Pro kernel modules fail to compile. Finally, I have discussed the problems you may face with loading the VMware Workstation Pro kernel modules and starting the VMware Workstation Pro systemd services on UEFI Secure Boot enabled Ubuntu/Debian systems and linked to additional articles demonstrating the process of solving the problems.
One of the most critical gaps in traditional Large Language Models (LLMs) is that they…
Canonical is continuously hiring new talent. Being a remote- first company, Canonical’s new joiners receive…
What is patching automation? With increasing numbers of vulnerabilities, there is a growing risk of…
Wouldn’t it be wonderful to wake up one day with a desire to explore AI…
Ubuntu and Ubuntu Pro supports Microsoft’s Azure Cobalt 100 Virtual Machines (VMs), powered by their…
Welcome to the Ubuntu Weekly Newsletter, Issue 870 for the week of December 8 –…