Vbox additions won´t start after kernel update - centos 5.5

Discussions about using Linux guests in VirtualBox.
Post Reply
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

Hi!

Today i did a kernel update on my Centos 5.5 guest to 2.6.18-194.26.1.el5.

After that i could not manage vboxadditions to run properly.
I always get a "modprobe vboxguest failed" error during the Virtual Box Guest additions startup sequence.

/sbin/modprobe vboxguest returns:

FATAL: Error inserting vboxguest (/lib/modules/2.6.18-194.26.1.el/misc/vboxguest.ko): Invalid module format

:?

any idea anyone?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by fixedwheel »

install the guest additions again
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

thats what i did.. results as discribed above :(
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Perryg »

If you did not have dkms installed and you have a kernel update you will need to make sure that the kernel and the headers match. then run /etc/init.d/vboxdrv setup or re-install the additions.
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

kernel headers should match since the update did install the new headers as well.

nevertheless i just installed dkms package via rpm (yum didnt know it).
But i am not sure where it was installed. Could not find an executable.. yum search proclaimed that it is
installed now.

whatsoever.. still no success modprobe still fails on vboxguest during install.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Perryg »

Did you reboot the host?
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

Yes. During reboot a short (successful) notice about dkms concerning vbox apeared.
nevertheless, its still not running and i have no executable for dkms.. (or its not in the PATH)
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by fixedwheel »

could you post the output of
uname -r
rpm -qa|grep kernel


sorry i don't know about how to do dkms on Centos ...
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

[root@localhost ~]# uname -r
2.6.18-194.26.1.el5

[root@localhost ~]# rpm -qa |grep kernel
kernel-xen-devel-2.6.18-194.17.4.el5
kernel-2.6.18-194.26.1.el5
kernel-devel-2.6.18-194.17.4.el5
kernel-xen-devel-2.6.18-194.26.1.el5
kernel-xen-2.6.18-194.17.1.el5
kernel-2.6.18-194.17.1.el5
kernel-2.6.18-194.17.4.el5
kernel-devel-2.6.18-194.26.1.el5
kernel-xen-2.6.18-194.26.1.el5
kernel-xen-devel-2.6.18-194.17.1.el5
kernel-devel-2.6.18-194.17.1.el5
kernel-xen-2.6.18-194.17.4.el5
kernel-headers-2.6.18-194.26.1.el5
[root@localhost ~]#
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

to have it all here: the installation script returns the following:

[root@localhost VBOXADDITIONS_3.2.10_66523]# sh ./VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 3.2.10 of VirtualBox Guest Additions...
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system). This Guest Additions feature will be disabled.


Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [FAILED]
(modprobe vboxguest failed)
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]
[root@localhost VBOXADDITIONS_3.2.10_66523]#
Pitty
Posts: 7
Joined: 10. Nov 2010, 15:31
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos 5.5, sl5.5, slc5

Re: Vbox additions won´t start after kernel update - centos 5.5

Post by Pitty »

stupid error.. finally found it :)

i did
$ modinfo vboxguest

and found that my gcc was the wrong version...
after switching back to gcc4.1 it worked fine

sorry for the trouble and thanks for you help, guys!
Post Reply