Secure Boot compatible VMware host-module manager for Fedora.
vmware-manager provides the vmwmanager command for building, signing, verifying, reinstalling, and maintaining the VMware Workstation host kernel modules:
vmmon.kovmnet.ko
It is designed for Fedora systems using Secure Boot and Machine Owner Keys (MOK).
Important
vmware-managerdoes not distribute VMware Workstation. VMware Workstation must be installed separately.
- Overview
- Features
- Requirements
- Architecture
- Workflow
- Installation
- Quick Start
- Commands
- Secure Boot and MOK
- Kernel Handling
- VMware Module Compilation
- Module Signing
- systemd Integration
- Kernel Update Workflow
- Troubleshooting
- Uninstallation
- Testing
- Contributing
- Security
- License
VMware Workstation requires the following host kernel modules:
vmmon.ko
vmnet.ko
On systems with Secure Boot enabled, kernel modules must be signed with a trusted certificate before the kernel can load them.
vmwmanager manages this process while continuing to use VMware's native module builder:
vmware-modconfig --console --install-all
The manager can:
- generate a dedicated VMware signing key;
- request MOK enrollment;
- build VMware's native host modules;
- sign
vmmon.koandvmnet.ko; - verify their signatures;
- update module dependencies;
- restart
vmware.service; - automatically check the modules at boot using systemd.
No alternative VMware host-module implementation is downloaded or installed automatically.
- Fedora-oriented VMware host-module management
- Secure Boot support
- MOK key generation and enrollment
- VMware native
vmware-modconfigintegration vmmon.kosigningvmnet.kosigning- Signature verification
- Running-kernel detection
- Fedora default boot-kernel reporting
- VMware service status inspection
- Automatic module checking at boot
- Conditional systemd rebuilds
- Forced module reinstallation
- Safe integration cleanup
- No automatic third-party module fallback
- Idempotent systemd disable operation
VMware Workstation must already be installed for operations that build or manage VMware host modules.
The RPM requires the tools needed for compilation, signing, Secure Boot and systemd integration, including:
bash
git
gcc
make
kernel-devel
openssl
mokutil
dracut
kmod
systemd
The installed manager command is:
/usr/bin/vmwmanager
VMware's service is expected to be:
vmware.service
βββββββββββββββββββββββ
β VMware Workstation β
ββββββββββββ¬βββββββββββ
β
β vmware-modconfig
βΌ
βββββββββββββββββββββββ
β vmmon.ko β
β vmnet.ko β
ββββββββββββ¬βββββββββββ
β
β sign-file
βΌ
ββββββββββββββββββββββββββ
β VMware MOK certificate β
β VMware signing key β
βββββββββββββ¬βββββββββββββ
β
βΌ
βββββββββββββββββββββββ
β Signed host modules β
ββββββββββββ¬βββββββββββ
β
β depmod
βΌ
βββββββββββββββββββββββ
β Linux kernel β
βββββββββββββββββββββββ
The signing material is stored under:
/var/lib/shim-signed/mok/
using:
vmware.key
vmware.der
The expected certificate common name is:
VMware Module Signing
The normal Secure Boot setup is:
flowchart TD
A[Install VMware Workstation] --> B[Install vmware-manager]
B --> C[sudo vmwmanager genkey]
C --> D{Signing key exists?}
D -- No --> E[Generate vmware.key + vmware.der]
D -- Yes --> F[Preserve existing key]
E --> G{MOK enrolled?}
F --> G
G -- No --> H[mokutil --import vmware.der]
H --> I[Reboot]
I --> J[Complete MOK enrollment]
G -- Yes --> K[Signing key ready]
J --> K
K --> L[sudo vmwmanager rebuild]
L --> M[vmware-modconfig]
M --> N[Build vmmon + vmnet]
N --> O[Sign modules]
O --> P[depmod]
P --> Q[Verify signatures]
Q --> R[Restart vmware.service]
R --> S[sudo vmwmanager enable-systemd]
After setup:
flowchart TD
A[Boot Fedora] --> B[vmware-rebuild.service]
B --> C[vmwmanager needs-rebuild]
C --> D{Modules valid?}
D -- Yes --> E[ExecCondition returns 1]
E --> F[Skip rebuild]
D -- No --> G[ExecCondition returns 0]
G --> H[vmwmanager rebuild]
H --> I[Build]
I --> J[Sign]
J --> K[Verify]
K --> L[Restart vmware.service]
Enable the COPR repository:
sudo dnf copr enable hhlp/vmwareInstall the package:
sudo dnf install vmware-managerVerify:
vmwmanager helpA locally built RPM can be installed with:
sudo dnf install ./vmware-manager-*.rpmWith VMware Workstation already installed:
sudo vmwmanager genkeyIf MOK enrollment is requested, reboot:
sudo rebootComplete the enrollment from the blue MOK Manager screen.
After returning to Fedora:
sudo vmwmanager statusBuild and sign the VMware modules if required:
sudo vmwmanager rebuildThen optionally enable automatic checking at boot:
sudo vmwmanager enable-systemdVerify:
vmwmanager statusThe command syntax is:
vmwmanager <command>
Available commands:
genkey
status
needs-rebuild
rebuild
reinstall
uninstall
purge
enable-systemd
disable-systemd
help
sudo vmwmanager genkeyRequires VMware Workstation to be installed.
If the signing key does not exist, genkey creates:
/var/lib/shim-signed/mok/vmware.key
/var/lib/shim-signed/mok/vmware.der
The private key is protected with mode:
0600
and the certificate with:
0644
If both files already exist, they are preserved.
The manager does not silently replace an incomplete key pair. If only the private key or only the certificate exists, it reports the inconsistent state and stops.
If the certificate is not enrolled, the existing certificate is submitted with:
mokutil --import /var/lib/shim-signed/mok/vmware.derThe user then completes enrollment manually during the next reboot.
vmwmanager statusThis is primarily a read-only diagnostic command.
It reports:
- VMware Workstation installation state
- running kernel
- Fedora default boot kernel, when available
- Secure Boot state
- signing-key state
- MOK enrollment
vmmon.kopresencevmnet.kopresence- module signer
- module loaded state
vmware.servicestatevmware-rebuild.serviceintegration
For example:
vmwmanager statuscan be used after:
sudo vmwmanager genkey
sudo vmwmanager rebuildto verify the complete configuration.
vmwmanager needs-rebuildThis command is primarily intended for:
ExecCondition=/usr/bin/vmwmanager needs-rebuildIt checks both VMware modules for the running kernel.
Its exit-status semantics are intentionally inverted compared with a traditional status command:
0 = rebuild required
1 = rebuild not required
A rebuild is required when either module:
- does not exist;
- is unsigned; or
- is not signed with the expected VMware signing certificate.
When both modules already exist and have the correct signature:
vmmon.ko β valid
vmnet.ko β valid
the command returns:
1
This tells systemd's ExecCondition to skip ExecStart.
A return code of 1 from this command therefore does not mean that the VMware modules failed.
For this specific command:
exit 0 β run rebuild
exit 1 β skip rebuild
If the modules are already correctly signed but the certificate is no longer enrolled, needs-rebuild also avoids rebuilding them because rebuilding cannot repair a MOK trust problem.
Instead, the certificate must be re-enrolled.
sudo vmwmanager rebuildrebuild is conditional.
First it evaluates the current vmmon.ko and vmnet.ko.
If both modules already exist and are signed correctly:
Nothing to rebuild.
If either module is missing or incorrectly signed, the manager performs:
vmware-modconfig
β
vmmon.ko + vmnet.ko
β
sign modules
β
depmod
β
verify signatures
β
restart vmware.service
VMware's native build command is:
vmware-modconfig --console --install-allsudo vmwmanager reinstallUnlike rebuild, reinstall forces VMware's native module compilation even when the existing modules are already valid.
The operation is:
force compilation
β
sign vmmon.ko
β
sign vmnet.ko
β
depmod
β
verify
β
restart vmware.service
Use reinstall when you explicitly want VMware's host modules rebuilt.
For normal operation, prefer:
sudo vmwmanager rebuildsudo vmwmanager enable-systemdRequires VMware Workstation.
The command creates:
/etc/systemd/system/vmware-rebuild.service
if it does not already exist.
The generated unit is:
[Unit]
Description=Ensure VMware host modules are available and signed
Documentation=https://github.com/mkubecek/vmware-host-modules
Wants=vmware.service
After=local-fs.target vmware.service
ConditionPathExists=/usr/bin/vmwmanager
[Service]
Type=oneshot
ExecCondition=/usr/bin/vmwmanager needs-rebuild
ExecStart=/usr/bin/vmwmanager rebuild
[Install]
WantedBy=multi-user.targetThe existing service file is deliberately not overwritten.
After creating the service, the manager performs:
systemctl daemon-reload
systemctl enable vmware-rebuild.service
systemctl start vmware-rebuild.serviceThe last operation performs an immediate module check.
sudo vmwmanager disable-systemdVMware Workstation does not need to be installed.
The command:
disable vmware-rebuild.service
β
remove /etc/systemd/system/vmware-rebuild.service
β
systemctl daemon-reload
β
clear failed state when necessary
The operation is designed to be safe and idempotent.
Running it when the integration is already disabled does not require VMware Workstation.
sudo vmwmanager uninstallThis removes vmwmanager integration, not VMware Workstation itself.
The command first disables/removes the systemd integration.
It can then optionally:
- stage deletion of the VMware MOK certificate;
- remove the local VMware signing key;
- remove the local VMware signing certificate.
MOK deletion requires confirmation and is completed during a subsequent reboot.
The command deliberately does not manually delete:
vmmon.ko
vmnet.ko
and does not uninstall VMware Workstation.
If VMware Workstation is still installed, the manager displays the native VMware uninstall command:
sudo vmware-installer -u vmware-workstationsudo vmwmanager purgepurge keeps the existing uninstall behavior intact, performs that same integration cleanup, and then starts removal of the vmware-manager RPM through DNF.
After local resources have been processed, it displays:
============================================================
Local vmware-manager resources have been processed.
The vmware-manager RPM will now be removed.
DNF will ask for final transaction confirmation.
============================================================
It then runs the equivalent of:
sudo dnf remove vmware-managerDNF still asks for final transaction confirmation. purge does not uninstall VMware Workstation and does not manually remove vmmon.ko or vmnet.ko.
The signing certificate uses:
CN=VMware Module Signing
The files are:
Private key:
/var/lib/shim-signed/mok/vmware.key
DER certificate:
/var/lib/shim-signed/mok/vmware.der
Generate or verify them with:
sudo vmwmanager genkeyCheck enrollment directly with:
sudo mokutil --test-key /var/lib/shim-signed/mok/vmware.derPending enrollment can be inspected with:
sudo mokutil --list-newIf enrollment is pending:
Fedora
β
βββ mokutil --import vmware.der
β
βΌ
Reboot
β
βΌ
MOK Manager
β
βββ Enroll MOK
βββ confirm certificate
βββ enter temporary password
βββ reboot
β
βΌ
Certificate trusted
vmwmanager does not automatically reboot the computer.
VMware's native vmware-modconfig builds host modules for the currently running kernel.
For that reason vmwmanager deliberately targets:
uname -rrather than automatically selecting the newest installed kernel.
For diagnostics, status can additionally obtain Fedora's default boot kernel using:
grubby --default-kernelIf the default boot kernel and running kernel differ, status reports the difference.
The modules are still managed for the running kernel.
Compilation uses VMware's native:
vmware-modconfig --console --install-allvmwmanager does not trust the exit status of this command alone.
With Secure Boot enabled, VMware can successfully compile and install:
vmmon.ko
vmnet.ko
and subsequently return a non-zero status because it attempts to start vmware.service before the newly created modules have been signed.
For this reason, vmwmanager additionally verifies that both module files were actually rebuilt during the current operation.
If both modules were freshly created, signing can continue even when vmware-modconfig returned a non-zero exit status.
If compilation genuinely fails, vmwmanager stops.
It does not automatically download or install alternative module sources.
The following upstream project may be shown for informational purposes:
https://github.com/mkubecek/vmware-host-modules
The user decides independently whether to use an alternative implementation.
The kernel signing utility is obtained from:
/usr/src/kernels/<running-kernel>/scripts/sign-file
Each module is signed using:
SHA-256
with:
vmware.key
vmware.der
Conceptually:
vmmon.ko ββ
βββ sign-file sha256 βββ signed modules
vmnet.ko ββ
After signing:
depmod -a <kernel>is executed.
Finally both module signatures are verified.
The expected signer contains:
VMware Module Signing
The systemd service is:
vmware-rebuild.service
and is dynamically created at:
/etc/systemd/system/vmware-rebuild.service
It has a weak dependency on:
vmware.service
through:
Wants=vmware.serviceand ordering through:
After=local-fs.target vmware.serviceIt intentionally does not use:
Requires=vmware.serviceThe key mechanism is:
ExecCondition=/usr/bin/vmwmanager needs-rebuild
ExecStart=/usr/bin/vmwmanager rebuildTherefore:
needs-rebuild
β
βββββββββββ΄ββββββββββ
β β
exit 0 exit 1
β β
βΌ βΌ
rebuild required modules OK
β β
βΌ βΌ
execute ExecStart skip ExecStart
Check the service with:
systemctl status vmware-rebuild.serviceCheck current-boot logs with:
journalctl -b -u vmware-rebuild.serviceA typical Fedora kernel update is:
dnf upgrade
β
βΌ
new kernel installed
β
βΌ
reboot
β
βΌ
new kernel running
β
βΌ
vmware-rebuild.service
β
βΌ
needs-rebuild
β
βββ vmmon missing?
βββ vmnet missing?
βββ vmmon incorrectly signed?
βββ vmnet incorrectly signed?
β
βΌ
rebuild required
β
βΌ
VMware compilation
β
βΌ
module signing
β
βΌ
verification
β
βΌ
restart vmware.service
If both modules are already present and correctly signed, the rebuild is skipped.
Start with:
vmwmanager statusmokutil --sb-statesudo mokutil --test-key \
/var/lib/shim-signed/mok/vmware.dermodinfo -n vmmon
modinfo -n vmnetmodinfo -F signer vmmon
modinfo -F signer vmnetExpected signer:
VMware Module Signing
lsmod | grep -E '^(vmmon|vmnet)'systemctl status vmware.servicesystemctl status vmware-rebuild.servicejournalctl -b -u vmware-rebuild.serviceIf the signing utility cannot be found, verify that the development package for the running kernel is installed:
sudo dnf install "kernel-devel-$(uname -r)"Then retry:
sudo vmwmanager rebuildCheck:
modinfo -F signer vmmon
modinfo -F signer vmnetThen:
sudo vmwmanager rebuildIf you explicitly want to force recompilation:
sudo vmwmanager reinstallDo not rebuild merely to repair MOK enrollment.
Run:
sudo vmwmanager genkeyThis preserves the existing key and requests enrollment of the existing certificate.
Then:
sudo rebootand complete enrollment in MOK Manager.
There are three separate concepts.
Run:
sudo vmwmanager uninstallThis can:
disable systemd integration
+
optionally delete MOK enrollment
+
optionally remove local signing keys
It does not uninstall VMware Workstation.
To process the same integration cleanup and then remove the RPM in one command:
sudo vmwmanager purgeThe original uninstall command remains unchanged and does not remove the RPM.
If integration cleanup is not required, the package can still be removed directly:
sudo dnf remove vmware-managerVMware Workstation remains independent of vmware-manager.
If desired, uninstall it using VMware's own installer:
sudo vmware-installer -u vmware-workstationThe complete project test procedure is documented in:
TEST.md
Important checks include:
vmwmanager status
vmwmanager needs-rebuild
sudo vmwmanager rebuild
sudo vmwmanager reinstall
sudo vmwmanager enable-systemd
systemctl status vmware-rebuild.service
journalctl -b -u vmware-rebuild.serviceThe project should also test behavior after installing a new Fedora kernel.
Development and contribution guidelines are documented in:
CONTRIBUTING.md
Changes to the manager should preserve these design principles:
- Never silently replace an existing MOK signing key.
- Never automatically install alternative VMware host modules.
- Always verify modules after compilation and signing.
- Manage VMware modules for the running kernel.
- Keep
needs-rebuildcompatible with systemdExecCondition. - Keep cleanup operations safe when VMware Workstation is absent.
- Do not manually remove VMware Workstation as part of manager cleanup.
Security-related information is documented in:
SECURITY.md
The private signing key:
/var/lib/shim-signed/mok/vmware.key
must remain protected.
vmwmanager creates it with permissions:
0600
Do not publish, commit or distribute the private key.
vmware-manager is distributed under the:
GPL-3.0-only
license.
See:
LICENSE
for the complete license text.
VMware Workstation is separate proprietary software and is not distributed by this project.