Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

26/1/2021 "Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)

Products Support
(https://my.vmware.com/web/vmware/home)

Search

Knowledge Base

"Cannot open /dev/vmmon: No such


file or directory" error when
powering on a VM (2146460)
Last Updated: 16/9/2020 Categories: Troubleshooting Total Views: 133330
196 Language: English subscribe

Symptoms
Powering on a virtual machine on Linux hosts that boots from UEFI with secure boot
enabled fails
You see the error:
Cannot open /dev/vmmon: No such file or directory. Please make sure that
the kernel module `vmmon' is loaded

Purpose
The article provide steps to sign VMware drivers on Linux host with secure boot enabled,
so that VMware Workstation can run VMs successfully.

Cause
On Linux host with secure mode enabled, it is not allowed to load any unsigned drivers.
Utilizamos cookies para proporcionarle la mejor experiencia en nuestro sitio web, mejorar su
Due to this, VMware drivers, such as vmmon and vmnet, are not able to be loaded which
usabilidad y rendimiento, y ofrecerle un servicio de calidad en definitiva. Nuestro sitio web
prevents virtual machine to power on.
también puede usar cookies de terceros para mostrarle anuncios que podrían ser de su interés. Si
desea obtener más información sobre el uso que hacemos de las cookies, consulte nuestra
Resolution
política sobre cookies. (https://www.vmware.com/es/help/privacy.html)

Notes:
Configuración de cookies

https://kb.vmware.com/s/article/2146460 1/4
26/1/2021 "Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)

Workstation does not ship vmmon.ko and vmnet.ko in the bundle currently. The two
Products Support
modules are(https://my.vmware.com/web/vmware/home)
built during the installation or the first launch of workstation.
During the installation if the host provides the proper kernel headers and gcc, these
two modules will be built silently. The progress is logged into /tmp/vmware-
root/vmware-PID.log.
When workstation is first launched, a dialog will pop up to ask you for the usable
kernel headers and/or gcc. These two modules will be built with window showing
the progress and log printed on terminal.
Ensure to have the Host OS updated with the latest patches.

To correct the issue with secure boot enabled:

1. Generate a key pair using the openssl to sign vmmon and vmnet modules:

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

Replace MOK with the name of the file you want for the key.

2. Sign the modules using the generated key by running these commands:

$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)

Import the public key to the system's MOK list by running this command:

$mokutil --import MOK.der

Confirm a password for this MOK enrollment request.


Reboot your machine. Follow the instructions to complete the enrollment from the
UEFI consol.

Note: Preceding commands are verified to work on Ubuntu 16.04 hosts. The general
steps are applicable to all Linux distributions, but specific Linux distributions might
differ incookies
Utilizamos commands.
para proporcionarle la mejor experiencia en nuestro sitio web, mejorar su
usabilidad y rendimiento, y ofrecerle un servicio de calidad en definitiva. Nuestro sitio web
también puede usar cookies de terceros para mostrarle anuncios que podrían ser de su interés. Si
Related Information
desea obtener más información sobre el uso que hacemos de las cookies, consulte nuestra
política
With sobre
VMware cookies.
you (https://www.vmware.com/es/help/privacy.html)
will have two modules with this problem, vmmon and vmnet. You must
sign them both:

Configuración de cookies

https://kb.vmware.com/s/article/2146460 2/4
26/1/2021 "Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)

user@localhost:$ sudo /usr/src/kernels/$(uname -r)/scripts/sign-file


Products Support
(https://my.vmware.com/web/vmware/home)
sha256 ./MOK.priv ./MOK.der $(modinfo -n vmmon)
user@localhost:$ sudo /usr/src/kernels/$(uname -r)/scripts/sign-file
sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)

Was this article helpful?

YES NO

Additional Resources
KB • Downloading and licensing
vSphere Hypervisor (ESXi 6.x & 7.x)
(2107518)

Docs • Download the vSphere Client

Docs • Download the ESXi Installer

Docs • Install Horizon Client for


Windows

Related Products:
VMware Workstation Pro

Related Versions:
VMware Workstation Pro 12.x (Linux)

Actions
Copy link to clipboard
Utilizamos cookies para proporcionarle la mejor experiencia en nuestro sitio web, mejorar su
usabilidadPrint
y rendimiento, y ofrecerle un servicio de calidad en definitiva. Nuestro sitio web
también puede usar cookies de terceros para
Language: mostrarle anuncios que podrían ser de su interés. Si
English
desea obtener más información sobre el uso que hacemos de las cookies, consulte nuestra
política sobre cookies. (https://www.vmware.com/es/help/privacy.html)

Configuración de cookies

https://kb.vmware.com/s/article/2146460 3/4
26/1/2021 "Cannot open /dev/vmmon: No such file or directory" error when powering on a VM (2146460)

Products Support
(https://my.vmware.com/web/vmware/home)
Terms of Use (https://my.vmware.com/web/vmware/terms-of-use?mode=view)
Your California Privacy Rights (https://www.vmware.com/help/privacy/california-privacy-rights.html)
Privacy (https://www.vmware.com/help/privacy.html)
Accessibility (https://www.vmware.com/accessibility.html)
Cookie Settings

(https://twitter.com/VMware)

(https://www.facebook.com/vmware/)

(https://www.linkedin.com/company/vmware)

(https://www.youtube.com/user/vmwaretv)

Copyright © 2021 VMware, Inc. All rights reserved.

Utilizamos cookies para proporcionarle la mejor experiencia en nuestro sitio web, mejorar su
usabilidad y rendimiento, y ofrecerle un servicio de calidad en definitiva. Nuestro sitio web
también puede usar cookies de terceros para mostrarle anuncios que podrían ser de su interés. Si
desea obtener más información sobre el uso que hacemos de las cookies, consulte nuestra
política sobre cookies. (https://www.vmware.com/es/help/privacy.html)

Configuración de cookies

https://kb.vmware.com/s/article/2146460 4/4

You might also like