After a kernel upgrade you might notice that vmware doesn’t work anymore. It asks to recompile some modules but have no success doing this.
So here is a guide how to easily recompile modules and turn your VMWare back to live again:
sudo vmware-modconfig --console --install-all
It will give you errors, just ignore it. Run the following commands:
cd /lib/modules/$(uname -r)/misc sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der $(modinfo -n vmmon) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der $(modinfo -n vmnet) sudo modprobe vmnet && sudo modprobe vmmon
Then start VMware again and voila! It must work.