Skip to content

Instantly share code, notes, and snippets.

@dmcbane
Created April 28, 2022 14:09
Show Gist options
  • Save dmcbane/81febe8388c29bf19bf477a1aaebda0d to your computer and use it in GitHub Desktop.
Save dmcbane/81febe8388c29bf19bf477a1aaebda0d to your computer and use it in GitHub Desktop.
VMWare vmmod & vmnet build problem

VMWare vmmod & vmnet build problem

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment