LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-11-2008, 12:20 PM   #1
xixux
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
VMware can't find kernel header on fedora 9


i have installed VMWare program on my fc 9. When tried to run VMWare workstation i got trouble is that vmware ask me to find where kernel header for version 2.6.26.5-45.fc9.i686 is.

I found kernel.h at /usr/include/linux. When i installed it, it didn't work.The window appeared confirm that c header matching with my version not found..

where can i find path of header of my kernel version?
 
Old 10-11-2008, 12:58 PM   #2
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
you can try to install kernel-devel first.
 
1 members found this post helpful.
Old 10-11-2008, 04:32 PM   #3
cyprinidae
Member
 
Registered: Oct 2008
Distribution: Fedora, CentOS, Crunchbang
Posts: 46

Rep: Reputation: 16
Code:
yum install kernel-headers
 
Old 10-12-2008, 05:04 AM   #4
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 31
I have exactly the same configuration Fedora 9 (kernel 2.6.26.5-45.fc9.i686) and VMware Workstation 6.0.5 build 109488 and it works correctly.

I use VMware Workstation to run Windows XP on my Fedora 9 box, basically I only need it for software packages I cannot run with Codeweavers Crossover Linux Professional.

Of course as cyprinidae says you need to install kernel-headers first, and if you on it check also if you have the C compiler also...
 
Old 10-12-2008, 07:02 AM   #5
xixux
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by WorldIsNotFair View Post
you can try to install kernel-devel first.
i tried your advice. And now, my VMware works properly.

thank you
 
Old 03-03-2009, 01:59 PM   #6
TheRon79
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
VMWare not finding the kernel header

Nevermind! Found what the problem was... The kernel-devel version was newer than my actual kernel... Updated my kernel and all is good now!


Hi,

I have just installed VMWare Workstation 6.5.1 on FC9 kernel 2.6.27.5-41.fc9.i686.

If I try to run VMWare workstation, I get the error that the C header file matching the kernel were not found.

I have tried to install kernel-devel and kernel-headers using yum like posted to thread found on this site, but it didn't seem to help.

I have tried also to link to the kernel found under /usr/include/linux, but that didn't work either.

So if someone has any idea what I can do to make this work, it would be very appreciated!

Thanks.

Last edited by TheRon79; 03-03-2009 at 02:36 PM. Reason: Found solution
 
Old 09-07-2010, 08:37 PM   #7
emersonivo
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Problem with C headers location

Hello everybody,
I have a problem to install the VMware Server (VMware-server-2.0.2-203138.x86_64.rpm) on "Fedora 13 Desktop Edition 64-bit".
I traied all tips I found, but nothing was OK.
Please look my linux configuration and the error messages:

(VMware installation)
[root@localhost BKP]# rpm -Uvh VMware-server-2.0.2-203138.x86_64.rpm
Preparing... ########################################### [100%]
1:VMware-server ########################################### [100%]

The installation of VMware Server 2.0.2 for Linux completed successfully.
Before running VMware Server for the first time, you need to configure it for your running kernel by invoking the following command: "/usr/bin/vmware-config.pl".

(Launching /usr/bin/vmware-config.pl)
[root@localhost BKP]# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines [FAILED]
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent [FAILED]
Stopping VMware services:
VMware Authentication Daemon [ OK ]
Virtual machine monitor [ OK ]

You must read and accept the End User License Agreement to continue.
Press enter to display it.

(After accept the End User License Agreement)...
None of the pre-built vmmon modules for VMware Server 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)? [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] /usr/src/kernels/2.6.34.6-47.fc13.x86_64/include

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.34.6-47.fc13.x86_64). 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]


(My system configuration)
[root@localhost Documents]# uname -a
Linux localhost 2.6.34.6-47.fc13.x86_64 #1 SMP Fri Aug 27 08:56:01 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
------------------------------------------------------------------------
[root@localhost Documents]# cat /proc/version
Linux version 2.6.34.6-47.fc13.x86_64 (mockbuild@x86-18.phx2.fedoraproject.org) (gcc version 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC) ) #1 SMP Fri Aug 27 08:56:01 UTC 2010
[root@localhost Documents]#
------------------------------------------------------------------------
[root@localhost BKP]# rpm -Uvh kernel-devel-2.6.33.3-85.fc13.x86_64.rpm
Preparing... ########################################### [100%]
package kernel-devel-2.6.34.6-47.fc13.x86_64 (which is newer than kernel-devel-2.6.33.3-85.fc13.x86_64) is already installed



Please anybody can help me to solve this problem?
I want and need install the VMware Server on my computer.
I'm begginer on Linux environment.
Thank you.
 
Old 12-22-2010, 03:22 AM   #8
SriniKlr
LQ Newbie
 
Registered: Dec 2010
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by xixux View Post
i tried your advice. And now, my VMware works properly.

thank you
Hi All,

I am facing the same problem. I have installed VMWare Workstation 7.1 on my Windows XP desktop and I am running the Fedora 14 as the Guest OS.

I am not able to install the VMWare tools. It asks for the Kernel header files. As mentioned in this thread I have installed kernel headers (yum install kernel-headers). Any hints please!!!

Following are the terminal output I get:

Before you can compile modules, you need to have the following installed...

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]

Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]
 
Old 12-22-2010, 09:27 PM   #9
confconf
LQ Newbie
 
Registered: Dec 2010
Posts: 16

Rep: Reputation: 0
Try this

Code:
su -
yum -y update
yum -y install gcc make kernel-headers kernel-devel
shutdown -r now
# wait some secs...
# login as root
/usr/bin/vmware-config-tools.pl
 
Old 12-23-2010, 01:57 AM   #10
SriniKlr
LQ Newbie
 
Registered: Dec 2010
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by confconf View Post
Try this

Code:
su -
yum -y update
yum -y install gcc make kernel-headers kernel-devel
shutdown -r now
# wait some secs...
# login as root
/usr/bin/vmware-config-tools.pl
Hi,

tried the above steps. Still Vmware tool installation asking for the Kernel header path.I have checked that I have source for the kernel in the following path: /usr/src/kernels/2.6.35.10-72.fc14.i686/include/linux

But Vmware tool is not accepting this kernel header files. One observation I have made is that my running kernel is different from the one mentioned above, is this causing the problem??

[srini@Srini ~]$ uname -r
2.6.35.6-45.fc14.i686
 
Old 12-23-2010, 06:42 AM   #11
confconf
LQ Newbie
 
Registered: Dec 2010
Posts: 16

Rep: Reputation: 0
Yes you must be using the same version. That's why I included steps to update the whole system (including the kernel) and install kernel-headers, and then reboot. Make sure you pick the latest kernel when you boot.
 
Old 12-24-2010, 04:44 AM   #12
SriniKlr
LQ Newbie
 
Registered: Dec 2010
Posts: 13

Rep: Reputation: 0
Quote:
Originally Posted by confconf View Post
Yes you must be using the same version. That's why I included steps to update the whole system (including the kernel) and install kernel-headers, and then reboot. Make sure you pick the latest kernel when you boot.
It's working!!! After updating the whole system VMware tool got the kernel headers.

Thanks a lot confconf for the great support
 
Old 02-23-2011, 01:07 PM   #13
sadashiv.linux
LQ Newbie
 
Registered: May 2005
Posts: 13

Rep: Reputation: 1
I'm facing following error while installing Vmware-Server-2.0.2 on Fedora Core 14
I tried all solution mentioned above, still no luck.
Can anyone help?


================================================================================
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.35.6-45.fc14.i686/include/

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35.6-45.fc14.i686). Even if the module were
to compile successfully, it would not load into the running kernel.
==================================================================================

Regards,
Sadashiv M Kulthe
 
1 members found this post helpful.
Old 02-24-2011, 03:40 AM   #14
confconf
LQ Newbie
 
Registered: Dec 2010
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by sadashiv.linux View Post
I'm facing following error while installing Vmware-Server-2.0.2 on Fedora Core 14
I tried all solution mentioned above, still no luck.
Can anyone help?


================================================================================
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.35.6-45.fc14.i686/include/

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35.6-45.fc14.i686). Even if the module were
to compile successfully, it would not load into the running kernel.
==================================================================================

Regards,
Sadashiv M Kulthe

Did you even read this thread?
 
Old 03-18-2011, 06:10 PM   #15
bustoutfunk
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
Confirmed

Running the updates did it for me!
 
  


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
vmware server can't find C header fjiles linuxlimbo Suse/Novell 3 07-28-2007 04:48 PM
VmWare install, header files, fedora core 4 jaa1180 Linux - Software 4 03-03-2006 09:44 PM
vmware looking for c header files for kernel zuessh Debian 4 07-23-2005 08:12 AM
Cannot find C Header files in SuSE 9.2 64-bit when needed for installing VMware W/s matt010wjh Linux - Software 1 12-26-2004 09:25 PM
vmware error, cant find c header files artofluke Slackware 9 09-02-2003 07:35 AM


All times are GMT -5. The time now is 11:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration