LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-18-2006, 02:28 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
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
 
Old 11-18-2006, 02:44 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

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

Brian
 
Old 11-18-2006, 03:26 PM   #3
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
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
 
Old 11-18-2006, 04:23 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 11-18-2006, 07:43 PM   #5
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
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
 
Old 11-20-2006, 04:39 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 11-26-2006, 09:46 AM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
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
 
Old 02-25-2007, 06:29 PM   #8
cnsturgeon
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I select the kernel version when installing? davcefai Debian 3 01-02-2006 04:37 PM
installing vmware in Fedora (C1)- kernel module probs Guru3 Linux - Software 2 06-12-2005 11:38 AM
Kernel version not matched for VMware muneebs Linux - Software 1 02-01-2005 10:54 PM
Kernel error installing VMWare Workstation 4.0.5 SniperDevil Linux - General 0 06-23-2004 07:02 PM
problems installing kernel modules on new version mcgiv Linux - Newbie 1 09-04-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration