Skip to content

Instantly share code, notes, and snippets.

@paseaf
Last active November 11, 2022 09:40
Show Gist options
  • Save paseaf/d2d6c696e4121805bbcd22ea6a4ba8e1 to your computer and use it in GitHub Desktop.
Save paseaf/d2d6c696e4121805bbcd22ea6a4ba8e1 to your computer and use it in GitHub Desktop.
Update VMWare Player after kernel update - Fedora
#!/bin/bash
set -euxo pipefail
VMWARE_VERSION=$(vmplayer -v 2>/dev/null | grep VMware | awk '{ print $3}')
TMP_DIR="/tmp/vmware_update"
mkdir -p $TMP_DIR
cd $TMP_DIR
wget "https://github.com/mkubecek/vmware-host-modules/archive/workstation-$VMWARE_VERSION.tar.gz" \
-O "$TMP_DIR/workstation.tar.gz"
mkdir -p workstation
tar -xzf workstation.tar.gz -C workstation --strip-components 1
cd workstation
make
sudo make install
# install kernel module
# https://ask.fedoraproject.org/t/installing-vmware-stdarg-h-and-stddef-h-not-found/20577/15
CPATH=$(find /usr/lib/gcc -type d -wholename '*/include')
sudo CPATH="$CPATH" vmware-modconfig --console --install-all
@paseaf
Copy link
Author

paseaf commented Jun 26, 2022

Reboot the machine after running this script

@paseaf
Copy link
Author

paseaf commented Jul 23, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment