@denji: I found that this is not a good idea. If dracut omits the modules I get systemd warning in the journal:Failed to find module 'vmmon'.
/usr/lib/modules-load.d/vmware.conf is asking systemd to load the modules early at boot. I do not want to mess with this file. May be we need a hook for dkms to rebuild initrd on every dkms run.
Pinned Comments
jihem commented on 2020-02-10 17:29 (UTC) (edited on 2021-06-19 13:19 (UTC) by jihem)
After the first installation, please:
1) install the appropriate headers package(s) for your installed kernel(s): linux-headers for default kernel, linux-lts-headers for LTS kernel...
2) reboot or load vmw_vmci and vmmon kernel modules (modprobe -a vmw_vmci vmmon)
3) Enable the services you need (using .service units to activate them during boot or .path units to activate them when a VM is started) :
vmware-networks: to have network access inside VMs
vmware-usbarbitrator: to connect USB devices inside VMs