LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   VMware can't find kernel header on fedora 9 (https://www.linuxquestions.org/questions/fedora-35/vmware-cant-find-kernel-header-on-fedora-9-a-675701/)

xixux 10-11-2008 12:20 PM

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?

WorldIsNotFair 10-11-2008 12:58 PM

you can try to install kernel-devel first.

cyprinidae 10-11-2008 04:32 PM

Code:

yum install kernel-headers

Dummy-in-Linux 10-12-2008 05:04 AM

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...

xixux 10-12-2008 07:02 AM

Quote:

Originally Posted by WorldIsNotFair (Post 3307051)
you can try to install kernel-devel first.

i tried your advice. And now, my VMware works properly.

thank you

TheRon79 03-03-2009 01:59 PM

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.

emersonivo 09-07-2010 08:37 PM

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.

SriniKlr 12-22-2010 03:22 AM

Quote:

Originally Posted by xixux (Post 3307587)
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]

confconf 12-22-2010 09:27 PM

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


SriniKlr 12-23-2010 01:57 AM

Quote:

Originally Posted by confconf (Post 4200729)
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

confconf 12-23-2010 06:42 AM

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.

SriniKlr 12-24-2010 04:44 AM

Quote:

Originally Posted by confconf (Post 4201026)
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

sadashiv.linux 02-23-2011 01:07 PM

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

confconf 02-24-2011 03:40 AM

Quote:

Originally Posted by sadashiv.linux (Post 4268801)
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?

bustoutfunk 03-18-2011 06:10 PM

Confirmed
 
Running the updates did it for me!

John VV 03-19-2011 01:15 AM

Quote:

Running the updates did it for me!
noi it did not
fedora 9 has been DEAD for years. There have been and are NO updates for fedora 9

confconf 03-19-2011 06:23 AM

Quote:

Originally Posted by John VV (Post 4295795)
noi it did not
fedora 9 has been DEAD for years. There have been and are NO updates for fedora 9

Really? With your massive IQ level, it never occurred to you that he may be using Fedora 13 or 14?

John VV 03-19-2011 03:32 PM

Quote:

Really? With your massive IQ level, it never occurred to you that he may be using Fedora 13 or 14?
for fedora 13 nd 14
START A THREAD that STATES you are using fedora 13 or fedora 14
I am NOT a mind reader and i DO NOT have a Chrystal Ball
and "bustoutfunk" the post above mind had the "run updates"

confconf 03-20-2011 02:49 PM

Quote:

Originally Posted by John VV (Post 4296365)
for fedora 13 nd 14
START A THREAD that STATES you are using fedora 13 or fedora 14
I am NOT a mind reader and i DO NOT have a Chrystal Ball
and "bustoutfunk" the post above mind had the "run updates"

Creating a new thread when one already exists, and already has the solution, is stupid. No, I take it back; it's beyond stupid. If you can't even figure out that the guy was not using Fedora 9, then maybe trying to help people with problems isn't your thing. It requires some thinking.

catcalls 04-17-2011 03:43 PM

su -c '/usr/bin/vmware-modconfig --icon=vmware-player gcc=/usr/bin/gcc headers=/lib/modules/2.6.35.12-88.fc14.x86_64/build/include/ --appname=VMware'

I had a internal kernel conflict whereby my kernel was lower than the headers. I had to press ESC on boot up, select the right kernel for the appropriate headers, and then issue the above command since VMWare Player could not do this in Fedora 14.

So, basically, this is where the Fedora 14 headers are located for present date as well as the command to issue.

Don't forget to follow all the other instructions in this thread first tho before running this command. AND ~ make sure your kernel (uname -r) matches your header versions.

LolaAmor 05-18-2011 06:55 AM

Hi All,

I don't know I should post this here or not.

I am facing the same Issue in FC-14 -64 bit, getting C directory error while trying to rebuild vmmon module by running the perl /usr/bin/vmware-config.pl.

As suggested above I have done
1) yum install gcc gcc-c++ make automake kernel-devel
2) yum update
3) Rebooted the Server (The Host Machine)

Now I can see that

root@vmware ~]# uname -a
Linux vmware 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3 13:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@vmware ~]# rpm -qa kernel*
kernel-headers-2.6.35.13-91.fc14.x86_64
kernel-2.6.35.13-91.fc14.x86_64
kernel-devel-2.6.35.13-91.fc14.x86_64
kernel-2.6.35.6-45.fc14.x86_64
kernel-devel-2.6.35.6-45.fc14.x86_64

So, I have same versions.


On running the config file as a root uses am still getting the same error....

[root@vmware ~]# /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 ]

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] 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.35.13-91.fc14.x86_64/include/
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35.13-91.fc14.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]

_____________________________
VMware Server 2.0.2 build-203138
_____________________________


I dont want to upgrade my VMware server.

What to do ? Plz help.

channukya 09-01-2011 08:34 AM

dear all

I have installed vmware in fedora 14 and done all the previous posts but there is no use again it is asking for the kernel headers 2.6.35.6-45.fc14.x8664, my kernel version is same.
please can any one help me in this regard it will be greatfull for mee

John VV 09-01-2011 04:01 PM

channukya
this is not a fedora9 question
please start a new thread on fedora 14 and VMware
In it include what you have done .Doing what was recommended for fedora 9 will not work for 14
Did you install the devel for THE CORRECT running kernel ?
Is vmware using the CORRECT and CURRENT kernel ?

also keep in mind that fedora 14 will hit End Of Life very soon
It is time to Upgrade to fedora 15 or fedora 16 ( soon to be out )

wiren 01-15-2012 01:09 PM

>> Simple solution <<
 
>> Simple solution
Solution for most of you:

As root:
(gcc-c++ and automake could not be needed, but will few megabytes hurt?)

yum install gcc gcc-c++ make automake kernel-headers
yum update


And depending on kernel:

yum install kernel-devel
yum install kernel-PAE-devel
(or 64bit equivalent)


Then:
1) reboot
2) build vmware tools (as root run "/usr/bin/vmware-config-tools.pl", or other path to the file)
3) reboot
4) Enjoy ;)


If anything, ask.

Regards, Wiren

puneetv 04-07-2012 06:31 AM

hi,



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


how can i use this command in redhat linux 9.

knudfl 04-07-2012 09:23 AM

Post #25, @ puneetv :

Please do not use another members thread to ask an off topic question.
Start your own thread instead :
http://www.linuxquestions.org/questions/linux-newbie-8/ > 'New Thread'.


And : There is no 'yum' in the ancient Redhat 9.
Redhat 9 : Released year 2002. Obsoleted 2004.

The latest free version of "Redhat" Enterprise OS : CentOS 6 / Scientific SL6.
The latest Redhat Desktop OS : Fedora 16.

.

xyz-xieyan 12-29-2013 07:47 PM

Actually you should install exactally the same version kernel-header and kernel-devel on your linux as vmware told. What's more, the path of kernel header is in /lib/modules/'version'/build/include


All times are GMT -5. The time now is 08:00 PM.