From this weekends Worstation 12.5 is not working (i think fedora is updated).
In vmmon and vmnet sorces i change function get_user_pages to get_user_pages_remote.
vmware-modconfig --console --install-all Result a error.
2017-01-16T11:48:13.098+02:00| modconfig| I125: The process is 64-bit.
2017-01-16T11:48:13.097+02:00| modconfig| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.
2017-01-16T11:48:13.097+02:00| modconfig| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2017-01-16T11:48:13.097+02:00| modconfig| I125: DictionaryLoad: Cannot open file "/root/.vmware/config": No such file or directory.
2017-01-16T11:48:13.097+02:00| modconfig| I125: PREF Optional preferences file not found at /root/.vmware/config. Using default values.
2017-01-16T11:48:13.104+02:00| modconfig| I125: Obtaining info using the running kernel.
2017-01-16T11:48:13.104+02:00| modconfig| I125: Created new pathsHash.
2017-01-16T11:48:13.104+02:00| modconfig| I125: Setting header path for 4.9.3-200.fc25.x86_64 to "/lib/modules/4.9.3-200.fc25.x86_64/build/include".
2017-01-16T11:48:13.104+02:00| modconfig| I125: Validating path "/lib/modules/4.9.3-200.fc25.x86_64/build/include" for kernel release "4.9.3-200.fc25.x86_64".
2017-01-16T11:48:13.104+02:00| modconfig| I125: /lib/modules/4.9.3-200.fc25.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-01-16T11:48:13.114+02:00| modconfig| I125: Preprocessed UTS_RELEASE, got value "4.9.3-200.fc25.x86_64".
2017-01-16T11:48:13.114+02:00| modconfig| I125: The header path "/lib/modules/4.9.3-200.fc25.x86_64/build/include" for the kernel "4.9.3-200.fc25.x86_64" is valid. Whoohoo!
2017-01-16T11:48:13.277+02:00| modconfig| I125: Reading symbol versions from /lib/modules/4.9.3-200.fc25.x86_64/build/Module.symvers.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Reading in info for the vmmon module.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Reading in info for the vmnet module.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Reading in info for the vmblock module.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Reading in info for the vmci module.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Reading in info for the vsock module.
2017-01-16T11:48:13.295+02:00| modconfig| I125: Setting vsock to depend on vmci.
2017-01-16T11:48:13.305+02:00| modconfig| I125: Trying to find a suitable PBM set for kernel "4.9.3-200.fc25.x86_64".
2017-01-16T11:48:13.305+02:00| modconfig| I125: No matching PBM set was found for kernel "4.9.3-200.fc25.x86_64".
2017-01-16T11:48:13.305+02:00| modconfig| I125: Found compiler at "/bin/gcc"
2017-01-16T11:48:13.308+02:00| modconfig| I125: Got gcc version "6.3.1".
2017-01-16T11:48:13.308+02:00| modconfig| I125: The GCC version matches the kernel GCC minor version like a glove.
2017-01-16T11:48:13.308+02:00| modconfig| I125: Using temp dir "/tmp".
2017-01-16T11:48:13.350+02:00| modconfig| I125: Setting destination path for vmmon to "/lib/modules/4.9.3-200.fc25.x86_64/misc/vmmon.ko".
2017-01-16T11:48:13.351+02:00| modconfig| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2017-01-16T11:48:13.356+02:00| modconfig| I125: Successfully extracted the vmmon source.
2017-01-16T11:48:13.356+02:00| modconfig| I125: Building module with command "/bin/make -j4 -C /tmp/modconfig-wJncpl/vmmon-only auto-build HEADER_DIR=/lib/modules/4.9.3-200.fc25.x86_64/build/include CC=/bin/gcc IS_GCC_3=no"
2017-01-16T11:48:15.391+02:00| modconfig| W115: Failed to build vmmon. Failed to execute the build command.
2017-01-16T11:48:15.391+02:00| modconfig| I125: Setting destination path for vmnet to "/lib/modules/4.9.3-200.fc25.x86_64/misc/vmnet.ko".
2017-01-16T11:48:15.392+02:00| modconfig| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2017-01-16T11:48:15.395+02:00| modconfig| I125: Successfully extracted the vmnet source.
2017-01-16T11:48:15.395+02:00| modconfig| I125: Building module with command "/bin/make -j4 -C /tmp/modconfig-wJncpl/vmnet-only auto-build HEADER_DIR=/lib/modules/4.9.3-200.fc25.x86_64/build/include CC=/bin/gcc IS_GCC_3=no"
2017-01-16T11:48:17.266+02:00| modconfig| W115: Failed to build vmnet. Failed to execute the build command.
2017-01-16T11:48:17.271+02:00| modconfig| I125: We are now shutdown. Ready to die!
I've attached a pair of patches which should apply against the contents of the original vmmon-only and vmnet-only tarballs in /usr/lib/vmware/modules/source, and should make Workstation 12.5.2 compatible with Linux kernel version 4.9. It might work with earlier versions of Workstation with a bit more work.
That did the trick for me -- thanks!
Thanks a lot! Works great for me so far.
Find everything in a single script attached.
Tested with Fedora 25 and VMware-Player-12.5.2-4638234.x86_64.
Thank you a lot ! !
You da man, DariusD! This worked on my recently upgrade from F22->F24. Thanks much for this!
Thank you very much, this mostly worked for me. However, the output of "vmware-modconfig --console --install-all" says that it was unable to start the VMware services. When I open the GUI and attempt to run a VM, it tells me that it cannot find /dev/vmmon.
I am running Fedora 25, Linux kernel 4.9.8. I am attaching the output of "vmware-modconfig --console --install-all" below.
make: 'postbuild' is up to date.
Starting vmware (via systemctl): Job for vmware.service failed because the control process exited with error code.
See "systemctl status vmware.service" and "journalctl -xe" for details.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: The process is 64-bit.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": 没有那个文件或目录.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: DictionaryLoad: Cannot open file "/root/.vmware/config": 没有那个文件或目录.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: PREF Optional preferences file not found at /root/.vmware/config. Using default values.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: PREF Unable to check permissions for preferences file.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: DictionaryLoad: Cannot open file "/root/.vmware/preferences": 没有那个文件或目录.
2017-02-16T12:16:29.843+08:00| vthread-4| I125: PREF Failed to load user preferences.
2017-02-16T12:16:29.896+08:00| vthread-4| I125: Obtaining info using the running kernel.
2017-02-16T12:16:29.896+08:00| vthread-4| I125: Created new pathsHash.
2017-02-16T12:16:29.896+08:00| vthread-4| I125: Setting header path for 4.9.0-040900-generic to "/lib/modules/4.9.0-040900-generic/build/include".
2017-02-16T12:16:29.896+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:29.896+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:29.901+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:29.901+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.039+08:00| vthread-4| I125: Reading symbol versions from /lib/modules/4.9.0-040900-generic/build/Module.symvers.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Reading in info for the vmmon module.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Reading in info for the vmnet module.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Reading in info for the vmblock module.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Reading in info for the vmci module.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Reading in info for the vsock module.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Setting vsock to depend on vmci.
2017-02-16T12:16:30.060+08:00| vthread-4| I125: Invoking modinfo on "vmmon".
2017-02-16T12:16:30.062+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.062+08:00| vthread-4| I125: Invoking modinfo on "vmnet".
2017-02-16T12:16:30.063+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.063+08:00| vthread-4| I125: Invoking modinfo on "vmblock".
2017-02-16T12:16:30.064+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.065+08:00| vthread-4| I125: Invoking modinfo on "vmci".
2017-02-16T12:16:30.066+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.066+08:00| vthread-4| I125: Invoking modinfo on "vsock".
2017-02-16T12:16:30.067+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 0.
2017-02-16T12:16:30.097+08:00| vthread-4| I125: Obtaining info using the running kernel.
2017-02-16T12:16:30.097+08:00| vthread-4| I125: Setting header path for 4.9.0-040900-generic to "/lib/modules/4.9.0-040900-generic/build/include".
2017-02-16T12:16:30.097+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:30.097+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:30.103+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:30.103+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.243+08:00| vthread-4| I125: Reading symbol versions from /lib/modules/4.9.0-040900-generic/build/Module.symvers.
2017-02-16T12:16:30.263+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:30.263+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:30.269+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:30.269+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.269+08:00| vthread-4| I125: Found compiler at "/usr/bin/gcc"
2017-02-16T12:16:30.272+08:00| vthread-4| I125: Got gcc version "6.2.0".
2017-02-16T12:16:30.272+08:00| vthread-4| I125: The GCC version matches the kernel GCC minor version like a glove.
2017-02-16T12:16:30.272+08:00| vthread-4| I125: Using user supplied compiler "/usr/bin/gcc".
2017-02-16T12:16:30.274+08:00| vthread-4| I125: Got gcc version "6.2.0".
2017-02-16T12:16:30.274+08:00| vthread-4| I125: The GCC version matches the kernel GCC minor version like a glove.
2017-02-16T12:16:30.276+08:00| vthread-4| I125: Trying to find a suitable PBM set for kernel "4.9.0-040900-generic".
2017-02-16T12:16:30.276+08:00| vthread-4| I125: No matching PBM set was found for kernel "4.9.0-040900-generic".
2017-02-16T12:16:30.276+08:00| vthread-4| I125: The GCC version matches the kernel GCC minor version like a glove.
2017-02-16T12:16:30.276+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:30.276+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:30.281+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:30.281+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.284+08:00| vthread-4| I125: The GCC version matches the kernel GCC minor version like a glove.
2017-02-16T12:16:30.284+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:30.284+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:30.289+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:30.289+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.289+08:00| vthread-4| I125: Using temp dir "/tmp".
2017-02-16T12:16:30.290+08:00| vthread-4| I125: Obtaining info using the running kernel.
2017-02-16T12:16:30.291+08:00| vthread-4| I125: Setting header path for 4.9.0-040900-generic to "/lib/modules/4.9.0-040900-generic/build/include".
2017-02-16T12:16:30.291+08:00| vthread-4| I125: Validating path "/lib/modules/4.9.0-040900-generic/build/include" for kernel release "4.9.0-040900-generic".
2017-02-16T12:16:30.291+08:00| vthread-4| I125: /lib/modules/4.9.0-040900-generic/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2017-02-16T12:16:30.296+08:00| vthread-4| I125: Preprocessed UTS_RELEASE, got value "4.9.0-040900-generic".
2017-02-16T12:16:30.296+08:00| vthread-4| I125: The header path "/lib/modules/4.9.0-040900-generic/build/include" for the kernel "4.9.0-040900-generic" is valid. Whoohoo!
2017-02-16T12:16:30.435+08:00| vthread-4| I125: Reading symbol versions from /lib/modules/4.9.0-040900-generic/build/Module.symvers.
2017-02-16T12:16:30.457+08:00| vthread-4| I125: Invoking modinfo on "vmmon".
2017-02-16T12:16:30.460+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.460+08:00| vthread-4| I125: Invoking modinfo on "vmnet".
2017-02-16T12:16:30.462+08:00| vthread-4| I125: "/sbin/modinfo" exited with status 256.
2017-02-16T12:16:30.881+08:00| vthread-4| I125: Setting destination path for vmmon to "/lib/modules/4.9.0-040900-generic/misc/vmmon.ko".
2017-02-16T12:16:30.881+08:00| vthread-4| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
2017-02-16T12:16:30.889+08:00| vthread-4| I125: Successfully extracted the vmmon source.
2017-02-16T12:16:30.889+08:00| vthread-4| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-NoWWUa/vmmon-only auto-build HEADER_DIR=/lib/modules/4.9.0-040900-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2017-02-16T12:16:33.596+08:00| vthread-4| I125: Successfully built vmmon. Module is currently at "/tmp/modconfig-NoWWUa/vmmon.o".
2017-02-16T12:16:33.596+08:00| vthread-4| I125: Found the vmmon symvers file at "/tmp/modconfig-NoWWUa/vmmon-only/Module.symvers".
2017-02-16T12:16:33.596+08:00| vthread-4| I125: Installing vmmon from /tmp/modconfig-NoWWUa/vmmon.o to /lib/modules/4.9.0-040900-generic/misc/vmmon.ko.
2017-02-16T12:16:33.596+08:00| vthread-4| I125: Registering file "/lib/modules/4.9.0-040900-generic/misc/vmmon.ko".
2017-02-16T12:16:35.684+08:00| vthread-4| I125: "/usr/lib/vmware-installer/2.1.0/vmware-installer" exited with status 0.
2017-02-16T12:16:35.684+08:00| vthread-4| I125: Registering file "/usr/lib/vmware/symvers/vmmon-4.9.0-040900-generic".
2017-02-16T12:16:35.972+08:00| vthread-4| I125: "/usr/lib/vmware-installer/2.1.0/vmware-installer" exited with status 0.
2017-02-16T12:16:35.974+08:00| vthread-4| I125: Setting destination path for vmnet to "/lib/modules/4.9.0-040900-generic/misc/vmnet.ko".
2017-02-16T12:16:35.974+08:00| vthread-4| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
2017-02-16T12:16:35.980+08:00| vthread-4| I125: Successfully extracted the vmnet source.
2017-02-16T12:16:35.981+08:00| vthread-4| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-NoWWUa/vmnet-only auto-build HEADER_DIR=/lib/modules/4.9.0-040900-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
2017-02-16T12:16:37.498+08:00| vthread-4| W115: Failed to build vmnet. Failed to execute the build command.
If you attempt to launch VMware Workstation and then run "systemctl status vmware.service" or "journalctl -xe", are there any useful messages shown about vmware, vmmon and/or vmnet?
Thank-you two for the scripts!
WORKSTATION PRO 12.5.8 LINUX COMPILE HELP - NEED VMNet.Ko module, How do I get it?
Re: Kernel 4.9 Fedora 25 stoped today!