VMware – 14.1.0 released – OK with Kernel 4.14, Still Broken with 4.15, and a Nasty Hack to Fix..

Just updated to VMware Workstation 14.1.0, and release notes are here:  https://docs.vmware.com/en/VMware-Workstation-Pro/14.0.0/rn/workstation-141-release-notes.html

This now works OK with Kernel 4.14 (tested with 4.14.8) but vmmon is still broken with Kernel 4.15 (tested with 4.15-rc4):

................
/tmp/modconfig-04hK9s/vmmon-only/linux/hostif.c: In function ‘HostIF_InitUptime’:
/tmp/modconfig-04hK9s/vmmon-only/linux/hostif.c:1770:4: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
 init_timer(&uptimeState.timer);
 ^~~~~~~~~~
 init_timers
/tmp/modconfig-04hK9s/vmmon-only/linux/hostif.c:1771:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
 uptimeState.timer.function = HostIFUptimeResyncMono;
 ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:310: /tmp/modconfig-04hK9s/vmmon-only/linux/hostif.o] Error 1
make[1]: *** [Makefile:1502: _module_/tmp/modconfig-04hK9s/vmmon-only] Error 2
make[1]: Leaving directory '/usr/src/linux-4.15-rc4'
make: *** [Makefile:110: vmmon.ko] Error 2
make: Leaving directory '/tmp/modconfig-04hK9s/vmmon-only'
.......................
etc... etc...

As the compile fail appeared to be similar to the one with VMware 4.0.0 – for which a patch is available – I was able to do a ‘nasty hack‘ by creating and then applying a patch-set from the 4.15-patched VMware 4.0.0 versions of vmmon-only/linux/hostif.c and driver.c, against their VMware 4.1.0 equivalents, and copying across the ‘new’ header file vmmon-only/include/compat_timer.h.   This did work, but is – obviously – not an ideal solution, and hopefully someone with the necessary skills will be able to produce a ‘proper’ patch, soon..

Robert Gadsdon.  December 21, 2017.


Comments

VMware – 14.1.0 released – OK with Kernel 4.14, Still Broken with 4.15, and a Nasty Hack to Fix.. — 2 Comments

  1. FYI: VMWare 14.1 is now broken with Kernel 4.14.9. I reckon it’s the same issue as 4.15 but didn’t spend time yet looking into it.

    • VMware 14.1.0 is OK on my system with Kernel 4.14.9, but NVIDIA _is_ broken.. I’m preparing more info for an article, now..
      RG.

Leave a Reply

Your email address will not be published. Required fields are marked *