Page 1 of 1
Resolved: Error on CentOS 5
Posted: 26. Jan 2009, 05:39
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
Re: Error on CentOS 5
Posted: 26. Jan 2009, 10:35
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.
Re: Error on CentOS 5
Posted: 26. Jan 2009, 15:14
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
Posted: 27. Jan 2009, 07:50
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";
Posted: 27. Jan 2009, 22:44
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.
Posted: 27. Jan 2009, 23:31
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.
Resoved
Posted: 27. Jan 2009, 23:39
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.
Re: Resoved
Posted: 28. Jan 2009, 10:42
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.
Re: Resolved: Error on CentOS 5
Posted: 3. Jul 2009, 23:22
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