Page 1 of 1

Installing Guest Additions into CentOS/RHEL 5.4

Posted: 10. Feb 2010, 20:08
by billp
I get an error message when running the VBoxLinuxAdditions-x86.run shell saying that my system is not set up to install kernel modules. I installed DKMS and can see it in the proper folders. I also installed the kernel-devel package as suggested as well. My host is Windows Vista. Can anyone share any insight into this problem and its resolution?

Thank you.

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 11. Feb 2010, 20:36
by jbrogan
I had this same problem. In my case the error message said to look at /var/log/vboxadd-install.log.
This said it failed to find kernel sources at KERN_DIR.
I set it
# export KERN_DIR=/usr/src/kernels/2.6.blah.blah...
and then the installation of the guest additions worked.

My problem now is that the VBoxManage command seems to be missing.

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 13. Feb 2010, 21:13
by billp
Thanks jbrogan -- exporting the KERN_DIR did the trick!

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 20. Apr 2010, 16:02
by jeherul
billp wrote:Thanks jbrogan -- exporting the KERN_DIR did the trick!
But I am facing another problem . When i compile after exporting the KERN_DIR the virtual box kernel module again failed . It shows like following

[root@jeherul ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [FAILED]
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)

[root@jeherul ~]# dmesg |grep vboxdrv
vboxdrv: disagrees about version of symbol struct_module

Please help me .

Thanks and regards
Jeherul

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 20. Apr 2010, 17:40
by fixedwheel
jeherul wrote:When i compile after exporting the KERN_DIR the virtual box kernel module again failed
exporting the KERN_DIR should not be needed and is probably not the right fix for that fail

post the ouput of

Code: Select all

uname -a

Code: Select all

rpm -qa|grep kernel

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 22. Apr 2010, 05:01
by Hortnon
I'm also having this issue, so here's my output for that...

Code: Select all

Linux grid11 2.6.18-164.15.1.el5PAE #1 SMP Wed Mar 17 12:14:29 EDT 2010 i686 athlon i386 GNU/Linux

Code: Select all

kernel-headers-2.6.18-164.15.1.el5
kernel-PAE-2.6.18-164.15.1.el5
kernel-PAE-2.6.18-164.el5

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 22. Apr 2010, 09:47
by fixedwheel
Hortnon wrote:

Code: Select all

kernel-headers-2.6.18-164.15.1.el5
kernel-PAE-2.6.18-164.15.1.el5
kernel-PAE-2.6.18-164.el5

Code: Select all

sudo yum install kernel-devel
have a look into the VBox manual, or http://forums.virtualbox.org/viewtopic.php?f=3&t=15679 (fedora instructions: its the same red hat brew)

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 22. Apr 2010, 10:15
by Technologov
I'll tell you how I installed it:

Install RHEL 5.x guest, and during installation, choose "Development" category.
This is enough to install Linux Additions.

NOTE: I have not updated RHEL since, to make sure that kernel and it's headers are in sync.

-Technologov

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 17. Jul 2010, 16:24
by MajorGeek
:D Good tip Technologov. I am relatively new to Linux and have been battling with trying to install additions, that made it simple.

Re: Installing Guest Additions into CentOS/RHEL 5.4

Posted: 30. Jun 2014, 22:19
by Rodman
I was installed the kernel

yum install kernel-devel-2.6.32-431.20.3.el6.x86_64 #Install Kernel
export KERN_DIR=/usr/src/kernels/2.6.32-431.20.3.el6.x86_64/ #Set var KERN_DIR
yum install gcc ncurses ncurses-devel #Install gcc compiler

And everything work OK.