Fix VMware Workstation Host Modules on Linux Kernel (vmmon/vmnet)
How to patch and rebuild VMware Workstation host modules (vmmon/vmnet) on Debian/Ubuntu/Fedora after a kernel update breaks compilation or networking.
VMware Workstation often breaks on Linux after a kernel upgrade. On Debian or Ubuntu, a new kernel version can prevent the vmmon and vmnet modules from recompiling, which typically results in broken networking or VMware Workstation failing to start.
Even if you attempt to rebuild host modules using:
sudo vmware-modconfig --console --install-allyou may see build errors during compilation, or runtime failures such as:
“Unable to change virtual machine power state: Transport(VMDB) Error 4: Pipe connection has been broken.”
This post explains how to apply a patch and rebuild the VMware Workstation host modules using the patched repository.
Tested Environment
This patch has been tested with:
- Distributions: Debian Testing, Ubuntu, Fedora
- Kernel: 6.10.x
- VMware Workstation: 17.5.2, 17.6.0
Prerequisites
Ensure VMware Workstation (17.6.0 or similar) is installed and your system has build tools and kernel headers.
On Debian/Ubuntu:
sudo apt update
sudo apt install build-essential linux-headers-$(uname -r) gitOn Fedora:
dnf update && dnf upgradeCompile and Install Patched VMware Host Modules
- Clone the patched repository:
git clone https://github.com/bytium/vm-host-modules.git
cd vm-host-modules- Switch to the correct branch:
git checkout 17.6.x- Build and install the patched modules:
make
sudo make installWhat the Install Step Does
The install process will:
- Compile the patched
vmmonandvmnetmodules - Create
vmmon.tarandvmnet.tar - Copy the compiled
.kofiles to/lib/modules/$(uname -r)/misc/ - Copy
vmmon.tarandvmnet.tarto/usr/lib/vmware/modules/source/ - Run
vmware-modconfig --console --install-allto rebuild and configure VMware using the patched modules
Optional Reboot
If you want a clean reload of kernel modules, reboot:
rebootHappy virtualizing.