Skip to content

Instantly share code, notes, and snippets.

@rxxsta
Last active August 30, 2022 22:46
Show Gist options
  • Save rxxsta/9ce0caa9fdf0f5085d936183dd7da2be to your computer and use it in GitHub Desktop.
Save rxxsta/9ce0caa9fdf0f5085d936183dd7da2be to your computer and use it in GitHub Desktop.
VMware module fix for Linux (VMMON and VMNET modules)
  1. Make sure your kernel version headers are installed located in: /lib/modules/$(uname -r). If it's looking kind of empty (not empty example), then you should reinstall them (e.g. sudo apt reinstall linux-modules-$(uname -r))

  2. Check kernel version: uname -r

  3. Check vmware version: vmware --version

  4. Download the host module files: git clone https://github.com/mkubecek/vmware-host-modules.git

  5. cd vmware-hosts-modules

  6. Find your workstation version name: git remote show origin

  7. Checkout into the branch with the modules of your workstation version: git checkout <YOUR-WORKSTATION-VERSION>

  8. Enter the command: make

  9. Enter the command: sudo make install

9a. Reload modules by force: sudo /etc/init.d/vmware restart

9b. (Optional) Remove the vmware-host-modules folder: rm -rf <FOLDER-PATH>

9c. (Optional) Restart computer

Some arch network troubleshooting


VMware Workstation 1 Liner Fix

if [[ -d /lib/modules/$(uname -r) ]]; then PRODUCT=$(vmware --version | cut -d' ' -f3) && cd ~/Downloads && git clone https://github.com/mkubecek/vmware-host-modules.git && cd vmware-host-modules && WS=$(git remote show origin | grep $PRODUCT | cut -d' ' -f5 | tail -1) && git checkout $WS && make && sudo make install && sudo /etc/init.d/vmware restart && cd ~/Downloads && rm -rf vmware-host-modules; else echo "Check uname -r and /lib/modules"; fi

VMware Player 1 Liner Fix

if [[ -d /lib/modules/$(uname -r) ]]; then PRODUCT=$(vmware --version | cut -d' ' -f3) && cd ~/Downloads && git clone https://github.com/mkubecek/vmware-host-modules.git && cd vmware-host-modules && WS=$(git remote show origin | grep $PRODUCT | cut -d' ' -f5 | head -1) && git checkout $WS && make && sudo make install && sudo /etc/init.d/vmware restart && cd ~/Downloads && rm -rf vmware-host-modules; else echo "Check uname -r and /lib/modules"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment