LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Installing Vmware 5.0 with kernel version 2.6.18 (https://www.linuxquestions.org/questions/linux-desktop-74/installing-vmware-5-0-with-kernel-version-2-6-18-a-502830/)

djgerbavore 11-18-2006 02:28 PM

Installing Vmware 5.0 with kernel version 2.6.18
 
Hello,

I'm justing to configure and setup vmware 5.0 on my linux box, but I'm running into problems. I was wondering if anyone got vmware 5.0 running with a 2.6.18 kernel. Currently the error i'm getting is this:
Code:

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.18/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config0/vmmon-only/include/vmware.h:24,
                from /tmp/vmware-config0/vmmon-only/linux/driver.c:44:
/tmp/vmware-config0/vmmon-only/include/vm_basic_defs.h:208:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/include/vcpuset.h:56,
                from /tmp/vmware-config0/vmmon-only/include/modulecall.h:23,
                from /tmp/vmware-config0/vmmon-only/common/vmx86.h:18,
                from /tmp/vmware-config0/vmmon-only/linux/driver.h:15,
                from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/vm_atomic.h:54:5: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
                from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmon-only/linux/driver.h:19,
                from /tmp/vmware-config0/vmmon-only/linux/driver.c:45:
/tmp/vmware-config0/vmmon-only/include/compat_wait.h:60: error: conflicting types for `poll_initwait'
include/linux/poll.h:62: error: previous declaration of `poll_initwait'
In file included from /tmp/vmware-config0/vmmon-only/include/vm_asm.h:23,
                from /tmp/vmware-config0/vmmon-only/linux/driver.c:48:
/tmp/vmware-config0/vmmon-only/include/vm_basic_asm.h:48:5: warning: "_MSC_VER" is not defined
/tmp/vmware-config0/vmmon-only/linux/driver.c:138: warning: initialization from incompatible pointer type
/tmp/vmware-config0/vmmon-only/linux/driver.c:142: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

Any ideas? My next step is to try a older kernel. a year or so ago I got vmware 5.0 running on a 2.6.11 kernel. I just wanted some feedback before I jump to an older kernel.

Thanks,

djgerbavor3

Brian1 11-18-2006 02:44 PM

Not installed 2.6.18+ yet. But have you tried the vmware-any-any-tool from here. http://ftp.cvut.cz/vmware/

Brian

djgerbavore 11-18-2006 03:26 PM

Brian1 you rock it worked, was this your script you wrote?
One thing to note, inorder for vmware to realize I had a 2.6.18 kernel header sources; I had to modify the version.h file in include/linux/ directory:

at the top I had to add this line
Code:

#define UTS_RELEASE "2.6.18"
I don't know if you had to do this for your 2.6.17x kernels.

Have fun! Also thanks again, I can use the new 2.6.18 kernel and vmware. life is good

djgerbavor3

Brian1 11-18-2006 04:23 PM

I am guessing you are using precompiled kernels. May be standard for Slackware. I compile my own from source and just been to busy to update the 3 linux machines I have. Luckily for me 2 machines are identical and I just copy over the needed info from one to the other. Notebook is a bit picky. Have to modify a few items for my hardware. Just been busy updating firefox and extensions. Hacking a few to work under firefox 2.0.

Glad to see you have it working.
Brian

djgerbavore 11-18-2006 07:43 PM

slackware doesn't come with precompiled kernels either, i'm just thinking the 2.6.18 version.h file changed from previous versions, and was wondering if what your 2.6.17x kernels version.h file looked like. Anyways thanks for the tip.

djgerbavor3

Brian1 11-20-2006 04:39 PM

My 2.6.17.13 is this
#define UTS_RELEASE "2.6.17.13"
#define LINUX_VERSION_CODE 132625
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

You are right. I have the 2.6.18 and it is missing the line. Then I checked 2.6.18.2 and the file does not exist. Same applies to the 2.6.19-rc2. Very strange. Will make a note of this for future updates with vmware and kernels 2.6.18 or greater.

Thanks for the pointer there.
Brian

Brian1 11-26-2006 09:46 AM

Well I installed the 2.6.18.3 kernel and did the vmware-any-any-tool install for vmware 5.0. It went fine even though /usr/src/linux-2.6.18.3/include/linux/version.h does not exist. So the file does not seem to be required. I did an old module an it uses the file to build with. It could not complete because not present.

Brian

cnsturgeon 02-25-2007 06:29 PM

hi guys,

I guess you may need this, to download this package vmware-any-any-updateXX.tar.gz from http : // ftp.cvut.cz /vmware /

It works for me.

THanks. Cheers,

Cnsturgeon


All times are GMT -5. The time now is 04:37 PM.