VMware Communities > VMTN > VMware Server > VMware Server 1 > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts)
7 Replies Last post: Oct 11, 2007 1:07 PM by VRComm
Reply

Installing on Centos5 server

Oct 10, 2007 1:14 PM

Click to view kbensch's profile Novice kbensch 3 posts since
Oct 10, 2007

Hi

I am installing the server on a centos5 installation and am asked for the following:

What is the location of the directory of C header files that match your running
kernel?

Can anybody shed some light on this for me please. First time vmware user.

Thanks

Kobus

Reply Re: Installing on Centos5 server Oct 10, 2007 2:22 PM
Click to view Aldebaran's profile Hot Shot Aldebaran 188 posts since
Apr 16, 2007

See the information here and see if it helps:

http://www.amikkelsen.com/index.php?paged=2

Jeff

Reply Re: Installing on Centos5 server Oct 10, 2007 2:32 PM
Click to view SMB's profile Expert SMB 400 posts since
Mar 14, 2006
Install kernel-header and kernel-devel packages.
Reply Re: Installing on Centos5 server Oct 10, 2007 2:36 PM
in response to: SMB
Click to view kbensch's profile Novice kbensch 3 posts since
Oct 10, 2007

Thank you for the answers

Once i have done this how do i answer this question during /usr/bin/vmware-config.pl

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

Reply Re: Installing on Centos5 server Oct 10, 2007 3:16 PM
in response to: kbensch
Click to view VRComm's profile Novice VRComm 2 posts since
Oct 10, 2007
I am attempting to install VMware-server-1.0.4-56528 on a Sun AMD 64-bit environment running CentOS5 x86_64 (64-bit)

Did a bit of searching and found a few sites the better of which was:

http://www.cyberciti.biz/tips/vmware-on-centos5-rhel5-64-bit-version.html

Follow along and I I hit the following issue:

|------------ snip start
The directory of kernel headers (version 2.6.18-8.1.14.el5) does not match your
running kernel (version 2.6.18-8.1.14.el5xen).  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]
|------------ snip end

Even after creating a link and messing around with the directory names, still the same.

Here is the output of ' uname -r' : 2.6.18-8.1.14.el5xen

It looks like the yum update for 64-bit has a different idea about what the kernel vs. the headers. Yes, I rebooted after installing the update, just in case you are wondering.

Also tried doing this via the RPM and got the same results. At this point I may have to use the native virtualization in CentOS 5 but I would rater use VMware, that's the point of this whole exercise.

Has anyone managed to successfully get past this point given the configuration above?
Reply Re: Installing on Centos5 server Oct 11, 2007 12:24 AM
in response to: VRComm
Click to view kbensch's profile Novice kbensch 3 posts since
Oct 10, 2007
Hi

Thank you for the answers. My VMware is up and running and I am plying. I at one stage got the following message just like VRComm:The directory of kernel headers (version 2.6.18-8.1.14.el5) does not match your
running kernel (version 2.6.18-8.1.14.el5xen). 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]


and sorted this by updating my kernel so that it is the same version asthe devel and kernel packages.


I really at this stage have 2 more questions please.

1. At the bottom of the VMWare console it says You do not have VMWare tools installed. I have searched the site buit cant find the tools or I am looking right at them and dont know what i am looking at.

2. When installing the os it keeps on black screen. It i then click on home then back onto the new server i can contiue but only for around 10 seconds at a time.


Thanks again

Kobus

Reply Re: Installing on Centos5 server Oct 11, 2007 1:51 AM
in response to: kbensch
Click to view saxa's profile Master saxa 1,334 posts since
Jun 2, 2006
You shouldn't use xen-enabled kernel on a VMware host. Reboot the machine into a 2.6.18-8.1.14.el5 and remove the xen kernel.

Then, run the config script once more.

In order to install VMware Tools on the console click VM -> Install VMware Tools. It will mount a Tolls CD-ISO to your VM. You'll have install them inside the guest.

When installing the os it keeps on black screen. It i then click on home then back onto the new server i can contiue but only for around 10 seconds at a time.

Please be more elaborative.
Reply Re: Installing on Centos5 server Oct 11, 2007 1:07 PM
in response to: saxa
Click to view VRComm's profile Novice VRComm 2 posts since
Oct 10, 2007
For those following this thread I hope this helps and its a direct follow up to my last post.

Thanks to all of those who responded couldn't have done it without their input.

Had to rebuild the Kernel as indicated above.

Get instructions at :

http://wiki.centos.org/HowTos/Custom_Kernel

but used: rpm -i http://isoredirect.centos.org/centos/5/updates/SRPMS/kernel-2.6.18-8.1.8.el5.src.rpm (Used this for install source for 5 vs. 4)

make sure you rebuild as non-root I created the user and group "mockbuild" this works out well particularly given the use of the line above.

I edited /home/mockbuild/rpmbuild/SPECS/kernel-2.6.spec file to change "%define signmodules 1" to "%define signmodules 0". Its may be in multiple places but I only ran into one.

Had to do `yum install unifdef` (as root)

( Follow the instructions, if you aren't doing something funky just do the rebuild don't modify too much)

At the end I had to :

rpm --force -ivh kernel-*.rpm (Couldn't get it to install until I forced it.)

Actions