LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-09-2017, 04:41 PM   #1
VCrypt
LQ Newbie
 
Registered: Feb 2017
Posts: 10

Rep: Reputation: Disabled
Unhappy VirtualBox 5.1.14, Kernel Issue. (rc=1908)


Seeing the same problem as most here with this issue it seems.

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

'/sbin/vboxconfig'

as root.


I have installed dkms, updated cache/refreshed dnf.
Deleted and re-added the repo, from the original DL repo.
Disable Secure-Boot, and made sure Virtualization was activated.
Ran sudo /sbin/vboxconfig/ only to receive this outcome :


(Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.9.7-201.fc25.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.9.7-201.fc25.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.)


When doing the yum installs neither worked, it says I have the kernel when I install it specifically and when I do yum install kernel-core-devel it says it's already installed so not sure... lol

My error log in var/log/vbox-installer.log comes back with :

Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.


Can anyone please help, new to linux and still learning but not sure what else to try here. Thanks in advance.

Last edited by VCrypt; 02-09-2017 at 04:53 PM. Reason: Added info
 
Old 02-09-2017, 08:53 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Looking at this:
Quote:
This system is not currently set up to build kernel modules (system extensions)
Are you missing build essentials and gcc?

Why are you using yum? It's depreciated. **Use "dnf" instead.***

To update run this first: (as root)
Code:
dnf update
*-::-I had the same problem and it drove me nuts.-::-*

Run this cmd as 'root':

Code:
etc/init.d/vboxdrv setup
https://forums.virtualbox.org/viewtopic.php?f=7&t=79710

https://ask.fedoraproject.org/en/que...ld-essentials/
 
Old 02-09-2017, 09:02 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
https://ask.fedoraproject.org/en/que...or-virtualbox/
 
Old 02-09-2017, 10:47 PM   #4
VCrypt
LQ Newbie
 
Registered: Feb 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Looking at this:

Run this cmd as 'root':

Code:
etc/init.d/vboxdrv setup
https://forums.virtualbox.org/viewtopic.php?f=7&t=79710

https://ask.fedoraproject.org/en/que...ld-essentials/
I meant to say dnf, my bad.
and it say no file/directory exists on (sudo /etc/init.d/vboxdrv setup)
 
Old 02-10-2017, 04:42 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
dkms is no longer required by Virtualbox, and deprecated as of Virtualbox 5

Last edited by Habitual; 02-10-2017 at 04:43 AM.
 
Old 02-10-2017, 01:54 PM   #6
VCrypt
LQ Newbie
 
Registered: Feb 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
dkms is no longer required by Virtualbox, and deprecated as of Virtualbox 5
Good to know, Here is all my outcomes.

Opening VirtualBox:

$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.9.7-201.fc25.x86_64) or it failed to
load. Please recompile the kernel module and install it by

sudo /sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.


Then I try to open a new machine on virtual box and it reads:
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
/sbin/vboxconfig


so I run sudo /sbin/vboxconfig and it reads:

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.9.7-201.fc25.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.9.7-201.fc25.x86_64
(The last command may fail if your system is not fully updated.)
yum install kernel-core-devel

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.


So i run dnf install kernel-core-devel and dnf install kernel-headers
then it says I already have kernel core 4.9.7-201 installed as well as others,
but I run dnf reinstall kernel-core-devel-4.9.7-201.fc25.x86_64 just incase
to which is says no such thing exists.

When I run sudo /etc/init.d/vboxdrv It says no file or directory, what am I missing. Please help lol

My log file reads back:
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop

Secureboot is off, fastboot is off, windows faststartup is off, virtualization is on. I don't know what I'm missing. lol
 
Old 02-10-2017, 02:42 PM   #7
DVOM
Member
 
Registered: Nov 2010
Posts: 223

Rep: Reputation: 48
I haven't installed VB into Fedora in quite awhile. However, with ubuntu, sometimes VB won't create the kernel modules with a particular kernel. For instance, ubuntu 14.04.5 came with kernel 4.4 (if I remember correctly) but VB couldn't create the modules unless I downgraded to kernel 4.3. I had also tried kernel 4.5 and 4.6 and neither of those worked with VB.
 
Old 02-10-2017, 10:18 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
When I run sudo /etc/init.d/vboxdrv It says no file or directory, what am I missing. Please help lol
It would seem that modules (drivers) are missing and your system is not currently set up to build kernel modules.

You can run this all day long "/sbin/vboxconfig" and it's not going to work because the system isn't set up to do that. The kernel-devel package is required to build external modules.

https://docs.fedoraproject.org/en-US...r01s07s07.html
https://docs.fedoraproject.org/en-US...l_Modules.html

The current version of VBox is 5.1.14:-

What version of VBox did you install?

If this were my machine this is what I'd try:
-Use dnf to remove VBox.

-Install kernel header and kernel-devel and reboot.

Than install Virtual Box.
 
Old 02-10-2017, 10:21 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Habitual View Post
dkms is no longer required by Virtualbox, and deprecated as of Virtualbox 5
Right but kernel headers and kernel-devel are required. I would install them first before installing VBox.

Is it possible Habitual that OP is missing build essentials?
 
Old 02-10-2017, 10:23 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by DVOM View Post
I haven't installed VB into Fedora in quite awhile. However, with ubuntu, sometimes VB won't create the kernel modules with a particular kernel. For instance, ubuntu 14.04.5 came with kernel 4.4 (if I remember correctly) but VB couldn't create the modules unless I downgraded to kernel 4.3. I had also tried kernel 4.5 and 4.6 and neither of those worked with VB.
That's good info.thanks-

Sounds like higher versions of the kernel don't have support for that yet.
 
Old 02-18-2017, 06:34 AM   #11
VCrypt
LQ Newbie
 
Registered: Feb 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Not sure why, how or what.
I looked into my modules folder and was missing a file modules.
Never discovered the issue with that kernel.
Fedora recently released a new kernel 4.9.9 I believe.
I built the kernel once the new one installed and to my surprise it worked without any issues.
Not sure why I had an issue with the last one or what the problem was....
Did however gain a little knowledge messing around trying to figure it out so I suppose all is good
 
Old 02-18-2017, 09:18 PM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Glad to hear that Virtual Box is working correctly now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
virtualbox - kernel issue theochenko Linux - Virtualization and Cloud 4 06-23-2016 06:36 PM
Manjaro Kernel driver not installed (rc=-1908) skilo47 Linux - Desktop 1 08-16-2015 05:02 PM
problem with installing centos in virtualbox (Kernel driver not installed (rc=-1908) chintu00001 Linux - Virtualization and Cloud 2 05-15-2012 11:45 AM
[SOLVED] Kernel driver not installed (rc=-1908) larrym82 Linux - Virtualization and Cloud 1 12-28-2011 01:11 AM
Virtualbox Error - Kernel driver not installed (rc=-1908) callumacrae Linux - Software 11 10-28-2009 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration