Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install VMware : Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel module `vmmon' is loaded [closed]

I downloaded the VMware S/W from official website and installed the same. When I try to run any virtual machine it shows error

Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel module `vmmon' is loaded

and says failed to initialize. I tried this solution and at the last command got the following error

$ sudo mokutil --import MOK.der

EFI variables are not supported on this system``

Also I couldn't install the virtualbox as well, the error was

Kernel driver not installed (rc=-1908)

like image 891
Manthan Avatar asked Mar 10 '18 03:03

Manthan


Video Answer


1 Answers

There is a lot of posts about the missing vmmon, but this one always bites me after I update ubuntu kernel, and then I forget every time :)

From: https://kb.vmware.com/s/article/1002411

vmware-modconfig --console --install-all

EDIT- I also have to do the following now on Ubuntu:

"First line only needs to be run once:

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

Then reboot and if memory serves you will asked to confirm a change to your boot loader. Essentially you are adding this self created cert to the boot loader.

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 modprobe -v vmmon

sudo modprobe -v vmnet

sudo vmware-networks --start

You need to have the very latest version of workstation/player/viewer if you upgrade your kernel Workstation builds modules, and often the build process breaks if there are kernel changes. So if you are having problems first make sure you have the latest version of workstation https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html

like image 188
Rqomey Avatar answered Sep 17 '22 19:09

Rqomey