Installation Error

Discussions related to using VirtualBox on Linux hosts.
Post Reply
sk1tL1L
Posts: 1
Joined: 16. Jan 2009, 12:11

Installation Error

Post by sk1tL1L »

Hello,
I am trying to install VirtualBox on my CentOS 5 VPS and I am getting this error:
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@localhost /]#
Looking at vbox-install.log:
[root@localhost /]# cat /var/log/vbox-install.log
Makefile:146: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
Makefile:154: *** Error: /usr/src/linux (version 2.6.18-92.1.22.el5) does not match the current kernel (version 2.6.18-92.1.1.el5.028stab057.2PAE). Stop.
[root@localhost /]#
I am running:
[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.18-92.1.1.el5.028stab057.2PAE #1 SMP Mon Jul 21 21:22:20 MSD 2008 i686 i686 i386 GNU/Linux
[root@localhost /]#
Thanks for your help!
dominiquearpin
Posts: 3
Joined: 16. Jan 2009, 18:47

Post by dominiquearpin »

You need to install the kernel header.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The kernel source/headers is not the same config as the kernel you are running. As the error states: 2.6.18-92.1.22.el5 does not match 2.6.18-92.1.1.el5.028stab057.2PAE. See the difference? Either boot to a different kernel, or update your system so these differences are taken care of.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply