LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2003, 10:38 AM   #1
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
VMWare being truly "special" and not installing. HELP!


VMWare is asking for my kernel source headers. I made sure I installed the kernel sources that came with my distribution (SUSE) since I have NOT compiled my own kernel. See the output below. The two paths entered are THE ONLY path where i have any kernel source. Can someone please help?

Thanx beforehand

Code:
Fallasteeni:~ # vmware-config.pl
Making sure VMware Workstation's services are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done

Trying to find a suitable vmmon module for your running kernel.

None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [no] yes

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon).  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] /usr/src/linux-2.4.20.SuSE/include

The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon).  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] /lib/modules/2.4.20-4GB-athlon/build/include

The directory of kernel headers (version 2.4.20-4GB) does not match your running
kernel (version 2.4.20-4GB-athlon).  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]

Last edited by shassouneh; 06-10-2003 at 10:40 AM.
 
Old 06-11-2003, 06:24 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
You have kernel version 2.4.20-4GB-athlon running, so vmware, being picky, wants to find the kernel sources for only that version.

If you want to use the other kernel version, boot into that first then run the vmware install again.

You should have a softlink in /usr/src pointing to /usr/src/linux-2.4.20-4GB-athlon.
Inside that directory will be the links to /build/include

When vmware spits this back..."What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]"
it usually means it couldn't find the /usr/src/linux-2.4.20-4GB-athlon directory or the softlink.

Make sure they exist or make a softlink called /usr/src/linux pointing to the 2.4.20-4GB-athlon source files.
 
Old 06-14-2003, 09:02 PM   #3
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
nope

Please read above carefully. The ONLY version of the kernel I have is the one that came by default with SuSE. I installed that kernel's sources form the SuSE CDs using YaST. As I mentioned earlier, I provided vmware's setup wit the EXACT location to where source headrers are available and it still complained.

Thanx for the reply though.
 
Old 06-15-2003, 11:44 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Hmmm

Last edited by peter_robb; 06-15-2003 at 11:47 AM.
 
Old 06-29-2003, 11:13 AM   #5
BeXplosive
LQ Newbie
 
Registered: Jun 2003
Location: Dallas, TX
Distribution: Redhat 9
Posts: 9

Rep: Reputation: 0
I finally got the Vmware "C Header File" problem fixed. So everybody out there having the same problem, listen up. This was in RH9, by the way.

in /usr/src if there is not a /linux.2.4 or /linux.2.4.20-8 or something of that nature, then you MUST install the kernel development tools. This will install the kernel-source correctly. I tried just installing the kernel-source rpm, but it didnt work.

for you newbies, you can find the "add-remove applications" under system settings and run that. it's a nice graphical tool. scroll down and check the kernel development. fyi: you will need disk 2 and 3 if you are in RH9.

after you install that, head back to the /usr/src and you will see you a couple new folders. head into the /usr/src/linux.2.4.20-8/include and you will see all the good stuff that vmware is looking for, like the asm, net, and linux.

so when it asks, where are the c header files? [/usr/src/linux/include]

obviously that is not the right place, just type in the path correctly, and you will be rockin! hope that helps!
 
Old 06-29-2003, 08:02 PM   #6
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
I will try it as soon as I boot back. Thanx for the tip.
 
Old 07-16-2003, 03:09 PM   #7
jluckett
LQ Newbie
 
Registered: Jul 2003
Location: South Bend, IN, USA
Posts: 3

Rep: Reputation: 0
BeXplosive,

While I definitely appreciate the help, unfortunately I'm not sure how that applies to the problem shassouneh and I are experiencing? To give you the benefit of the doubt - as all help is appreciated and I can almost guarantee that you know far more about this than I do - I went ahead and tried following your suggestion.

Here is what I ran into:

Quote:
in /usr/src if there is not a /linux.2.4 or /linux.2.4.20-8 or something of that nature, then you MUST install the kernel development tools. This will install the kernel-source correctly. I tried just installing the kernel-source rpm, but it didnt work.
I already have the "normal" SuSE kernel's source in /usr/src. The actual path to it (on my system is) /usr/src/linux-2.4.20.SuSE. This, however, does me no good as it's not the compiled kernel I'm currently using (according to VMware, at least).

Quote:
for you newbies, you can find the "add-remove applications" under system settings and run that. it's a nice graphical tool. scroll down and check the kernel development. fyi: you will need disk 2 and 3 if you are in RH9.
This doesn't appear to apply in my and shassouneh's situations. Neither he nor I are using Red Hat and I'm not quite sure where to look in YAST for "kernel development". Using YAST's "Install and Remove Software" tool, the installed almost everything I could find regarding development but that didn't seem to be what I was hoping to accomplish and VMware had the same problem when it came to finding the correct source code after.

So, to sum all of this up, does anyone know where I can find SuSE's source code to the kernel with the Athlon optimizations? I found a host of other kernel sources to download but none were the ones I'm using. If I can download the source to the kernel with the Athlon customizations, this will solve our problem (I think, at least).
 
Old 07-16-2003, 03:33 PM   #8
jluckett
LQ Newbie
 
Registered: Jul 2003
Location: South Bend, IN, USA
Posts: 3

Rep: Reputation: 0
I can't say I actually recommend this... but... it seemed to resolve the problem and VMware did, in fact, start and it appeared to operate normally.

What I did was really simple and, possibly, dumb but it worked...

I went to the following path and found the "version.h" file:
/usr/src/linux-2.4.20.SuSE/include/linux

My file read as...

Code:
#define UTS_RELEASE "2.4.20-4GB"
#define LINUX_VERSION_CODE 132116
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
The first line is the key.

Change...

Code:
#define UTS_RELEASE "2.4.20-4GB"
to...

Code:
#define UTS_RELEASE "2.4.20-4GB-athlon"
Then, save the file and allow VMware to use the default path for the source code and it should work as it did on mine.

DISCLAIMER:

I have not yet had the chance to actually install anything inside a VM yet. However, the vmware-config.pl script did run successfully so, if you're first to try it, please post the results for others to know?

If my suggestion does not ultimately resolve our problems or causes another and we have to return to try something else, my question regarding where to download the "2.4.20-4GB-athlon" kernel source still stands.

Last edited by jluckett; 07-16-2003 at 03:49 PM.
 
Old 07-17-2003, 04:43 PM   #9
dirth
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
It worked fer me!

Thank you bexplosive

Worked for me... Vmware config defaulted to the right dir...

cheers
 
  


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
Anyone else receiving "special software discounts" emails? harken General 14 06-15-2005 01:52 AM
cdrom not recogonized/no hda/"special device" not found etc. thechao Debian 1 01-23-2005 05:42 PM
"No Hard Disk Drives detected" error when installing Woody as guest OS in VMware Thomas Anderson Debian 1 01-25-2004 05:41 AM
need help, on how to access quickly to special characters like "ñ" or "á"? Motaro Linux - Newbie 1 12-31-2003 12:53 PM
Ximian crashes when I enter "special chars" into message borbjo Linux - Software 0 01-28-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 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