Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VMWare on Linux - Could not open /dev/vmmon

Tags:

vmware

How to fix VMWare Could not open /dev/vmmon

enter image description here

like image 895
mon Avatar asked Oct 30 '18 06:10

mon


1 Answers

VMWare article 2146460

On Linux host with secure mode enabled, it is not allowed to load any unsigned drivers. Due to this, VMware drivers, such as vmmon and vmnet, are not able to be loaded which prevents virtual machine to power on.

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
sudo shutdown -r now

During the very next startup, you may need to enter MOK Management during boot, and select "ENROLL MOK" to import the key, and reboot once more.

like image 124
mon Avatar answered Jan 04 '23 00:01

mon