What is the path to the kernel headers so I can install vmware?


Edit: Remember to read the comments of this question as other users provided more up-to-date and accurate solutions.

Okay so what I did was, when it said

The path "" is not a valid path to the 3.8.0-19-generic kernel headers. Would you like to cange it?

I typed in 'no', so then it stopped the install. I then wrote the


command again and it automatically, I think skipped the steps, and it said

The configuration of vmware tools 9.2.3 build-1031360 for linux for this running kernel completed successfully. you must restart your X session before any mouse or graphics cahnges can take effect. you can now run vmware tools by invoking "/usr/bin/vmware-toolbox-cmd" from the command line. to enable X features (e.g., guest resolution fit, drag and drop, and file and text copy/pase), you will need to do one (or more) of the following: 1. manually start /usr/bin/vmware-user 2. log out and lokg back into your desktop sessionl and, 3....
0 0

UPDATE (2015-05-13): Confirming that the following approach works for Lubuntu versions 12.10, 14.04 and 14.10 and Linux Mint 15 and 17.

Today I wanted to install VMware tools in a Linux Mint 15 and in a Lubuntu virtual machine. I followed the standard procedure as it is described in this VMWare knowledge base article. After setting gcc path I received the following error:

run vmware-config-tools.pl, got same error message:**Searching for a valid kernel header path... The path "" is not valid. Would you like to change it?

After an hour of searching and trying numerous solutions I found the solution
in this AskUbuntu answer.So before executing sudo ./vmware-install.pl follow these steps:

Download linux headers using the command Create a symbolic link to version.h file
The vmware tools installer is looking for the version.h file in under [kernelsource path]/include/linux/version.h, it’s not there. The location of version.h is [kernelsource...
0 0

I have my VMware Player (v 5.0.0 build-812388) all up and running Ubuntu (12.10) from my Windows (Win 7) machine.

When I launch sudo vmware-config-tools.pl, it tries to search for kernel

Searching for a valid kernel header path... The path "" is not a valid path to the 3.5.0-17-generic kernel headers. Would you like to change it? [yes] Enter the path to the kernel header files for the 3.5.0-17-generic kernel?

I entered /usr/src/linux-headers-3.5.0-17-generic.

The path "/usr/src/linux-headers-3.5.0-17-generic" is not a valid path to the 3.5.0-17-generic kernel headers.

Due to this it doesn't compile modules. So unable to mount HGFS (shared folder) filesystems.

Any ideas how I can fix...

0 0
How to use Ubuntu Kernel Headers

location: ubuntuforums.com - date: August 28, 2012
I'm writng a list program using kernel header list.h but facing issues. Can anyone please provide me a tutorial to start it ? I'm getting below error: error: list.h: No such file or directory

Kernel upgrade makes vmware tools fail

location: ubuntuforums.com - date: April 23, 2009
Hi all, I am having the following issue with my Intrepid VM in Fusion, and was hoping one of you guys could help. I upgraded my kernel. That was a bad idea: now vmware-tools does not recognize my kernel anymore. Code: Stopping VMware Tools services in the virtual machine: Guest operating system daemon: done Virtual Printing daemon: done VM communication interface socket family: done None of the pre-built vmmemctl modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmmemctl module for...

0 0
Jul 11, 2010

I've installed F13. Installer has set:


Installation of VMware Workstation was ok, but at first launch it ask me for path of
kernel-headers- Why I have different versions of kernel and kernel-headers? How can I make working VMware? Installation of kernel-headers from package-manager seems impossible.What is the path to specify kernel-headers for VMware?

Fedora :: VMware Can't Find Kernel Headers / Solve It? OpenSUSE :: VMWare Installation - Kernel Headers For Version 2.6.34-12-desktop Were Not Found Fedora :: Install Vmware Workstation And Keep Getting An Error About Kernel Headers Missing Slackware :: Install Vmware - Where Are The Kernel Headers ? CentOS 5 :: Vmware-tools Saying Kernel Headers Don't Match / Why Is So? CentOS 5 :: Kernel Headers Error With VMWare Player And Workstation? Fedora :: C Headers For Vmware-tools On Ws7? Fedora...
0 0

back when i get Fedora 22 with the 4.2 kernel ( I'm not sure) and I installed VMWare Workstation 12.0.1 I had the same problem. What I did was to update the kernel and problem solve. Then when I've got f23 and I installed vmw it just never open the GUI. Weird because it never show me a problem, but when I tried to initiate from the terminal that's when i get the error. So I downloaded an script and problem solve.

This is the script.


if [ "x$(id -u)" != "x0" ]; then echo "(**) Run this tool as root!"; exit 1 fi

KVER=$(uname -r|grep fc23) if [ "x${KVER}" = "x" ];then echo "(**) Fedora 23 not detected, Exit!" exit 1 fi

if [ -f /usr/lib/vmware/lib/libvmwareui.so/libvmwareui.so ]; then echo "(II) /usr/lib/vmware/lib/libvmwareui.so/libvmwareui.so present, continuing..." else echo "(**) VMWare Workstation not detected, exit!"; exit 1 fi

if [ -f /etc/vmware/bootstrap ]; then grep -q VMWARE_USE_SHIPPED_LIBS...

0 0


I did this:

cd /lib/modules/3.8.0-19-generic/build/include/linux

ln -s ../generated/uapi/linux/version.h .

It seems to have solved the above issue, but gave other errors, please see output for further help:

A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed. Continuing this install will
first uninstall the currently installed version. Do you wish to continue?
(yes/no) [yes]

Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

vmware-tools stop/waiting
This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to
remove it. Somebody else apparently did it already.


0 0


Skip to questions, Wiki by user nathan-osman

The Linux kernel is a monolithic kernel originally developed by Linus Torvalds who still directs its development to this day. The latest kernel can be downloaded from kernel.org

For more details, see the documentation maintained by the Ubuntu Kernel Team.


Q: Does Ubuntu support USB 3.0?

Tags: kernel (Next Q), usb (Next Q)

I have a Western Digital My Book 3.0 - 1 TB USB 3.0 Desktop External Hard Drive, and I wanted to know if it would work on Ubuntu 10.10 Maverick Meerkat.

Tags: kernel (Next Q), usb (Next Q)

User: sudobash

Answer by sid

Yes, Ubuntu supports USB 3.0.

Linux started supporting USB 3.0 in the September 2009 release of the 2.6.31 kernel, and Ubuntu 9.10 Karmic Koala was the first version of Ubuntu to support USB 3.0.

In Ubuntu releases older than Ubuntu 11.04 Natty Narwhal, there is a bug in the XHCI (USB 3.0) kernel...

0 0

If you encountered the following error when trying to install VMware tools on Kali operating system, you may be facing a corruption in your kernel headers.

1.If you are at the following prompt, continue to step 2

The path “” is not a valid path to the 3.7-trunk-amd64 kernel headers. Would you like to change it? [yes]

Otherwise do not enter any path followed by the enter or return key on the following prompt

Enter the path to the kernel header files for the 3.7-trunk-amd64 kernel?

2. Enter “no” without the quotations and press enter

This will result in the following output

WARNING: This program cannot compile any modules for the following reason(s)... - This program could not find a valid path to the kernel headers of the running kernel. Please ensure that the header files for the running kernel are installed on this system. [ Press Enter key to continue ]

Press enter anyways and continue the installation. Once you are back at the prompt,...

0 0

Originally Posted by


I checked and found on Yast Software Management that kernel-desktop-devel is installed; I think so anyway. I'm new with openSUSE so new with Yast as well, but I think the "store" icon next to a package means that package is installed... right?

What do you mean with "store" icon?
If it is installed there should be a checkmark left to the package name.
See also the Help menu for an explanation of all symbols.

And as I said, its version must match the version of the running kernel.
As you seem to run kernel-desktop-3.7.10-1.1 according to the error message, check if the directory "/usr/src/linux-3.7.10-1.1-obj" exists.

And/or look at the output of "rpm -q kernel-desktop-devel". That should list "kernel-desktop-devel-3.7.10-1.1.1.i586" or "kernel-desktop-devel-3.7.10-1.1.1.x86_64" respectively.

Still I don't have any idea what path to use for the kernel headers.

Well, I never installed the guest tools...
0 0

Host OS: Win7

Guest OS: CentOS7

Installed open-vm which enabled cut-and-pasting files into/out of the VM, but drag/drop and shared folders didn't work (I've since learned that drag/drop and shared folders are connected via both needing the compiled vmhgfs module.) So now I'm giving the VMWare distributed vmware-tools a try, but I'm running into a problem.

Vmware-tools wants to build a module. During the configure/install process, It prints:

The path "" is not a valid path to the 3.10.0-123.13.2.el7.x86_64 kernel headers.

Well, uname -r is 3.10.0-123.13.2.el7.x86_64, and I have the following packages installed:


So I have the headers, the devel package, the tools, and the tools-libs. And they're all the right version. I should be good, right? Wrong. Here...

0 0

During the vmware tools instalation on a CentOS 7 MV (running on ESXi 5.5, tools version VMwareTools-8.6.5-621624) I have the next problem:

Searching for a valid kernel header path... The path "" is not a valid path to the 3.10.0-327.4.5.el7.x86_64 kernel headers. Would you like to change it? [yes]

I know that this problems is common. Normaly I solve it executing:

yum install kernel-headers yum install kernel-devel export kernel_headers=`ls -hd /usr/src/kernels/3*` sudo ln -s ${kernel_headers}/include/generated/uapi/linux/version.h ${kernel_headers}/include/linux/version.h

But this time, the error persist. The target MV is a critical mail server, and I can't reboot it. Any ideas?

Thank you very...

0 0


I installed the VMware bundle on my Ubuntu 11.04 successfully but when I open it it gives me this window

and I don't know the path to this C headers.


cd /lib/modules/$(uname -r)/build/include/linux sudo ln -s ../generated/utsrelease.h sudo ln -s ../generated/autoconf.h sudo ln -s ../generated/uapi/linux/version.h

After adding the symlink, the path is /usr/src/linux-headers-$(uname -r)/include (Thanks @Kariem!)


Below commands are very helpful for you:

Step 1 : Ctrl + Alt + T

Step 2 : sudo apt-get install linux-headers-$(uname -r)

Step 3 : The path to the kernel headers is then /usr/src/linux-headers-$(uname -r)/include


Before installing Vmware Workstation you need to install build-essential and linux headers

sudo apt-get install build-essential linux-headers-$(uname -r)

and then

0 0