LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   VMware can't find kernel header on fedora 9 (http://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!


All times are GMT -5. The time now is 05:52 AM.