This script installs VMware Workstation, including modified kernel modules and a script to automatically build them for future kernel updates.
Currently made for Fedora 40 and VMware Workstation 17.6. This software is provided as-is, proceed at your own risk. Please read the source to see what it does before you run it.
Modified kernel modules from Bytium
This tool uses the same keys used by akmods for signing modules (such as the RPM Fusion NVIDIA proprietary drivers) so they're able to be loaded with secure boot enabled.
You can check if your system has secure boot enabled by running the following command:
mokutil --sb-state
If secure boot is disabled, you can skip this section.
To verify if the akmods key is present and trusted, use this little script (that shoud be run as root because the key file is protected):
if [[ -f "/etc/pki/akmods/private/private_key.priv" ]]; then
echo "akmods MOK is present."
echo "MOK enrollment status:"
mokutil --test-key /etc/pki/akmods/certs/public_key.der
else
echo "akmods MOK is unavailable."
fi
If the key is not present or it is not enrolled, please follow the RPM Fusion secure boot how-to.
Warning
Enrolling a new MOK will trip Bitlocker encryption if you have it enabled in a Windows dual-boot. Make sure you have access to your recovery keys.
The script will prevent you from installing if you have secure boot enabled but don't have a MOK available.
To use the script, run the following commands:
git clone https://github.com/jhenriquelc/fedora-vmware-installer.git
cd fedora-vmware-installer
sudo ./install.sh path/to/installer.bundle
Please replace path/to/installer.bundle
with the actual path to the installer bundle.
To uninstall:
- Run
sudo vmware-installer -u vmware-workstation
to uninstall the bundle. - Delete the script at
/etc/kernel/install.d/99-vmmodules.install
. - Delete the modules source folder at
/opt/vm-host-modules
.