Resolved: Error on CentOS 5

Discussions related to using VirtualBox on Linux hosts.
Post Reply
krishna2807
Posts: 5
Joined: 28. Nov 2008, 05:37

Resolved: Error on CentOS 5

Post by krishna2807 »

After the upgrade to 2.1.2, i am getting the following error.
VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
As suggested by the error message i tried

'/etc/init.d/vboxdrv setup';
[oracle@orahost ~]$ su root
Password:
[root@orahost oracle]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old 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@orahost oracle]#
demsg retruns
vboxdrv: version magic '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-3.4' should be '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1'
[root@orahost oracle]# uname -r
2.6.18-92.1.22.el5
Last edited by krishna2807 on 27. Jan 2009, 23:41, edited 1 time in total.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Re: Error on CentOS 5

Post by sej7278 »

krishna2807 wrote:demsg retruns
vboxdrv: version magic '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-3.4' should be '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1'
i get similar with a centos 4.7 guest, except the gcc versions there are 3.2 vs. 3.4, it means i can't install guest additions at all.

centos 5.2 works fine for me though.
TrevorPH
Posts: 55
Joined: 30. Sep 2008, 02:37

Re: Error on CentOS 5

Post by TrevorPH »

krishna2807 wrote:
vboxdrv: version magic '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-3.4' should be '2.6.18-92.1.22.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1'
[root@orahost oracle]# uname -r
2.6.18-92.1.22.el5
There are 2 versions of gcc shipped with Centos 5. The default one is gcc 4.1.2 but you can also install compat-gcc-34.i386 and make it default. It sounds as though you have done this but the rest of your kernel is compiled with by Redhat/Centos with gcc 4.1
krishna2807
Posts: 5
Joined: 28. Nov 2008, 05:37

Post by krishna2807 »

@trevorPH

checked by machine now, i already have compat-gcc-34 installed on my machine.
There are 2 versions of gcc shipped with Centos 5. The default one is gcc 4.1.2 but you can also install compat-gcc-34.i386 and make it default. It sounds as though you have done this but the rest of your kernel is compiled with by Redhat/Centos with gcc 4.1
Any other ideas i should give a shot.

goes without saying "Grateful for your help";
TrevorPH
Posts: 55
Joined: 30. Sep 2008, 02:37

Post by TrevorPH »

krishna2807 wrote:@trevorPH

checked by machine now, i already have compat-gcc-34 installed on my machine.
You may have it installed but is it the right one? Your kernel apparently was compiled using gcc 4.1 according to the error you are getting but the module was compiled with 3.4. So perhaps you don't have 4.1 installed or it is not the default? gcc --version will tell you what the default one is.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Post by sej7278 »

i just did an ls -l /usr/bin/gcc* and noticed a gcc.orig, which turned out to be gcc 3.4.6

/usr/bin/gcc was a wrapper script to turn on gcc 2.9.6 compatibility for gcc 3.2.3, which itself was /usr/bin/gcc32

it seems the package compat-oracle-rhel4.i386 is what does all this - an rpm provided by oracle to allow installation.

they effectively disabled the gcc346 that comes with the operating system, then install gcc323 just so that they can use it to compile some library that actually requires gcc296. go back to programming school oracle, bloody amateurs!

anyway, the GA's install now in centos 4.7

so have you installed any oracle rpm's on your centos 5.2 box, as i didn't and GA's worked fine for me.
krishna2807
Posts: 5
Joined: 28. Nov 2008, 05:37

Resoved

Post by krishna2807 »

@TrevorPH & sej7278

Thanks for the great help.

sej7278 had rightly theorized about installing compat-oracle* rpm. I got rid for the package and ran the
'/etc/init.d/vboxdrv setup'
comand and this time worked fine.

once i was good to go with virtualbox i reinstalled the oracle rpm's.

Thanks once again for the help.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Re: Resoved

Post by sej7278 »

krishna2807 wrote:once i was good to go with virtualbox i reinstalled the oracle rpm's..
actually on the download page oracle say to uninstall the compat-oracle rpm once you've installed oracle and its relinked.

so no need to re-install it or you'll have the same problem when a new release of virtualbox comes out.
vap824
Posts: 13
Joined: 2. Jul 2009, 23:46
Primary OS: Fedora 10
VBox Version: OSE Fedora
Guest OSses: Linux

Re: Resolved: Error on CentOS 5

Post by vap824 »

hi guys i have followed the steps mentioned and i was sucessfully able to compile the kernel....now a new issue i was able to create a virtual machine but when i try to start it aborts....

the steps if followed are as below

1. removed compat-oracle
2. installed virtualbox 2.2.4
3 .installed compat-oracle
4. created virtual machine
5. when trying to start the machine a black srceen appears and disappears and the machine is in a aborted state....guys need help
thanks
vap824
Post Reply