Unable to launch vmware workstation because of failure in the kernel module compilation.

Solution Unverified - Updated -

Issue

  • Launch of vmware workstation failed 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* on RHEL 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content