Installing VMWare WorkStation Pro On Ubuntu/Debian and fix VMware kernel module.

Posted on Sun 23 February 2025 in misc

Downloading the software

1- Login to the Broadcom Support Portal – https://support.broadcom.com . If you don’t have an account, create one to proceed.

2- After successful login, access the VMware Workstation Pro downloads using the link, Download VMware Workstation Pro

Installing the software

  • Executing the below commands:
sudo apt update
sudo apt install -y build-essential -y
sudo bash VMware-Workstation-Full-$version.bundle
sudo vmware-modconfig --console --install-all
sudo apt install build-essential linux-headers-$(uname -r)
  • Now application should installed successfully, But if your secure boot enabled you will face the below error when start any vm.
Could not open /dev/vmmon: No such file or directory.
Please make sure that the kernel module `vmmon' is loaded.
  • To solve this issue you need to disable the secure boot OR do the following secure trick (Sign the VMware modules)!
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
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)
sudo mokutil --import MOK.der

After running these commands, you'll need to:

Restart your system.

A blue screen will appear during boot (MOK management).

Choose "Enroll MOK".

Continue with the enrollment.

Enter the password you set.

Confirm enrollment.

Your system will continue booting and vmware issue will be over.