Skip to content

Instantly share code, notes, and snippets.

@khuralyuvraj
Last active December 24, 2023 00:24
Show Gist options
  • Save khuralyuvraj/5e81d06f75c3e27dd594439f672eee07 to your computer and use it in GitHub Desktop.
Save khuralyuvraj/5e81d06f75c3e27dd594439f672eee07 to your computer and use it in GitHub Desktop.
Fix for vmmon and vmnet problems in Arch and Debian based systems.

Easiest way

  • Disable Secure Boot
  • And after rebooting, run the following:
sudo vmware-modconfig --console --install-all

Building and signing the kernel modules manually

  • Generate key pair using openssl to authorize vmmon and vmnet modules:
# You can change MOK to your preferred name, although if you do make sure to type the same name at every step.

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
  • Now to sign the keys:
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
  • Import the key into the kernel's module library:
mokutil --import MOK.der

# choose a password for the module enrolment

If previous method doesn't work

  • Clone this github repo (switch version number to your vmware package versions)
git clone https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
git checkout -b workstation-17.5.0 origin/workstation-17.5.0
sudo make
sudo make install
  • You might need to update the kernel and kernel headers before running sudo make install, so run the following commands

Arch:

yes | sudo pacman -S linux linux-headers
sudo reboot

Debian Based OSes:

sudo apt-get install linux linux-headers -y
sudo reboot
  • After rebooting, run the following (from the cloned repo's directory):
sudo make install
  • Reboot and it should be fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment