Unable to launch vmware workstation because of failure in the kernel module compilation.
Issue
- Launch of
vmware workstationfailed because of failure in kernel module compilation. - Compilation of kernel modules "vmmon and vmnet" is failing with the below errors (in vmware logs) on
kernel-5*onRHEL 9:
2023-02-13T22:02:32.446Z In(05) localhost to be installed: vmmon status: 0
2023-02-13T22:02:32.446Z In(05) localhost to be installed: vmnet status: 0
2023-02-13T22:02:32.451Z In(05) localhost Obtaining info using the running kernel.
2023-02-13T22:02:32.452Z In(05) localhost Setting header path for 5.14.0-162.6.1.el9_1.x86_64 to "/lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/include".
2023-02-13T22:02:32.452Z In(05) localhost Validating path "/lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/include" for kernel release "5.14.0-162.6.1.el9_1.x86_64".
2023-02-13T22:02:32.452Z In(05) localhost Failed to find /lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/include/linux/version.h
2023-02-13T22:02:32.452Z In(05) localhost /lib/modules/5.14.0-162.6.1.el9_1.x86_64/build/include/linux/version.h not found, looking for generated/uapi/linux/version.h instead.
2023-02-13T22:02:32.452Z In(05) localhost using /usr/bin/gcc for preprocess check
Environment
- Red Hat Enterprise Linux 9.
- VMware Workstation.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.