Ask Your Question
4

VirtualBox Kernel driver not installed (rc=-1908) after kernel upgrade

asked 2012-06-21 12:44:05 -0600

Majid Azimi gravatar image

updated 2012-06-21 12:52:23 -0600

Hi guys,

I have installed VirtualBox from rpmfusion on fedora 17. Now I have updated to kernel 3.4.3-1.fc17.x86_64 virtualbox shows this error when running a ubuntu VM:

Failed to open a session for the virtual machine Ubuntu.
The virtual machine 'Ubuntu' has terminated unexpectedly during startup with exit code 1.
Detail:
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

There is a second error message:

Kernel driver not installed (rc=-1908)    
The VirtualBox Linux kernel driver (vboxdrv) is probably not loaded.    
If you installed or VirtualBox OSE package recently you need to restart the computer for the driver to load.    
Alternatively, you may attempt to load the driver by issuing the following command with system administrator (root) privileges:    
'/etc/sysconfig/modules/VirtualBox-OSE.modules'

I looked at /etc/sysconfig/modules/VirtualBox-OSE.modules and it doesn't exists. There is another similar file: /etc/sysconfig/modules/VirtualBox.modules. I ran this, but it shows:

ERROR: Module vboxdrv not found.
ERROR: Module vboxnetflt not found.
ERROR: Module vboxnetadp not found.

Can anyone help?

VirtualBox: VirtualBox-4.1.16-3.fc17.x86_64

kmod-VirtualBox: kmod-VirtualBox-4.1.16-1.fc17.2.x86_64

dkms: dkms-2.2.0.3-3.fc17.noarch

edit retag flag offensive close merge delete

Comments

Recent versions will ask to run sudo su -c '/etc/init.d/vboxdrv setup' which will only work if Secure Boot is fully disabled. Some UEFI setup screens call this "Setup Mode."

rayfoss gravatar imagerayfoss ( 2016-03-17 08:39:11 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
6

answered 2012-11-23 14:39:39 -0600

aestu gravatar image

updated 2012-11-23 14:41:41 -0600

Install specific kernel modules package for your kernel.

Get your version kernel:

$ uname -r

Then install the corresponding kmod-VirtualBox-* package:

$ yum search kmod-VirtualBox

Finally, run:

$ /etc/sysconfig/modules/VirtualBox.modules
edit flag offensive delete link more

Comments

Thanks!!! :)

lourencoccc gravatar imagelourencoccc ( 2013-03-09 17:10:20 -0600 )edit

My kmod was deleted for no reason. Helped me a lot your guide, thanks !

Ronald Andrade gravatar imageRonald Andrade ( 2013-04-18 03:01:08 -0600 )edit

@Ronald, "Operation not permitted" etc is often because you are running a command as a user who lacks system privileges to perform the action. The root user will usually be able to do it. These instructions say to run "$ /etc/sysconfig/modules/VirtualBox.modules" but a more accurate instruction is "# /etc/sysconfig/modules/VirtualBox.modules" where "#" indicates to run the command as root. They also don't say to actually install the modules you need, for me the command was "# yum install kmod-VirtualBox-3.9.2-200.fc18.x86_64.x86_64".

neekfenwick gravatar imageneekfenwick ( 2013-05-17 00:42:15 -0600 )edit

Thank you so much, it's work for me

Malek B. gravatar imageMalek B. ( 2013-06-24 05:21:10 -0600 )edit

Thanks for the helpful answer. I had to run /etc/sysconfig/modules/kvm.modules instead of the last step to get it working with F18.

tomjowitt gravatar imagetomjowitt ( 2013-07-22 07:36:44 -0600 )edit
3

answered 2012-06-22 00:02:50 -0600

davidva gravatar image

updated 2012-06-22 00:09:54 -0600

try from console

su -c '/etc/init.d/vboxdrv setup'

if it no work then remove and reinstall

su -c 'yum -y remove virtualbox'

su -c 'yum -y install virtualbox'

other solution

There are two types of virtualbox. virtualbox and virtualbox ose, I recommend you try the original version of Oracle Virtualbox site, you can easily install it via PostinstallerF

http://sourceforge.net/projects/postinstaller/

edit flag offensive delete link more

Comments

1

I'm new to fedora, but couldn't one simply run yum reinstall instead of remove and then install?

Lindh-E gravatar imageLindh-E ( 2014-06-21 12:35:36 -0600 )edit

I'm using VirtualBox over Oracle linux 7 it is the same as Centos 7 and su -c '/etc/init.d/vboxdrv setup' solved the problem . Thanks

Hamada gravatar imageHamada ( 2015-05-29 12:11:10 -0600 )edit
2

answered 2012-11-23 19:51:51 -0600

tzicatl gravatar image

Every time Fedora installs a new kernel and VirtualBox stops working, this is the only package I need to install: kmod-VirtualBox. It always depends on the latest installed kernel version. That way is easier than looking for a specific version of kmod-VirtualBox.

Don't forget to restart your system or run /etc/sysconfig/modules/VirtualBox.modules as others have already pointed out.

edit flag offensive delete link more

Comments

This happens on every upgrade. Sometimes there is no kmod built for the latest... any idea how to fix this... virtualbox is not the type of program I can live without for a day.

rayfoss gravatar imagerayfoss ( 2014-10-02 09:36:44 -0600 )edit

I get this errors that are here http://pastebin.com/4CubwvM8

RealPlayerCraft gravatar imageRealPlayerCraft ( 2016-02-07 13:52:30 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2012-06-21 12:44:05 -0600

Seen: 73,382 times

Last updated: Nov 23 '12