LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Oracle Virtual Box does not work! ('/etc/init.d/vboxdrv setup') (https://www.linuxquestions.org/questions/red-hat-31/oracle-virtual-box-does-not-work-etc-init-d-vboxdrv-setup-893324/)

dan.hoquoc 07-23-2011 08:54 AM

Oracle Virtual Box does not work! ('/etc/init.d/vboxdrv setup')
 
Hi all,

I was unable to install VBox successful. The error is as follow:

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

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

My system info:

Linux server 2.6.32-71.el6.i686 #1 SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686 i386 GNU/Linux

Please help!

Thank you,
Dan.

bathory 07-23-2011 09:18 AM

Hi,

If you want to compile kernel modules, you need to install the kernel-devel package for your distro and kernel version
Code:

yum install kernel-devel
Regards

dan.hoquoc 07-23-2011 09:31 AM

Thanks bathory,

I check and found.
[root@server ~]# rpm -qa |grep kernel-devel
kernel-devel-2.6.32-71.el6.i686
kernel-devel-2.6.32-131.0.15.el6.i686

But the error is still there!
Dan.

bathory 07-23-2011 09:46 AM

In that case, you can check /var/log/vbox-install.log to see why that happens.
BTW there is rpm package for RHEL6 in vbox downloads. You might try that before anything else.

Regards

dan.hoquoc 07-30-2011 09:20 AM

Thanks bathory,

I installed successful Virtual box by adding the following packages:

#yum install gcc kernel-devel kernel-headers libSDL*
#yum install kernel-2.6.32-31.0.15.i686
#rpm -ivh dkms-2.1.1.2-1.el6.rf.noarch.rpm
#reboot
#rpm -ivh VirtualBox-4.1-4.1.0_73009_rhel6-1.i686.rpm

Dan.


All times are GMT -5. The time now is 09:01 PM.