Hello, I have problem during building VMware Player modules on Thumbleweed. VMware player after instalation is trying to build 2 modules: vmmon and vmnet but during compiling modules I’m getting these errors:
Is there anyone who knows how to solve this problem?
If you are using Tumbleweed with third-party kernel modules you better learn how to interpret the errors that you will be having rather frequently after kernel updates.
The below worked for me… but to be clear is a combination of notes so has not been tested in this form and I may have left something out.
I can’t spare any more time now, I hope someone else can test on a box known to have this issue, and really hope this saves someone some time as this ate 3 hours of my life.
########################
# Uninstall
sudo vmware-installer -u vmware-workstation
# Cleanup
cd /lib/modules/6.9.1-1-default/misc
mv vm* /tmp
# CAREFUL HERE...
sudo rm -rf /etc/vmware* /usr/lib/vmware* /usr/bin/vmware* /usr/bin/vmnet* /usr/share/applications/vmware* /usr/share/doc/vmware*
# Remove kernel mods
sudo rmmod vmnet.o
sudo rmmod vmmon.o
sudo rmmod vmnet.o
sudo rmmod vmmon.o
sudo rmmod vmci.o
sudo rmmod vmblock.o
sudo rmmod vmppuser.o
########################
# Install
sudo zypper ref
sudo zypper dup
# Install kernel-default-devel package for my kernel version
sudo zypper install --oldpackage kernel-default-devel=$(uname -r | sed "s/-default//")
# Install other dependencies
sudo zypper install make gcc gcc13 cross-bpf-gcc13 kernel-source kernel-devel kernel-syms open-vm-tools open-vm-tools-desktop open-vm-tools-containerinfo dkms git-core bc
# They changed the location of the file 'vmlinux.xz', create a symlink
ln -sf /usr/lib/modules/$(uname -r)/vmlinux.xz /boot/
########################
# REBOOT
sudo shutdown -r now
########################
# Install patched VMWare host modules from nan0desu
# (vmmon and vmnet loaded as dynamic modules during runtime)
mkdir ~/vmware-kernel-mods
cd ~/vmware-kernel-mods
git clone https://github.com/nan0desu/vmware-host-modules.git
cd vmware-host-modules/
git checkout tmp/workstation-17.5.2-k6.9.1
make
sudo make install
sudo modprobe vmmon
sudo modprobe vmnet
########################
# REBOOT
sudo shutdown -r now
########################
# Verify those 2 kernel modules are loaded after REBOOT (else, repeat the previous 2 modprobe commands)
sudo lsmod | egrep '(vmmon|vmnet)'
########################
# Run VMWare bundle installer
mkdir ~/vmware-works
cd ~/vmware-works
cp <YOUR-PATH>/VMware-Workstation-Full-17.5.2-XXXXXXXX.x86_64.bundle .
sudo chmod +x ./VMware-Workstation-Full-17.5.2-XXXXXXXX.x86_64.bundle
sudo ./VMware-Workstation-Full-17.5.2-XXXXXXXX.x86_64.bundle
# During install when prompted with;
# System service scripts directory (commonly /etc/init.d). [/etc/init.d]:
# Enter:
/etc/systemd/system