Fix “Could not open /dev/vmmon” Error on Linux | VMware Workstation Kernel Module Fix

After the configuration of the operating system for installation on VMware Workstation, when you click on Start up this guest operating system, you have to face another error- Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel module 'vmmon' is loaded.

To fix this error, we have to install and configure vmmon, vmnet, and dependencies. For the process, you can close the VMware Workstation.

  1. Open the terminal and process the following command.

    sudo vmware-modconfig --console --install-all
    
  2. Update the system-

    sudo apt update
    
  3. Install build-essential linux-headers-

    sudo apt install build-essential linux-headers-$(uname -r)
    
  4. Configure and install VMware modconfig console-

    sudo vmware-modconfig --console --install-al
    
  5. Check if secure boot is enabled or not. If not, you can enable it from the system BIOS.

    mokutil --sb-state
    
  6. Configure the vmmon-

    lsmod | grep vmmon
    
    sudo modprobe vmmon
    
  7. Install mokutil and openssl-

    sudo apt install mokutil openssl
    
  8. Create a directory for VMware signing-

    mkdir -p ~/vmware-signing
    
  9. Open the directory-

    cd ~/vmware-signing
    
  10. Download and configure the VMware Module Signing Key-

    openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware Module Signing/"
    
  11. Import the MOK-

    sudo mokutil --import MOK.der
    

    Here, set a minimum of 4 digits of password, and confirm the same password again

  12. Restart your system-

    reboot
    
  13. While rebooting the system, here press any key within 10 seconds to perform MOK management-

    Here, select Enroll MOK and press enter-

    Here, select Continue and press Enter-

    Here, select Yes and press enter-

    Now, type the password that we have set on the terminal and press enter-

    Here, select Reboot and press Enter-

  14. After a successful start, your system processes the next command in the Terminal.

    Configure the vmmon, and vmnet

    modinfo -n vmmon
    

    You will latest module version info of the vmmon, which will be used in the upcoming command

    modinfo -n vmnet
    

    You will latest module version info of the vmnet, which will be used in the upcoming command

  15. Import the latest module of vmmon and vmnet, make sure to change to the recent version of vmmon or vmnet.

    sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ~/vmware-signing/MOK.priv ~/vmware-signing/MOK.der /lib/modules/6.17.0-19-generic/misc/vmmon.ko
    

    sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ~/vmware-signing/MOK.priv ~/vmware-signing/MOK.der /lib/modules/6.17.0-19-generic/misc/vmnet.ko
    

  16. Linux to unload (remove) the VMware kernel modules vmmon and vmnet from the running kernel.

    sudo modprobe -r vmmon vmnet
    
  17. Loads the vmmon and vmnet kernel modules into the running Linux kernel.

    sudo modprobe vmmon
    
    sudo modprobe vmnet
    
  18. Check if vmmon and vmnet are loaded or not.

    lsmod | grep vmmon
    
    lsmod | grep vmnet
    

Now it's all done, the error should be fixed, and next, we will learn how to install Windows 11 on VMware.

You can also watch the video tutorial to fix this error-

0.02581164 BEE
2 comments

Congratulations @an1info! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You published more than 20 posts.
Your next target is to reach 30 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0.00000000 BEE
0.00000000 BEE