VMware Communities
Roman_F
Contributor
Contributor
Jump to solution

Kernel 4.6 - VmPlayer 12 - vmnet & vmmon compilation failure

Hello, when compiling modules for 4.6 kernel, I am receiving errors like these bellow.

I can find many threads, how to fix these problems on lower kernel versions, I have tried also here, no success.

Can anyone navigate me, how to solve this one issue?

ad-4| I125: Obtaining info using the running kernel.
ad-4| I125: Setting header path for 4.6.1-customkernel to "/lib/modules/4.6.1-customkernel/build/in
ad-4| I125: Validating path "/lib/modules/4.6.1-customkernel/build/include" for kernel release "4.6
ad-4| I125: Failed to find /lib/modules/4.6.1-customkernel/build/include/linux/version.h
ad-4| I125: /lib/modules/4.6.1-customkernel/build/include/linux/version.h not found, looking for ge
ad-4| I125: using /usr/bin/gcc for preprocess check
ad-4| I125: Preprocessed UTS_RELEASE, got value "4.6.1-customkernel".
ad-4| I125: The header path "/lib/modules/4.6.1-customkernel/build/include" for the kernel "4.6.1-c
ad-4| I125: found symbol version file /lib/modules/4.6.1-customkernel/build/Module.symvers
ad-4| I125: Reading symbol versions from /lib/modules/4.6.1-customkernel/build/Module.symvers.
ad-4| I125: Read 17107 symbol versions
ad-4| I125: Invoking modinfo on "vmmon".
ad-4| I125: "/sbin/modinfo" exited with status 256.
ad-4| I125: Invoking modinfo on "vmnet".
ad-4| I125: "/sbin/modinfo" exited with status 256.
ad-4| I125: Setting destination path for vmmon to "/lib/modules/4.6.1-customkernel/misc/vmmon.ko".
ad-4| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".
ad-4| I125: Successfully extracted the vmmon source.
ad-4| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-mT2eh6/vmmon-only aut
ad-4| W115: Failed to build vmmon.  Failed to execute the build command.
ad-4| I125: Setting destination path for vmnet to "/lib/modules/4.6.1-customkernel/misc/vmnet.ko".
ad-4| I125: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
ad-4| I125: Successfully extracted the vmnet source.
ad-4| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-mT2eh6/vmnet-only aut
ad-4| W115: Failed to build vmnet.  Failed to execute the build command.

1 Solution

Accepted Solutions
reynosoreyesmig
Contributor
Contributor
Jump to solution

Hi,

Replace function "get_user_pages()" with "get_user_pages_remote()" in vmmon-only/linux/hostif.c and vmnet-only/userif.c files.

Cheers,

View solution in original post

4 Replies
reynosoreyesmig
Contributor
Contributor
Jump to solution

Hi,

Replace function "get_user_pages()" with "get_user_pages_remote()" in vmmon-only/linux/hostif.c and vmnet-only/userif.c files.

Cheers,

enteon
Contributor
Contributor
Jump to solution

Works for me!

Steps:

tar -xf /usr/lib/vmware/modules/source/vmmon.tar

nano vmmon-only/linux/hostif.c

[search an replace the one instance of get_user_pages() with get_user_pages_remote()]

tar -cf /usr/lib/vmware/modules/source/vmmon.tar /usr/lib/vmware/modules/source/vmmon-only/

tar -xf /usr/lib/vmware/modules/source/vmnet.tar

nano vmnet-only/userif.c

[search an replace the one instance of get_user_pages() with get_user_pages_remote()]

tar -cf /usr/lib/vmware/modules/source/vmnet.tar /usr/lib/vmware/modules/source/vmnet-only/

Roman_F
Contributor
Contributor
Jump to solution

Thank you, works for me too! Smiley Happy

0 Kudos
lovetide
Contributor
Contributor
Jump to solution

Thanks, works for me too.

Fedora 24, kernel-4.6.3-300.fc24.x86_64

linux newbie, vmware fan, 囧rz..
0 Kudos