VMware

This Question is Possibly Answered

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

Installing on Centos5 server posted: Oct 10, 2007 1:14 PM

Click to view kbensch's profile Novice 7 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

Re: Installing on Centos5 server

1. Oct 10, 2007 2:22 PM in response to: kbensch
Click to view Aldebaran's profile Hot Shot 188 posts since
Apr 16, 2007

See the information here and see if it helps:

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

Jeff

Re: Installing on Centos5 server

2. Oct 10, 2007 2:32 PM in response to: kbensch
Click to view SMB's profile Expert 403 posts since
Mar 14, 2006
Install kernel-header and kernel-devel packages.

Re: Installing on Centos5 server

4. Oct 10, 2007 3:16 PM in response to: kbensch
Click to view VRComm's profile Novice 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?

Re: Installing on Centos5 server

6. Oct 11, 2007 1:51 AM in response to: kbensch
Click to view saxa's profile Master 1,338 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.

Re: Installing on Centos5 server

7. Oct 11, 2007 1:07 PM in response to: saxa
Click to view VRComm's profile Novice 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.)

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities