Fedora Linux Support Community & Resources Center
  #1  
Old 27th May 2011, 03:07 AM
rhoaste Offline
Registered User
 
Join Date: Jul 2009
Posts: 9
windows_7firefox
Question VMWare Tools Installation - Kernel header files path not valid.

Hi,

I recently installed Fedora 15 under VMware Workstation V7.1.4. I'm now experiencing problems installing VMware tools.

I unpacked the VMware Tools, and then...

Code:
yum install kernel-devel kernel-headers gcc make
reboot
./vmware-install.pl
...then taking all defaults from the script. When I get to the section on entering the kernel header path, this happens:

Code:
Searching for a valid kernel header path...
The path "" is not valid.
Would you like to change it? [yes]

What is the location of the directory of C header files that match your running kernel?
...and I dont seem to be able to provide a valid directory for the kernel headers at this point.

The system does not seem to have detected the kernel header path, even though I have installed the kernel-headers package.

I've tried: /lib/modules/2.6.38.6-27.fc15.i686.PAE/build/include
and also: /usr/src/kernels/2.6.38.6-27.fc15.i686.PAE/include
without success.

I would be grateful for some help getting my vmware tools installed please.

Regards.
Reply With Quote
  #2  
Old 27th May 2011, 07:31 AM
mfinmun Offline
Registered User
 
Join Date: May 2011
Posts: 3
windows_7ie
Re: VMWare Tools Installation - Kernel header files path not valid.

Hi,

I've got the same problem on Fedora 15 32Bit. 64Bit seems to be working.

When I try uname I got
Code:
uname -r
2.6.38.6-27.fc15.i686.PAE
When I try find / -name headers I got
Code:
find / -name headers
/usr/src/kernels/2.6.38.6-27.fc15.i686/include/config/headers
Manually entering this path doesn't help.

When I look into this directory there is only one empty file check.h.
I've done yum update yesterday with 96 updates.
This morning I've done yum update again with 16 updates.



Maybe we need some days until it's working.

Regards Sebastian
Reply With Quote
  #3  
Old 27th May 2011, 01:42 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,481
linuxopera
Re: VMWare Tools Installation - Kernel header files path not valid.

If I remember correctly, it's a vmware issue. There's a line you will have to change and I can't find the link. This is assuming your kernel-devel package matches your running kernel.

If kernel and kernel-devel match, and you have the basic tools, gcc, make, and so on, then it's the more obscure problem.

Extract the tarball from the mounted vmware tools and edit vmware-install.pl, which I think gets placed in /usr/bin. Look for he line that's something like this
Code:
  if (-e $answer . '/generated/utsrelease.h') {
      $uts_headers .= "#include <./generated/utsrelease.h> \n";
Around line 2006
The line will be slightly different, change it to read what I have above.

For reference

http://resalxh.wordpress.com/2010/06...-on-fedora-13/


Now when running vmware-config.pl the correct path is found and you no longer have to edit version.h and/or to look for the correct path. Thank you Mattias!
Reply With Quote
  #4  
Old 27th May 2011, 03:35 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
linuxfedorafirefox
Re: VMWare Tools Installation - Kernel header files path not valid.

If you are running a PAE kernel you must install the kernel-PAE-devel package instead of the regular kernel-devel.
Reply With Quote
  #5  
Old 27th May 2011, 03:44 PM
yuwanglingdi Offline
Registered User
 
Join Date: May 2011
Posts: 5
windows_7ie
Re: VMWare Tools Installation - Kernel header files path not valid.

I'm from China,and I'm a stranger to fedora.unfortunately,I got the same problem with you guys,so,I'm looking to the solutions.
Reply With Quote
  #6  
Old 29th May 2011, 01:14 PM
mfinmun Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxfirefox
Thumbs up Re: VMWare Tools Installation - Kernel header files path not valid.

Hi smr54,
hi markkuk,

thank you for your help

@sm54
That seemed to be working.

@markkuk
I've installed F15 using the default settings. I've specified 1GB RAM for the VM. So I don't understand why an PAE kernel is installed.
Next of all I just used the normal yum, so I think the correspending headers should be installed.
Do you know some special actions required?

Thanks

Sebastian
Reply With Quote
  #7  
Old 29th May 2011, 03:01 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
windows_xp_2003firefox
Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by mfinmun View Post
@markkuk
I've installed F15 using the default settings. I've specified 1GB RAM for the VM. So I don't understand why an PAE kernel is installed.
Starting with Fedora 11 PAE kernel is installed by default if the CPU supports it: http://docs.fedoraproject.org/en-US/...ics_for_Fedora
Reply With Quote
  #8  
Old 30th May 2011, 12:23 AM
rhoaste Offline
Registered User
 
Join Date: Jul 2009
Posts: 9
windows_7firefox
Thumbs up Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by markkuk View Post
If you are running a PAE kernel you must install the kernel-PAE-devel package instead of the regular kernel-devel.
Markkuk: Excellent! That worked.

I installed the kernel-PAE-devel package and was subsequently able to successfully install VMware tools.

Thank you very much for your help.

Kind regards.
Reply With Quote
  #9  
Old 30th May 2011, 08:00 AM
mfinmun Offline
Registered User
 
Join Date: May 2011
Posts: 3
linuxfirefox
Thumbs up Re: VMWare Tools Installation - Kernel header files path not valid.

@markkuk

Thank you! Lessons learned

Regards

Sebastian
Reply With Quote
  #10  
Old 3rd June 2011, 10:57 PM
caspermy Offline
Registered User
 
Join Date: Jun 2011
Posts: 1
windows_xp_2003chrome
Re: VMWare Tools Installation - Kernel header files path not valid.

I am here because of the same problem but I found the solution.

Firstly, do a uname -a to see if your kernel version (the number, and PAE/not PAE) matches the kernel-devel installed. If not, that is where the problem lies.

Do a YUM install for the kernel[.PAE] again to bring it up to the same version as the kernel-devel[.PAE].
Reboot and that works for me.

Specifically, Fedora 15 installed 2.6.38.6-26.fc15.i686.PAE and any yum install around this time would have pulled 2.6.38.6-27.fc15.i686.PAE
Reply With Quote
  #11  
Old 31st July 2011, 04:05 AM
ENetARch Offline
Registered User
 
Join Date: Jul 2011
Posts: 2
windows_xp_2003chrome
Re: VMWare Tools Installation - Kernel header files path not valid.

Someone asked which file they needed to update to get VMware-Config.pl to compile.

The file is located in /usr/src/kernels/[your version]/include/linux/version.h

add the following line:
#define UTS_RELEASE "[your version]"

note that the quotes are required

I found this in a linux forum thread.
http://www.linuxforums.org/forum/red...ore-5-a-2.html
Reply With Quote
  #12  
Old 27th January 2012, 09:16 PM
cbock Offline
Registered User
 
Join Date: Jan 2012
Location: San Diego, CA
Posts: 1
windows_7firefox
Thumbs up Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by caspermy View Post
i am here because of the same problem but i found the solution.

Firstly, do a uname -a to see if your kernel version (the number, and pae/not pae) matches the kernel-devel installed. If not, that is where the problem lies.

Do a yum install for the kernel[.pae] again to bring it up to the same version as the kernel-devel[.pae].
Reboot and that works for me.

Specifically, fedora 15 installed 2.6.38.6-26.fc15.i686.pae and any yum install around this time would have pulled 2.6.38.6-27.fc15.i686.pae
thank you!
Reply With Quote
  #13  
Old 24th February 2012, 08:26 AM
SunJing Offline
Registered User
 
Join Date: Feb 2012
Location: China
Posts: 4
windows_7chrome
Thumbs up Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by caspermy View Post
I am here because of the same problem but I found the solution.

Firstly, do a uname -a to see if your kernel version (the number, and PAE/not PAE) matches the kernel-devel installed. If not, that is where the problem lies.

Do a YUM install for the kernel[.PAE] again to bring it up to the same version as the kernel-devel[.PAE].
Reboot and that works for me.

Specifically, Fedora 15 installed 2.6.38.6-26.fc15.i686.PAE and any yum install around this time would have pulled 2.6.38.6-27.fc15.i686.PAE

Thank you! I use Fedora 16, and your solution is perfect!!!
Reply With Quote
  #14  
Old 28th February 2012, 06:55 AM
Parhelia Offline
Registered User
 
Join Date: Feb 2012
Location: China
Posts: 1
windows_7chrome
Smile Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by caspermy View Post
I am here because of the same problem but I found the solution.

Firstly, do a uname -a to see if your kernel version (the number, and PAE/not PAE) matches the kernel-devel installed. If not, that is where the problem lies.

Do a YUM install for the kernel[.PAE] again to bring it up to the same version as the kernel-devel[.PAE].
Reboot and that works for me.

Specifically, Fedora 15 installed 2.6.38.6-26.fc15.i686.PAE and any yum install around this time would have pulled 2.6.38.6-27.fc15.i686.PAE
Thank you, it works!
Reply With Quote
  #15  
Old 19th May 2012, 02:04 AM
paoiue Offline
Registered User
 
Join Date: May 2012
Location: Canada
Posts: 1
windows_7firefox
Re: VMWare Tools Installation - Kernel header files path not valid.

Quote:
Originally Posted by caspermy View Post
I am here because of the same problem but I found the solution.

Firstly, do a uname -a to see if your kernel version (the number, and PAE/not PAE) matches the kernel-devel installed. If not, that is where the problem lies.

Do a YUM install for the kernel[.PAE] again to bring it up to the same version as the kernel-devel[.PAE].
Reboot and that works for me.

Specifically, Fedora 15 installed 2.6.38.6-26.fc15.i686.PAE and any yum install around this time would have pulled 2.6.38.6-27.fc15.i686.PAE
I made an account just to say, "Thank you very much. This really helped as I am new to Linux."

If the kernel version is different, I did:

yum update kernel
reboot
yum install kernel-devel

and that made it work.

source: http://www.linuxquestions.org/questi...-devel-382178/
second poster
Reply With Quote
Reply

Tags
directory, fc15, kernel headers, vmware

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
location of the directory of C header files - vmware installation anitha2324 Using Fedora 13 31st July 2012 08:58 PM
Vmware and C header files Helixia Using Fedora 8 17th January 2010 10:18 PM
VMWare tools - OS C Header files jon80 Using Fedora 5 30th June 2008 11:54 AM
Vmware C header files mikebleek Using Fedora 21 19th July 2007 10:30 PM
vmware tools & fedora 5 & c header XhonkX Using Fedora 11 26th December 2006 05:04 AM


Current GMT-time: 23:17 (Wednesday, 30-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat