VMware Communities
eftex
Contributor
Contributor
Jump to solution

Failed to build vmmon - Kali/GNU Debian Linux Rolling

Hi,

I just upgraded to the latest kernel on Kali Linux x64 which is basicially Debian Linux.

root@wintermute:~# uname -a

Linux wintermute 5.2.0-kali2-amd64 #1 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux

root@wintermute:~# cat /etc/issue

Kali GNU/Linux Rolling \n \l

And then VMWare Workstation failed to start because it could not get the modules compiled for that latest kernel so I downloaded the latest v15 version of VMWare for Linux.

I deinstalled the old VMWare and installed the latest one and after trying to start it I run into almost the same problems.

Here is the log-file vmware-workstation told me to look at:

root@wintermute:/tmp/vmware-root# cat vmware-3775.log

2019-08-27T01:19:57.910+02:00| host-3775| I125: Log for VMware Workstation pid=3775 version=15.1.0 build=build-13591040 option=Release

2019-08-27T01:19:57.910+02:00| host-3775| I125: The process is 64-bit.

2019-08-27T01:19:57.910+02:00| host-3775| I125: Host codepage=UTF-8 encoding=UTF-8

2019-08-27T01:19:57.910+02:00| host-3775| I125: Host is Linux 5.2.0-kali2-amd64 Kali GNU/Linux Rolling

2019-08-27T01:19:57.909+02:00| host-3775| I125: DictionaryLoad: Cannot open file "/usr/lib/vmware/settings": No such file or directory.

2019-08-27T01:19:57.909+02:00| host-3775| I125: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": No such file or directory.

2019-08-27T01:19:57.909+02:00| host-3775| I125: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.

2019-08-27T01:19:57.909+02:00| host-3775| I125: DictionaryLoad: Cannot open file "/root/.vmware/config": No such file or directory.

2019-08-27T01:19:57.909+02:00| host-3775| I125: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config": No such file or directory.

2019-08-27T01:19:57.909+02:00| host-3775| I125: PREF Optional preferences file not found at /root/.vmware/config. Using default values.

2019-08-27T01:19:57.948+02:00| host-3775| W115: Logging to /tmp/vmware-root/vmware-3775.log

2019-08-27T01:19:57.988+02:00| host-3775| I125: Obtaining info using the running kernel.

2019-08-27T01:19:57.989+02:00| host-3775| I125: Created new pathsHash.

2019-08-27T01:19:57.989+02:00| host-3775| I125: Setting header path for 5.2.0-kali2-amd64 to "/lib/modules/5.2.0-kali2-amd64/build/include".

2019-08-27T01:19:57.989+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:57.989+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:57.989+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:57.989+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:57.993+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:57.993+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.122+02:00| host-3775| I125: found symbol version file /lib/modules/5.2.0-kali2-amd64/build/Module.symvers

2019-08-27T01:19:58.122+02:00| host-3775| I125: Reading symbol versions from /lib/modules/5.2.0-kali2-amd64/build/Module.symvers.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Read 20774 symbol versions

2019-08-27T01:19:58.139+02:00| host-3775| I125: Reading in info for the vmmon module.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Reading in info for the vmnet module.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Reading in info for the vmci module.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Reading in info for the vsock module.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Setting vsock to depend on vmci.

2019-08-27T01:19:58.139+02:00| host-3775| I125: Invoking modinfo on "vmmon".

2019-08-27T01:19:58.141+02:00| host-3775| I125: "/sbin/modinfo" exited with status 256.

2019-08-27T01:19:58.141+02:00| host-3775| I125: Invoking modinfo on "vmnet".

2019-08-27T01:19:58.143+02:00| host-3775| I125: "/sbin/modinfo" exited with status 0.

2019-08-27T01:19:58.143+02:00| host-3775| I125: Invoking modinfo on "vmci".

2019-08-27T01:19:58.146+02:00| host-3775| I125: "/sbin/modinfo" exited with status 256.

2019-08-27T01:19:58.146+02:00| host-3775| I125: Invoking modinfo on "vsock".

2019-08-27T01:19:58.148+02:00| host-3775| I125: "/sbin/modinfo" exited with status 0.

2019-08-27T01:19:58.158+02:00| host-3775| I125: to be installed: vmmon status: 0

2019-08-27T01:19:58.173+02:00| host-3775| I125: Obtaining info using the running kernel.

2019-08-27T01:19:58.173+02:00| host-3775| I125: Setting header path for 5.2.0-kali2-amd64 to "/lib/modules/5.2.0-kali2-amd64/build/include".

2019-08-27T01:19:58.173+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:58.173+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:58.173+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:58.173+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:58.177+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:58.177+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.305+02:00| host-3775| I125: found symbol version file /lib/modules/5.2.0-kali2-amd64/build/Module.symvers

2019-08-27T01:19:58.305+02:00| host-3775| I125: Reading symbol versions from /lib/modules/5.2.0-kali2-amd64/build/Module.symvers.

2019-08-27T01:19:58.322+02:00| host-3775| I125: Read 20774 symbol versions

2019-08-27T01:19:58.325+02:00| host-3775| I125: Kernel header path retrieved from FileEntry: /lib/modules/5.2.0-kali2-amd64/build/include

2019-08-27T01:19:58.325+02:00| host-3775| I125: Update kernel header path to /lib/modules/5.2.0-kali2-amd64/build/include

2019-08-27T01:19:58.325+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:58.325+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:58.325+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:58.325+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:58.330+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:58.330+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.332+02:00| host-3775| I125: Found compiler at "/usr/bin/gcc"

2019-08-27T01:19:58.334+02:00| host-3775| I125: Got gcc version "8".

2019-08-27T01:19:58.334+02:00| host-3775| I125: The GCC version matches the kernel GCC minor version like a glove.

2019-08-27T01:19:58.338+02:00| host-3775| I125: Got gcc version "8".

2019-08-27T01:19:58.338+02:00| host-3775| I125: The GCC version matches the kernel GCC minor version like a glove.

2019-08-27T01:19:58.340+02:00| host-3775| I125: Trying to find a suitable PBM set for kernel "5.2.0-kali2-amd64".

2019-08-27T01:19:58.340+02:00| host-3775| I125: No matching PBM set was found for kernel "5.2.0-kali2-amd64".

2019-08-27T01:19:58.340+02:00| host-3775| I125: The GCC version matches the kernel GCC minor version like a glove.

2019-08-27T01:19:58.340+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:58.340+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:58.340+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:58.340+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:58.347+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:58.347+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.348+02:00| host-3775| I125: The GCC version matches the kernel GCC minor version like a glove.

2019-08-27T01:19:58.348+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:58.348+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:58.348+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:58.348+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:58.355+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:58.355+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.355+02:00| host-3775| I125: Using temp dir "/tmp".

2019-08-27T01:19:58.359+02:00| host-3775| I125: Obtaining info using the running kernel.

2019-08-27T01:19:58.359+02:00| host-3775| I125: Setting header path for 5.2.0-kali2-amd64 to "/lib/modules/5.2.0-kali2-amd64/build/include".

2019-08-27T01:19:58.359+02:00| host-3775| I125: Validating path "/lib/modules/5.2.0-kali2-amd64/build/include" for kernel release "5.2.0-kali2-amd64".

2019-08-27T01:19:58.359+02:00| host-3775| I125: Failed to find /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h

2019-08-27T01:19:58.359+02:00| host-3775| I125: /lib/modules/5.2.0-kali2-amd64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.

2019-08-27T01:19:58.359+02:00| host-3775| I125: using /usr/bin/gcc-8 for preprocess check

2019-08-27T01:19:58.367+02:00| host-3775| I125: Preprocessed UTS_RELEASE, got value "5.2.0-kali2-amd64".

2019-08-27T01:19:58.367+02:00| host-3775| I125: The header path "/lib/modules/5.2.0-kali2-amd64/build/include" for the kernel "5.2.0-kali2-amd64" is valid.  Whoohoo!

2019-08-27T01:19:58.499+02:00| host-3775| I125: found symbol version file /lib/modules/5.2.0-kali2-amd64/build/Module.symvers

2019-08-27T01:19:58.499+02:00| host-3775| I125: Reading symbol versions from /lib/modules/5.2.0-kali2-amd64/build/Module.symvers.

2019-08-27T01:19:58.516+02:00| host-3775| I125: Read 20774 symbol versions

2019-08-27T01:19:58.516+02:00| host-3775| I125: Invoking modinfo on "vmmon".

2019-08-27T01:19:58.519+02:00| host-3775| I125: "/sbin/modinfo" exited with status 256.

2019-08-27T01:19:58.633+02:00| host-3775| I125: Setting destination path for vmmon to "/lib/modules/5.2.0-kali2-amd64/misc/vmmon.ko".

2019-08-27T01:19:58.633+02:00| host-3775| I125: Extracting the vmmon source from "/usr/lib/vmware/modules/source/vmmon.tar".

2019-08-27T01:19:58.639+02:00| host-3775| I125: Successfully extracted the vmmon source.

2019-08-27T01:19:58.639+02:00| host-3775| I125: Building module with command "/usr/bin/make -j4 -C /tmp/modconfig-s3ORhF/vmmon-only auto-build HEADER_DIR=/lib/modules/5.2.0-kali2-amd64/build/include CC=/usr/bin/gcc IS_GCC_3=no"

2019-08-27T01:20:00.258+02:00| host-3775| W115: Failed to build vmmon.  Failed to execute the build command.

Since that is a bit of a general error-message I did run the make command myself to see its output:

root@wintermute:~# /usr/bin/make -j4 -C /tmp/modconfig-s3ORhF/vmmon-only auto-build HEADER_DIR=/lib/modules/5.2.0-kali2-amd64/build/include CC=/usr/bin/gcc IS_GCC_3=no

make: Entering directory '/tmp/modconfig-s3ORhF/vmmon-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.0-kali2-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

/usr/src/linux-headers-5.2.0-kali2-common/Makefile:213: ================= WARNING ================

/usr/src/linux-headers-5.2.0-kali2-common/Makefile:214: 'SUBDIRS' will be removed after Linux 5.3

/usr/src/linux-headers-5.2.0-kali2-common/Makefile:215: Please use 'M=' or 'KBUILD_EXTMOD' instead

/usr/src/linux-headers-5.2.0-kali2-common/Makefile:216: ==========================================

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.o

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/common/task.o

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/common/phystrack.o

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/mmu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:70:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor-flags.h:39: warning: "CR3_PCID_MASK" redefined

#define CR3_PCID_MASK 0xFFFull

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:53:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86_basic_defs.h:78: note: this is the location of the previous definition

#define CR3_PCID_MASK  0xFFF

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/paravirt_types.h:46,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/ptrace.h:94,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/math_emu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:12,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/mmu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:70:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:478: warning: "MSR_K7_HWCR_SMMLOCK" redefined

#define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

In file included from /tmp/modconfig-s3ORhF/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:51:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:468: note: this is the location of the previous definition

#define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/paravirt_types.h:46,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/ptrace.h:94,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/math_emu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:12,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/mmu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/desc.h:7,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:70:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:669: warning: "MSR_MISC_FEATURES_ENABLES" redefined

#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-s3ORhF/vmmon-only/common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/common/task.c:51:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:132: note: this is the location of the previous definition

#define MSR_MISC_FEATURES_ENABLES            0x140

/tmp/modconfig-s3ORhF/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Free() falls through to next function PhysTrack_Add()

/tmp/modconfig-s3ORhF/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Add() falls through to next function PhysTrack_Remove()

/tmp/modconfig-s3ORhF/vmmon-only/common/phystrack.o: warning: objtool: PhysTrack_Remove() falls through to next function PhysTrack_Test()

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/common/comport.o

  CC [M]  /tmp/modconfig-s3ORhF/vmmon-only/vmcore/moduleloop.o

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm.h:43,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:132: warning: "MSR_MISC_FEATURES_ENABLES" redefined

#define MSR_MISC_FEATURES_ENABLES            0x140

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/irqflags.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/irqflags.h:16,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rcupdate.h:26,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rculist.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/pid.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/sched.h:14,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/binfmts.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:669: note: this is the location of the previous definition

#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm.h:43,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:468: warning: "MSR_K7_HWCR_SMMLOCK" redefined

#define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/irqflags.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/irqflags.h:16,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rcupdate.h:26,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rculist.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/pid.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/sched.h:14,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/binfmts.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:478: note: this is the location of the previous definition

#define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:60:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined

#define CR3_PCID_MASK  0xFFF

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/irqflags.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/irqflags.h:16,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rcupdate.h:26,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rculist.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/pid.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/sched.h:14,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/binfmts.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:32:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition

#define CR3_PCID_MASK 0xFFFull

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:47:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:132: warning: "MSR_MISC_FEATURES_ENABLES" redefined

#define MSR_MISC_FEATURES_ENABLES            0x140

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/paravirt_types.h:46,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/ptrace.h:94,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/math_emu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:12,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait_bit.h:8,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/fs.h:6,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/highmem.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:25:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:669: note: this is the location of the previous definition

#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:47:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:468: warning: "MSR_K7_HWCR_SMMLOCK" redefined

#define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/paravirt_types.h:46,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/ptrace.h:94,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/math_emu.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:12,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait_bit.h:8,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/fs.h:6,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/highmem.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:25:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:478: note: this is the location of the previous definition

#define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86.h:41,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm_x86_64.h:40,

                 from /tmp/modconfig-s3ORhF/vmmon-only/./include/vm_asm.h:46,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:49:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86_basic_defs.h:78: warning: "CR3_PCID_MASK" redefined

#define CR3_PCID_MASK  0xFFF

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/cpufeature.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/thread_info.h:53,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/thread_info.h:38,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/preempt.h:7,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/preempt.h:78,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/spinlock.h:51,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/wait_bit.h:8,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/fs.h:6,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/highmem.h:5,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:25:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/processor-flags.h:39: note: this is the location of the previous definition

#define CR3_PCID_MASK 0xFFFull

/tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:109:19: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]

         .fault  = LinuxDriverFault

                   ^~~~~~~~~~~~~~~~

/tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:109:19: note: (near initialization for ‘vmuser_mops.fault’)

/tmp/modconfig-s3ORhF/vmmon-only/linux/driver.c:986:1: warning: always_inline function might not be inlinable [-Wattributes]

LinuxDriverSyncReadTSCs(uint64 *delta) // OUT: TSC max - TSC min

^~~~~~~~~~~~~~~~~~~~~~~

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c: In function ‘isVAReadable’:

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:2331:11: error: implicit declaration of function ‘get_ds’; did you mean ‘get_fs’? [-Werror=implicit-function-declaration]

    set_fs(get_ds());

           ^~~~~~

           get_fs

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:2331:11: error: incompatible type for argument 1 of ‘set_fs’

    set_fs(get_ds());

           ^~~~~~~~

In file included from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/uaccess.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/poll.h:12,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:41:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

static inline void set_fs(mm_segment_t fs)

                           ~~~~~~~~~~~~~^~

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c: In function ‘HostIF_SemaphoreWait’:

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:2608:11: error: incompatible type for argument 1 of ‘set_fs’

    set_fs(get_ds());

           ^~~~~~~~

In file included from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/uaccess.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/poll.h:12,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:41:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

static inline void set_fs(mm_segment_t fs)

                           ~~~~~~~~~~~~~^~

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c: In function ‘HostIF_SemaphoreSignal’:

/tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:2737:11: error: incompatible type for argument 1 of ‘set_fs’

    set_fs(get_ds());

           ^~~~~~~~

In file included from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/uaccess.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/poll.h:12,

                 from /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.c:41:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’

static inline void set_fs(mm_segment_t fs)

                           ~~~~~~~~~~~~~^~

cc1: some warnings being treated as errors

make[4]: *** [/usr/src/linux-headers-5.2.0-kali2-common/scripts/Makefile.build:284: /tmp/modconfig-s3ORhF/vmmon-only/linux/hostif.o] Error 1

make[4]: *** Waiting for unfinished jobs....

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/vmcore/moduleloop.c:35:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:132: warning: "MSR_MISC_FEATURES_ENABLES" redefined

#define MSR_MISC_FEATURES_ENABLES            0x140

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/irqflags.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/irqflags.h:16,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rcupdate.h:26,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rculist.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/pid.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/sched.h:14,

                 from /tmp/modconfig-s3ORhF/vmmon-only/vmcore/moduleloop.c:31:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:669: note: this is the location of the previous definition

#define MSR_MISC_FEATURES_ENABLES 0x00000140

In file included from /tmp/modconfig-s3ORhF/vmmon-only/./common/vmx86.h:32,

                 from /tmp/modconfig-s3ORhF/vmmon-only/vmcore/moduleloop.c:35:

/tmp/modconfig-s3ORhF/vmmon-only/./include/x86msr.h:468: warning: "MSR_K7_HWCR_SMMLOCK" redefined

#define MSR_K7_HWCR_SMMLOCK        0x00000001ULL // Lock SMM environment

In file included from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/nospec-branch.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/irqflags.h:9,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/irqflags.h:16,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rcupdate.h:26,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/rculist.h:11,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/pid.h:5,

                 from /usr/src/linux-headers-5.2.0-kali2-common/include/linux/sched.h:14,

                 from /tmp/modconfig-s3ORhF/vmmon-only/vmcore/moduleloop.c:31:

/usr/src/linux-headers-5.2.0-kali2-common/arch/x86/include/asm/msr-index.h:478: note: this is the location of the previous definition

#define MSR_K7_HWCR_SMMLOCK  BIT_ULL(MSR_K7_HWCR_SMMLOCK_BIT)

cc1: some warnings being treated as errors

make[4]: *** [/usr/src/linux-headers-5.2.0-kali2-common/scripts/Makefile.build:283: /tmp/modconfig-s3ORhF/vmmon-only/linux/driver.o] Error 1

/tmp/modconfig-s3ORhF/vmmon-only/common/task.o: warning: objtool: Task_Switch()+0x4d4: indirect call found in RETPOLINE build

/tmp/modconfig-s3ORhF/vmmon-only/common/task.o: warning: objtool: .text: unexpected end of section

make[3]: *** [/usr/src/linux-headers-5.2.0-kali2-common/Makefile:1610: _module_/tmp/modconfig-s3ORhF/vmmon-only] Error 2

make[2]: *** [Makefile:179: sub-make] Error 2

make[1]: *** [Makefile:8: all] Error 2

make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

make: *** [Makefile:110: vmmon.ko] Error 2

make: Leaving directory '/tmp/modconfig-s3ORhF/vmmon-only'

For me it seems like there is more then one thing going wrong regarding function-definition and types. It is a bit sad that I run this often into problems with VMWare.

Maybe the dev-team would want to fix this so all the penetration-testers can go back to train on their virtual-machines with DEP enabled. Smiley Wink

1 Solution

Accepted Solutions
eftex
Contributor
Contributor
Jump to solution

Thank god the open-source community fixed what VMware seems to keep ignoring since Linux Kernel v4. The following Patch for vmmon/vmnet solved my problems. It seems to be the cure for all kernels newer then v4 on Linux. Replacing the coresponding tar-files in the vmware-source made it built and work fine then.

GitHub - mkubecek/vmware-host-modules: Patches needed to build VMware (Player and Workstation) host ...

This procedure made vmware Workstation work again fine and all virtual machines starting as they should. replace the "-b workstation-15.1.0" with the version-number of your vmware-workstation.

Here is just the commands and below you find the commands with detailed output how it worked for me.

git clone -b workstation-15.1.0 https://github.com/mkubecek/vmware-host-modules.git

cd vmware-host-modules/

tar -cf vmmon.tar vmmon-only

tar -cf vmnet.tar vmnet-only

cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

vmware-modconfig --console --install-all

############################################ now here how the output of the commands should look like + version-information-checking

root@wintermute:~# cat /etc/issue

Kali GNU/Linux Rolling \n \l

root@wintermute:~# uname -a

Linux wintermute 5.2.0-kali2-amd64 #1 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux

root@wintermute:~/Downloads# vmware -v

VMware Workstation 15.1.0 build-13591040

root@wintermute:~/Downloads/VMware-workstation_v15# git clone -b workstation-15.1.0 https://github.com/mkubecek/vmware-host-modules.git

Cloning into 'vmware-host-modules'...

remote: Enumerating objects: 59, done.

remote: Counting objects: 100% (59/59), done.

remote: Compressing objects: 100% (40/40), done.

remote: Total 1405 (delta 41), reused 26 (delta 19), pack-reused 1346

Receiving objects: 100% (1405/1405), 835.63 KiB | 715.00 KiB/s, done.

Resolving deltas: 100% (1119/1119), done.

root@wintermute:~/Downloads/VMware-workstation_v15# cd vmware-host-modules/

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# tar -cf vmmon.tar vmmon-only

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# tar -cf vmnet.tar vmnet-only

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

'vmmon.tar' -> '/usr/lib/vmware/modules/source/vmmon.tar'

'vmnet.tar' -> '/usr/lib/vmware/modules/source/vmnet.tar'

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# vmware-modconfig --console --install-all

[AppLoader] GLib does not have GSettings support.

Stopping VMware services:

   VMware Authentication Daemon                                        done

   VM communication interface socket family                            done

   Virtual machine communication interface                             done

   Virtual machine monitor                                             done

   Blocking file system                                                done

make: Entering directory '/tmp/modconfig-hl1cSA/vmmon-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/hostif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/driverLog.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/memtrack.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/apic.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/vmx86.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/cpuid.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/task.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/comport.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/phystrack.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmcore/moduleloop.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/monLoaderVmmon.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/monLoader.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/vmmblob.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/bootstrap.o

  LD [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmmon.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-hl1cSA/vmmon-only/vmmon.mod.o

  LD [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmmon.ko

make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-hl1cSA/vmmon-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-hl1cSA/vmmon-only'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory '/tmp/modconfig-hl1cSA/vmmon-only'

make: Entering directory '/tmp/modconfig-hl1cSA/vmnet-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/driver.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/hub.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/userif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/netif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/bridge.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/procfs.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/smac_compat.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/smac.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/vnetEvent.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/vnetUserListener.o

  LD [M]  /tmp/modconfig-hl1cSA/vmnet-only/vmnet.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-hl1cSA/vmnet-only/vmnet.mod.o

  LD [M]  /tmp/modconfig-hl1cSA/vmnet-only/vmnet.ko

make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-hl1cSA/vmnet-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-hl1cSA/vmnet-only'

cp -f vmnet.ko ./../vmnet.o

make: Leaving directory '/tmp/modconfig-hl1cSA/vmnet-only'

Starting VMware services:

   Virtual machine monitor                                             done

   Virtual machine communication interface                             done

   VM communication interface socket family                            done

   Blocking file system                                                done

   Virtual ethernet                                                    done

   VMware Authentication Daemon                                        done

   Shared Memory Available                                             done

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

4 Replies
eftex
Contributor
Contributor
Jump to solution

Thank god the open-source community fixed what VMware seems to keep ignoring since Linux Kernel v4. The following Patch for vmmon/vmnet solved my problems. It seems to be the cure for all kernels newer then v4 on Linux. Replacing the coresponding tar-files in the vmware-source made it built and work fine then.

GitHub - mkubecek/vmware-host-modules: Patches needed to build VMware (Player and Workstation) host ...

This procedure made vmware Workstation work again fine and all virtual machines starting as they should. replace the "-b workstation-15.1.0" with the version-number of your vmware-workstation.

Here is just the commands and below you find the commands with detailed output how it worked for me.

git clone -b workstation-15.1.0 https://github.com/mkubecek/vmware-host-modules.git

cd vmware-host-modules/

tar -cf vmmon.tar vmmon-only

tar -cf vmnet.tar vmnet-only

cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

vmware-modconfig --console --install-all

############################################ now here how the output of the commands should look like + version-information-checking

root@wintermute:~# cat /etc/issue

Kali GNU/Linux Rolling \n \l

root@wintermute:~# uname -a

Linux wintermute 5.2.0-kali2-amd64 #1 SMP Debian 5.2.9-2kali1 (2019-08-22) x86_64 GNU/Linux

root@wintermute:~/Downloads# vmware -v

VMware Workstation 15.1.0 build-13591040

root@wintermute:~/Downloads/VMware-workstation_v15# git clone -b workstation-15.1.0 https://github.com/mkubecek/vmware-host-modules.git

Cloning into 'vmware-host-modules'...

remote: Enumerating objects: 59, done.

remote: Counting objects: 100% (59/59), done.

remote: Compressing objects: 100% (40/40), done.

remote: Total 1405 (delta 41), reused 26 (delta 19), pack-reused 1346

Receiving objects: 100% (1405/1405), 835.63 KiB | 715.00 KiB/s, done.

Resolving deltas: 100% (1119/1119), done.

root@wintermute:~/Downloads/VMware-workstation_v15# cd vmware-host-modules/

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# tar -cf vmmon.tar vmmon-only

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# tar -cf vmnet.tar vmnet-only

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/

'vmmon.tar' -> '/usr/lib/vmware/modules/source/vmmon.tar'

'vmnet.tar' -> '/usr/lib/vmware/modules/source/vmnet.tar'

root@wintermute:~/Downloads/VMware-workstation_v15/vmware-host-modules# vmware-modconfig --console --install-all

[AppLoader] GLib does not have GSettings support.

Stopping VMware services:

   VMware Authentication Daemon                                        done

   VM communication interface socket family                            done

   Virtual machine communication interface                             done

   Virtual machine monitor                                             done

   Blocking file system                                                done

make: Entering directory '/tmp/modconfig-hl1cSA/vmmon-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/driver.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/hostif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/linux/driverLog.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/memtrack.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/apic.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/vmx86.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/cpuid.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/task.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/comport.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/common/phystrack.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmcore/moduleloop.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/monLoaderVmmon.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/monLoader.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/vmmblob.o

  CC [M]  /tmp/modconfig-hl1cSA/vmmon-only/bootstrap/bootstrap.o

  LD [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmmon.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-hl1cSA/vmmon-only/vmmon.mod.o

  LD [M]  /tmp/modconfig-hl1cSA/vmmon-only/vmmon.ko

make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-hl1cSA/vmmon-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-hl1cSA/vmmon-only'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory '/tmp/modconfig-hl1cSA/vmmon-only'

make: Entering directory '/tmp/modconfig-hl1cSA/vmnet-only'

Using kernel build system.

/usr/bin/make -C /lib/modules/5.2.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/driver.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/hub.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/userif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/netif.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/bridge.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/procfs.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/smac_compat.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/smac.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/vnetEvent.o

  CC [M]  /tmp/modconfig-hl1cSA/vmnet-only/vnetUserListener.o

  LD [M]  /tmp/modconfig-hl1cSA/vmnet-only/vmnet.o

  Building modules, stage 2.

  MODPOST 1 modules

  CC      /tmp/modconfig-hl1cSA/vmnet-only/vmnet.mod.o

  LD [M]  /tmp/modconfig-hl1cSA/vmnet-only/vmnet.ko

make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'

/usr/bin/make -C $PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= postbuild

make[1]: Entering directory '/tmp/modconfig-hl1cSA/vmnet-only'

make[1]: 'postbuild' is up to date.

make[1]: Leaving directory '/tmp/modconfig-hl1cSA/vmnet-only'

cp -f vmnet.ko ./../vmnet.o

make: Leaving directory '/tmp/modconfig-hl1cSA/vmnet-only'

Starting VMware services:

   Virtual machine monitor                                             done

   Virtual machine communication interface                             done

   VM communication interface socket family                            done

   Blocking file system                                                done

   Virtual ethernet                                                    done

   VMware Authentication Daemon                                        done

   Shared Memory Available                                             done

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

zparihar
Contributor
Contributor
Jump to solution

This worked great on Kubuntu 19.10

Cheers!

Reply
0 Kudos
davidkariuki
Contributor
Contributor
Jump to solution

I build an automated shell- script to help download, extract and build the VMWARE `vmnet` and `vmmon` files.

Running the script should fix the issue. The link also contains the instructions to do this.

Try it here -> vmware-host-modules-builder-cli  and create an issue if you encounter any problems.

DK
Reply
0 Kudos
davidkariuki
Contributor
Contributor
Jump to solution

I build an automated shell- script to help download, extract and build the VMWARE `vmnet` and `vmmon` files.

Running the script should fix the issue. The link also contains the instructions to do this.

Try it here -> vmware-host-modules-builder-cli  and create an issue if you encounter any problems.

DK
Reply
0 Kudos