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'
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
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
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.
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.
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