Skip to content

AD laboratory

ISO


  • Windows 10 Enterprise - https://www.microsoft.com/en-us/evalcenter/download-windows-10-enterprise
  • Windows Server 2022 - https://www.microsoft.com/en-us/evalcenter/download-windows-server-2022
    • P@ssword123

VMWare Error on Ubuntu - Could not open /dev/vmmon: No such file or directory


  1. Install VMWare
  2. Run this
    sudo vmware-modconfig --console --install-all
    

You'll see that there are issues with monitor and net, that's OK.

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

You'll see info that it did it OK.

  1. Use this key we just generated to sign the two kernel modules.
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE15.priv ./VMWARE15.der $(modinfo -n vmmon)
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./VMWARE15.priv ./VMWARE15.der $(modinfo -n vmnet)

This does not give any feedback

  1. Check that signatures are applied correctly.
tail $(modinfo -n vmmon) | grep "Module signature appended"

You should get Binary file (standard input) matches

  1. Now we make this key trusted by importing it to machine owner key (MOK) management system with the command below. Here you can read more about MOK’s job in Linux.
sudo mokutil --import VMWARE15.der

This will ask you for a password, enter some new password a bit long, like admin. Reenter same password.

  1. Reboot, When reboot you should be presented with a menu with blue screen background, you have to make your way to enroll the key and enter the password you just created, this happens only once, then continue to boot.

  2. To test the driver / module installed correctly enter the command

    mokutil --test-key VMWARE15.der
    

You should get VMWARE15.der is already enrolled and that means VMWare should be working.