Question
I'm trying to install VirtualBox on my Oracle Linux 6.3, I did use VB before on my Mac for last 2 years but I'm not on Linux.After succesful download & install VirtualBox-4.2-4.2.6_82870_el6-1.x86_64.rpm
I get a message
#Kernel driver not installed (rc=-1908)
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. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.#
So i go and do this getting:
[root@redstation peter]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
So checking the log file
Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Solution
Here is what you need to install under Oracle Linux or Red Hat Enterprise Linux to install the VirtualBox Guest Additions:
yum -y install gcc kernel-uek-devel-$(uname -r)
The packages are available from the Oracle public yum repository as already mentioned, or on the installation DVD in the server directory.
Then run below script
[root@redstation peter]# /etc/init.d/vboxdrv setup
Finally Start The Virtualbox
yum -y install gcc kernel-uek-devel-$(uname -r)
The packages are available from the Oracle public yum repository as already mentioned, or on the installation DVD in the server directory.
Then run below script
[root@redstation peter]# /etc/init.d/vboxdrv setup
Finally Start The Virtualbox
No comments:
Post a Comment