So when Fedora 25 upgraded my kernel to 4.13 I thought nothing of it until I needed to use VmWare workstation.
It failed to install the Virtual Network Monitor.
Note: This has been tested and works for Fedora 26 with Kernel 4.13 as well
Prepare for build
$ sudo mkdir /lib/modules/`uname -r`/misc
$ sudo rm -rf /usr/lib/vmware/modules/source/vmmon-only/
$ sudo rm -rf /usr/lib/vmware/modules/source/vmnet-only
$ sudo tar -xvf /usr/lib/vmware/modules/source/vmmon.tar --directory /usr/lib/vmware/modules/source
$ sudo tar -xvf /usr/lib/vmware/modules/source/vmnet.tar --directory /usr/lib/vmware/modules/source
Build vmnet
$ cd /usr/lib/vmware/modules/source/vmnet-only/
The bridge.c
file needs to be replaced by: https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmnet-only/bridge.c
$ sudo make
$ sudo cp -p vmnet.ko /lib/modules/`uname -r`/misc
Build vmmon
$ cd /usr/lib/vmware/modules/source/vmmon-only/
The linux/hostif.c
file needs to be replaced by: https://raw.githubusercontent.com/mkubecek/vmware-host-modules/770c7ffe611520ac96490d235399554c64e87d9f/vmmon-only/linux/hostif.c
$ sudo make
$ sudo cp -p vmmon.ko /lib/modules/`uname -r`/misc
Install the new compiled modules
$ sudo depmod -a
$ sudo modprobe vmmon
$ sudo modprobe vmnet
$ sudo /etc/init.d/vmware restart
For Fedora 26 I also needed the following:
$ sudo cp -r /usr/lib/vmware-installer/2.1.0/lib/lib/libexpat.so.0 /usr/lib/vmware/lib
$ cd /usr/lib/vmware/lib/libz.so.1
$ sudo mv -i libz.so.1 libz.so.1.old
$ sudo ln -s /usr/lib64/libz.so.1 .
Note: This was also tested with the workstation 12.5.8
After this vmware will run but it won’t be able to launch VMs after a reboot everything worked correctly.