3

I am having an issue setting up my new Ubuntu 16.04 LTS install with VMWare Workstation Pro 14. Install is successful and reports no errors, but when I go to launch a VM it complains about a module "vmmon" not loaded or found.

Thanks for any solutions.

2 Answers 2

4

This error will appear when you start a VM on a system that boots from UEFI with secure boot enabled. Hosts with secure boot enabled will not allow loading of any unsigned drivers. As a result, the vmmon module is not loaded in the system and this is causing the error you see.

There are two ways to resolve the issue:

  1. If you do not use Windows, disable "Secure Boot" in the BIOS.
  2. If you do use Windows, sign the vmmon kernel module and complete the enrollment from the UEFI console.

If you choose to go with the second option, this is the process:

  1. Generate a key pair using the openssl to sign vmmon and vmnet modules:

    $ sudo openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
    

    Replace MOK with the name of the file you want for the key.

  2. Sign the modules using the generated key by running these commands:

    $ 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)
    
  3. Import the public key to the system's MOK list by running this command:

    $ sudo mokutil --import MOK.der
    
  4. Confirm a password for this MOK enrollment request.

  5. Reboot your machine and complete the enrollment from the UEFI console.

Hope this helps 👍🏻

2
  • Eureka! This was exactly it. In fact, I actually recall doing this exact procedure a few years ago and getting stumped on the exact same steps :) Thank yo very much! Commented Feb 5, 2021 at 0:44
  • Step 5. "Reboot your machine and complete the enrollment from the UEFI console." This is where some effort has to go in, not simply reboot at the big blue UEFI screen. I had to repeat Step 3 and 4 and try it again. Great solution, thank you so much.
    – Cim
    Commented Jan 28, 2023 at 21:20
0

You are going to get errors just after extracting the vmware workstation or player 17 so I would recommend downloading the vmware-host-modules-workstation-17.5.1.zip from the github link given below:

https://github.com/max29aug/vmwareerrorlinux

After downloading the vmware-host-modules-workstation-17.5.1.zip file please extract those files and once extracted you need to allow the file to run as executable afterwards cd to that file location and then use the commands as follows:

make

sudo make install

sudo reboot

After rebooting the computer launch the vmware and you need to get the installation and activation completed for vmware #Even after that if you are gettig the error please use the commands below:

sudo vmware-modconfig --console --install-all


sudo openssl req -new -x509 -newkey rsa:2048 -keyout VMWARE.priv -outform DER -out VMWARE.der -nodes -days 36500 -subj "/CN=VMWARE/"

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE.priv ./VMWARE.der $(modinfo -n vmmon)

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE.priv ./VMWARE.der $(modinfo -n vmnet)

tail $(modinfo -n vmmon) | grep "Module signature appended"

sudo reboot

sudo mokutil --import VMWARE.der

Once you computer reboots, you need to click on Continue to boot as it would either ask to enroll mok or continue to boot, I would sugesst that you click on continue to boot. Then you need to check if mok is enrolled or not through terminal once you are logged in.

sudo mokutil --import VMWARE.der

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .