common kernel / vmware-modconfig problems and potential fixes
- https://communities.vmware.com/t5/VMware-Workstation-Pro/VM-Workstation-16-1-gt-16-2-1-on-Ubuntu-21-10-broke-everything/m-p/2884738#M173158
- https://communities.vmware.com/t5/VMware-Workstation-Pro/solved-vmware-modconfig-is-unable-to-install-modules-on-Linux/td-p/2913806
- https://communities.vmware.com/t5/VMware-Workstation-Pro/VMware-16-2-3-not-working-on-Ubuntu-22-04-LTS/m-p/2905535#M175399
- aircrack-ng/rtl8188eus#263
Modify the below script for your EXACT version you're attempting to install, specifically line git checkout workstation-16.2.3
then run it
cd /usr/lib/vmware/modules/source
git clone https://github.com/mkubecek/vmware-host-modules
cd vmware-host-modules
git checkout workstation-16.2.3
make
tar -cf vmnet.tar vmnet-only
tar -cf vmmon.tar vmmon-only
mv vmnet.tar /usr/lib/vmware/modules/source/
mv vmmon.tar /usr/lib/vmware/modules/source/
vmware-modconfig --console --install-all
- Open your kernel headers Makefile.modfinal file for your kernel
- uname -r
6.1.0-kali9-amd64
- Example: /usr/src/linux-headers-6.1.0-kali9-amd64/scripts/Makefile.modfinal
- Locate and delete the following lines:
ifdef CONFIG_DEBUG_INFO_BTF_MODULES
+$(if $(newer-prereqs),$(call cmd,btf_ko))
endif
- run:
sudo vmware-modconfig --console --install-all
- look for errors and try running workstation again
sudo apt install linux-headers-$(uname -r)
sudo apt update; sudo apt install build-essential gcc make perl dkms dwarves
likely not going to be a fix, see:
- https://communities.vmware.com/t5/VMware-Workstation-Pro/vmware-15-5-7-line-105-segmentation-fault-core-dumped/td-p/2828382
- https://communities.vmware.com/t5/VMware-Workstation-Pro/Linux-5-8-host-support-like-VirtualBox-this-year-or-next/m-p/2296583
its really not worth messing with, just use 16+