Home > Centos 5.2, Command Line, VirtualBox > How To Install Suns VirtualBox tools on a Centos Virtual Machine

How To Install Suns VirtualBox tools on a Centos Virtual Machine

If you get the error

Could not find the Linux kernel header files – the directories
/lib/modules/2.6.18-128.el5/build/include and /usr/src/linux/include
do not exist.

Then you need to install the following packages.

yum install kernel sources

yum install kernel-devel

yum install gcc

Create the following link

ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux

And now you should be able to run.

sh VBoxLinuxAdditions-x86.run

Source of this tip – http://forums.virtualbox.org/viewtopic.php?f=6&t=16721

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Reddit
  • TwitThis

No related posts.

Categories: Centos 5.2, Command Line, VirtualBox Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.