I am on oracle linux 6.5 kernel 2.6.32-431.el6.x86_64 I have spent about 5 hours searching for a solution. I have tried a bunch of different things not such luck. Everytime I run /etc/init.d/vboxdrv setup
I get this \/
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-431.el6.x86_64 cannot be found at
/lib/modules/2.6.32-431.el6.x86_64/build or /lib/modules/2.6.32-431.el6.x86_64/source.
My log says in virtual box log says this Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
I have tried uninstalling kernels reinstallig them.. Nothing.. Same error each time. Maybe I am doing something really stupid?
cant launch virtual box Trying to register the VirtualBox k
-
- Posts: 4
- Joined: 9. May 2014, 23:19
-
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: cant launch virtual box Trying to register the VirtualB
It's not the kernel you need to replace you need the headers that matches you kernel.
Readily available on OEL public-yum-repo.
Readily available on OEL public-yum-repo.
-
- Posts: 4
- Joined: 9. May 2014, 23:19
Re: cant launch virtual box Trying to register the VirtualB
What command would I run ?
-
- Posts: 4
- Joined: 9. May 2014, 23:19
Re: cant launch virtual box Trying to register the VirtualB
I am still getting the issue.
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-431.el6.x86_64 cannot be found at
/lib/modules/2.6.32-431.el6.x86_64/build or /lib/modules/2.6.32-431.el6.x86_64/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
DKMS: add completed.
Failed to install using DKMS, attempting to install without
Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-431.el6.x86_64 cannot be found at
/lib/modules/2.6.32-431.el6.x86_64/build or /lib/modules/2.6.32-431.el6.x86_64/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
-
- Posts: 4
- Joined: 9. May 2014, 23:19
Re: cant launch virtual box Trying to register the VirtualB
Ok after about a total of 20 hours of searching and reading I have found the fix to this. Alot of trying stuff to see if it would work and fail, but I have finally succeded.
I found part of my answer here. Because for the most part oracle linux is just like centos.. http://tecadmin.net/install-oracle-virt ... nd-fedora/
Here is what helped me slove this. I found this comment. Only thing I did different was went into my desktop. System > About >>> Then found my version of kernels I was using.. swaped out in the instructins below and bam party time with VMs. I am posting this so if anyone else has any issues its here for the helping. Thank you to everyone else's help. MARK it SOLVED!!!
My solution to this problem was to do the following:
1) Go to the followning folder to find out the environment name:
[root@localhost ~]$ ls /usr/src/kernels
2.6.32-431.5.1.el6.x86_64
2) Open the root “.bashrc” file for editing with Nano.
[root@localhost ~]$ nano .bashrc
3) The output from the command for the 1st step was used to insert a line in the “.bashrc” file. Inside of the file I added the following line:
export KERN_DIR=/usr/src/kernels/2.6.32-431.5.1.el6.x86_64
4) After saving the file I executed the “.bashrc” lines.
[root@localhost ~]$ source .bashrc
5) Finally I ran the VirtualBox rebuilding script:
[root@localhost ~]$ /etc/init.d/vboxdrv setup
I found part of my answer here. Because for the most part oracle linux is just like centos.. http://tecadmin.net/install-oracle-virt ... nd-fedora/
Here is what helped me slove this. I found this comment. Only thing I did different was went into my desktop. System > About >>> Then found my version of kernels I was using.. swaped out in the instructins below and bam party time with VMs. I am posting this so if anyone else has any issues its here for the helping. Thank you to everyone else's help. MARK it SOLVED!!!
My solution to this problem was to do the following:
1) Go to the followning folder to find out the environment name:
[root@localhost ~]$ ls /usr/src/kernels
2.6.32-431.5.1.el6.x86_64
2) Open the root “.bashrc” file for editing with Nano.
[root@localhost ~]$ nano .bashrc
3) The output from the command for the 1st step was used to insert a line in the “.bashrc” file. Inside of the file I added the following line:
export KERN_DIR=/usr/src/kernels/2.6.32-431.5.1.el6.x86_64
4) After saving the file I executed the “.bashrc” lines.
[root@localhost ~]$ source .bashrc
5) Finally I ran the VirtualBox rebuilding script:
[root@localhost ~]$ /etc/init.d/vboxdrv setup
-
- Posts: 4
- Joined: 17. Jan 2015, 22:08
Re: cant launch virtual box Trying to register the VirtualB
after more googling
[root@jobsinsure ~]# ls /usr/src/kernels
2.6.32-504.3.3.el6.x86_64
[root@jobsinsure ~]# vi .bashrc
[root@jobsinsure ~]# source .bashrc
[root@jobsinsure ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-042stab102.9 cannot be found at
/lib/modules/2.6.32-042stab102.9/build or /lib/modules/2.6.32-042stab102.9/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules
[root@jobsinsure ~]# ls /usr/src/kernels
2.6.32-504.3.3.el6.x86_64
[root@jobsinsure ~]# vi .bashrc
[root@jobsinsure ~]# source .bashrc
[root@jobsinsure ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-042stab102.9 cannot be found at
/lib/modules/2.6.32-042stab102.9/build or /lib/modules/2.6.32-042stab102.9/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules