VMware Server and kernel 2.6.33

Trying to recompile the VMware Server 2.0.2 on kernel 2.6.33 I came upon these two errors:

# uname -a
Linux Sauron 2.6.33 SMP Tue Mar 9 15:09:05 CET 2010 x86_64 AMD Opteron(tm) Processor 248 AuthenticAMD GNU/Linux

This is a Gentoo machine.

Error 1:

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.33).  Even if the module were to compile
successfully, it would not load into the running kernel.
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

This can be resolved by editing version.h (usually in /usr/src/linux/include/linux) and adding this line:

#define UTS_RELEASE "2.6.33"

Error 2:

The path “/usr/src/linux/include” is a kernel header file directory, but it does not contain the file “linux/autoconf.h” as expected.  This can happen if the kernel has never been built, or if you have invoked the “make mrproper” command in your kernel directory.  In any case, you may want to rebuild your kernel.
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]

As the latest kernel doesn’t seem to contain this file, I took the autoconf.h file from 2.6.22.2, and copied it to the correct place. This made VMware compile (until it errored on other stuff, which can be fixed using this script).

I’m fairly clueless what implications it can have to make these changes. So use at your own risk. 🙂


Posted by

in

,

Comments

7 responses to “VMware Server and kernel 2.6.33”

  1. Eduardo avatar

    Hi! I’ve found the autoconf.h in /usr/src/linux-2.6.33.1/include/generated/autoconf.h.

  2. yXeS avatar
    yXeS

    Thank you I try now….

  3. […] It seems it got installed but it now gives other errors similar to the situation described here : https://yeri.be/vmware-server-and-kernel-2-6-33 It looks like a kernel thing. I have a custom build kernel as: # uname -r 2.6.33.1 # ls /usr/src […]

  4. neketh avatar
    neketh

    YOU ARE A LEGEND ! Thanks bro…

  5. versiona avatar

    I have Ubuntu Server 11.04 Server Edition x64. To solve the problem I copied all files in
    /usr/srv/linux-headers-2.6.38-8-server/include/generated/.
    to
    /usr/srv/linux-headers-2.6.38-8-server/include/linux/

  6. more-cow-bell avatar
    more-cow-bell

    versiona,

    Thanks for the fix. I tried a number of different solutions and yours worked perfectly.

    Thanks!

  7. Paul O'Rorke avatar
    Paul O’Rorke

    Brilliant versiona,

    I had been looking everywwhere for this.

    Worked like a charm!

    Many thanks.

Leave a Reply…