Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After install and running the vm-ware config, the config needs my kernel headers to compile some modules, ok, so I'll give it them, but it just won't work.

It asks for the path of the directory of C header files that match my running kernel.

If I

uname -r

I get


So I tell it the source path is


and it returns

"The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.35-22-generic-pae).

..I'm confused? can anyone offer suggestions please?

I installed hte kernel source andh eaders myself using

sudo apt-get install linux-headers-$(uname -r)
share|improve this question
Ok, I found a solution that is working. Aparently this is to do with the UTS_RELEASE "define" not being found in the version.h, but I couldn't get it to compile with this. Instead I simply installed open-vm-tools from the ubuntu universe repo and it works fine now. Problem solved (in an alternative sort of way). – Hamid Oct 25 '10 at 10:37
But below you say you did something with open-vm-source. Can you give us a step-by-step? It's not clear to me how you fixed this. – Dominic Sayers Mar 28 '11 at 20:39
up vote 1 down vote accepted

Try installing open-vm-source and install the kernel modules with DKMS.

share|improve this answer
As mentioned above I found a solution, I tried to build the .debs from the open-vm-source and it installed correctly (as far as I could see) but it did not function ideally, so I removed them and installed from the software-center the opensource version. – Hamid Oct 25 '10 at 11:13

All you need to do is to add the line

#define UTS_RELEASE "<your kernel version, e.g 2.6.35-25-server>"

to /usr/src/linux-headers-<your kernel version>/include/linux/version.h and copy the file /usr/src/linux-headers-<your kernel version>/include/generated/autoconf.h to /usr/src/linux-headers-<your kernel version>/include/linux/.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.