/vmware-workstation-on-linux

common kernel / vmware-modconfig problems and potential fixes

vmware-workstation-on-linux

common kernel / vmware-modconfig problems and potential fixes

references for 16+

vmmon or vmnet compile error fix (16.x.x - 17.x.x)

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

/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found

  1. Open your kernel headers Makefile.modfinal file for your kernel
  2. uname -r
    6.1.0-kali9-amd64
  3. Example: /usr/src/linux-headers-6.1.0-kali9-amd64/scripts/Makefile.modfinal
  4. Locate and delete the following lines:
ifdef CONFIG_DEBUG_INFO_BTF_MODULES
	+$(if $(newer-prereqs),$(call cmd,btf_ko))
endif
  1. run: sudo vmware-modconfig --console --install-all
  2. look for errors and try running workstation again

kernel headers missing or similar

sudo apt install linux-headers-$(uname -r)

missing compilation programs

sudo apt update; sudo apt install build-essential gcc make perl dkms dwarves

segfault or similar on workstation 15

likely not going to be a fix, see:

its really not worth messing with, just use 16+

enable copy and paste esxi / vcenter