LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices



Reply
 
Search this Thread
Old 09-15-2011, 09:00 PM   #1
SANA4SPA
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Rep: Reputation: Disabled
Unhappy how to install VMware tools on a fedora guest


Can't figure out where is my directory of c header files

[root@SANA4SPA jcs]# vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes] y

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]
 
Old 09-15-2011, 09:17 PM   #2
user7
LQ Newbie
 
Registered: Nov 2010
Location: Canada
Distribution: anything with a linux or bsd kernel
Posts: 7

Rep: Reputation: 3
This should do the trick.
Make sure you do this as root.

Code:
# yum install kernel-devel
Or using sudo instead of a su -

Code:
$ sudo yum install kernel-devel
 
Old 09-15-2011, 09:21 PM   #3
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Quote:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
Note that you will definitely need to change the path to the correct version of the kernel installed and running on your system. To find the correct path, simply navigate to /usr/src and look at the installed versions. The newest one should be the correct version.
 
Old 09-17-2011, 07:59 PM   #4
SANA4SPA
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thank you both for taking the time to help me out.

I updated my kernel and was able to navigate to the files listed. But I'm not sure which one of these files I am suppose to use and also how to enter the syntax.


[root@SANA4SPA jcs]# cd /usr/src/kernels/
[root@SANA4SPA kernels]# ls -1
2.6.35.14-95.fc14.i686
2.6.35.14-95.fc14.i686.PAE
2.6.35.14-96.fc14.i686
2.6.35.6-45.fc14.i686
 
Old 09-18-2011, 05:36 PM   #5
user7
LQ Newbie
 
Registered: Nov 2010
Location: Canada
Distribution: anything with a linux or bsd kernel
Posts: 7

Rep: Reputation: 3
Once you have the headers installed, just run the vmware-config-tools.pl

When it asks this:
Code:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
Just hit enter. Most of the time you can just hit enter which will accept the defaults. Which should work just fine for Fedora.
 
Old 09-20-2011, 06:38 PM   #6
SANA4SPA
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
I've tried hitting enter so as to accept the default but it takes me right back to where I was.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
 
Old 09-30-2011, 05:43 PM   #7
eindoofus
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Rep: Reputation: Disabled
I'm having the same problem but my installation says:

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


I've tried changing it to both /usr/src/linux/include and /usr/src/kernels/2.6.40.4-5.fc15.i686/include/linux (the only kernel listed), and it can't find either.

I've already done the following before the VM Tools install:

yum -y update kernel
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++


followed by a restart and everything appears to be up to date. I'm not sure what else to do.
 
Old 09-30-2011, 06:04 PM   #8
eindoofus
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Rep: Reputation: Disabled
Nevermind, I fixed the problem with:

yum -y install kernel-PAE-devel
yum -y install patch


restart, then a reinstall.
 
Old 09-30-2011, 11:52 PM   #9
SANA4SPA
LQ Newbie
 
Registered: Jul 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Unhappy How to install VMware Tools on Virtual Fedora 14

Hello, thank you for taking the time. I installed all the items you stated. even accept the default but I still get the same outcome. Help!!

[jcs@SANA4SPA ~]$ su
Password:
[root@SANA4SPA jcs]# vmware-user
[root@SANA4SPA jcs]# vmware-user: could not open /proc/fs/vmblock/dev
vmware-tools is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config-tools.pl.


[root@SANA4SPA jcs]# /usr/bin/vmware-config-tools.pl

Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmmemctl module
for your system (you need to have a C compiler installed on your system)?
[yes] y

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] **************I accepted the default here.

The path "/usr/src/linux/include" is not an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] ^C
[root@SANA4SPA jcs]#
 
  


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 snapshot with VMware tools loses network on restart (Host XP, Guest Fedora) John Fletcher Linux - General 12 10-18-2010 01:28 PM
vmware-tools for x86_64 guest linux ursusca Linux - Virtualization and Cloud 2 11-28-2009 08:29 AM
not able to install vmware tools on Linux guest RajeshM Red Hat 1 09-04-2009 03:18 PM
How do I install VMWare Tools on Fedora 9? markw10 Fedora 0 05-19-2008 02:59 PM
Install vmware tools on Ubuntu 7.10 guest problem optimizer Ubuntu 7 02-25-2008 04:25 AM


All times are GMT -5. The time now is 06:48 PM.

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