Last active
November 11, 2022 09:40
-
-
Save paseaf/d2d6c696e4121805bbcd22ea6a4ba8e1 to your computer and use it in GitHub Desktop.
Update VMWare Player after kernel update - Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Even better: update automatically after each kernel update
https://docs.fedoraproject.org/en-US/quick-docs/how-to-use-vmware/#_deal_with_kernel_updates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reboot the machine after running this script