tech:virtualization:vmware:workstation:vmmon-vmnet-device-cannot-find-on-uefi-secure-boot-environment-on-ubuntu-desktop-20-04:vmmon-vmnet-device-cannot-find-on-uefi-secure-boot-environment-on-ubuntu-desktop-20-04

VMware Workstation 16.1: vmmon, vmnet special device can not find on UEFI secure boot Linux environment

If you start VM, get following erros.

UEFI Secure Boot is root cause

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)
mokutil --import MOK.der
sudo systemctl reboot

and enter MOK

enter password

After Kernel Update

You'll get the following dialog.

You need to sign again, cancel to build again.

wnoguchi@lasthope:~$ ls -l /dev/ | egrep "(vmmon|vmnet)"
wnoguchi@lasthope:~$ 
wnoguchi@lasthope:~$ cd .vault/
wnoguchi@lasthope:~/.vault$ ls
MOK.der  MOK.priv

Let's sign vmmon, vmnet kernel module again.

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)
wnoguchi@lasthope:~/.vault$ modinfo -n vmmon
/lib/modules/5.8.0-45-generic/misc/vmmon.ko
wnoguchi@lasthope:~/.vault$ modinfo -n vmnet
/lib/modules/5.8.0-45-generic/misc/vmnet.ko
sudo systemctl reboot
wnoguchi@lasthope:~$ ls -l /dev/ | egrep "(vmmon|vmnet)"
crw-------  1 root     root     10,    58 Mar  6 12:40 vmmon
crw-rw----  1 root     vmware  119,     0 Mar  6 12:40 vmnet0
crw-rw----  1 root     vmware  119,     1 Mar  6 12:40 vmnet1
crw-rw----  1 root     vmware  119,     2 Mar  6 12:40 vmnet2
crw-rw----  1 root     vmware  119,     3 Mar  6 12:40 vmnet3
crw-rw----  1 root     vmware  119,     8 Mar  6 12:40 vmnet8

Great.

tech/virtualization/vmware/workstation/vmmon-vmnet-device-cannot-find-on-uefi-secure-boot-environment-on-ubuntu-desktop-20-04/vmmon-vmnet-device-cannot-find-on-uefi-secure-boot-environment-on-ubuntu-desktop-20-04.txt · Last modified: 2021/03/20 10:51 by wnoguchi