Correction for the problem with building vmmod and vmnet not building on Pop OS! I was building against kernel 5.16.19 and vmware workstation pro 16.2.3
cd /usr/lib/vmware/modules/source
sudo tar xvf vmmon.tar
sudo tar xvf vmnet.tar
cd vmmon-only
sudo vim include/vm_asm_x86.h
- comment out lines 65-70, and 72 (// or /* */)
- leave line 71 (
#define ASSERT_ON_COMPILE_SELECTOR_SIZE(expr)
) - save the file and exit
cd /usr/lib/vmware/modules/source/vmmon-only
sudo CPATH=/usr/src/linux-headers-$(uname -r)/include/linux make
cd ../vmnet-only
sudo CPATH=/usr/src/linux-headers-$(uname -r)/include/linux make
cd ..
sudo cp vmmon.o /lib/modules/$(uname -r)/kernel/drivers/misc/vmmon.ko
sudo cp vmnet.o /lib/modules/$(uname -r)/kernel/drivers/misc/vmnet.ko
sudo depmod -a
sudo systemctl restart vmware.service