Running VMware workstation on Leap 15.1 and Tumbleweed compiling modules

Just a heads up anyone having problems compiling modules just run the script below with root permissions, [edit] the version of VMware to match your version. Saved me many times on different hardware currently a Dell XPS 7590.

#!/bin/bash

VMWARE_VERSION=workstation-15.5.1

TMP_FOLDER=/tmp/patch-vmware

rm -fdr $TMP_FOLDER

mkdir -p $TMP_FOLDER

cd $TMP_FOLDER

git clone https://github.com/mkubecek/vmware-host-modules.git

cd $TMP_FOLDER/vmware-host-modules

git checkout $VMWARE_VERSION

git fetch

make

sudo make install

sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1

sudo ln -s /lib/x86_64-linux-gnu/libz.so.1

/usr/lib/vmware/lib/libz.so.1/libz.so.1

sudo /etc/init.d/vmware restart

Thx for posting your script.

  1. Although people often post virtualization related topics in this Applications forum, all virtualization specific posts really belong in the Virtualization forum.
  2. Since your script must be executed in a console with elevated privileges (ie root as you’ve posted), there is no need for those “sudo” because you’re already elevated.
  3. All scripts and other code like content like stdout, stdin and sderr should be enclosed in
 tags which can easily created with the hash tag (#) in your HTML Forums text editor.
4. When you do something that's not fully documented like those two commands that remove library files, you should include comments that explain your action.

TSU

Moved to Virualization.

Not my script picked it up a while ago but it works well, thanks for your info.