VirtualBox

Ticket #7536 (reopened defect)

Opened 4 years ago

Last modified 2 years ago

kernel driver not installed

Reported by: matteosistisette Owned by:
Priority: major Component: host support
Version: VirtualBox 3.2.8 Keywords: vboxdrv, kernel module, recompile
Cc: Guest type: Windows
Host type: Linux

Description

Every once in a while (I suppose every time the kernel gets updated thruough ubuntu's automatic update manager), after I reboot my ubuntu host and try to open Virtual Box and start one of my virtual machines, I get the following error:

""" 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. """

Then I run the abovementioned command and everything gets fixed, but it is ridiculous that I have to do so every time. Would you imagine if EVERY application I use required the same??

Needless to say, I HAVE dkms installed but this happens allthesame.

Attachments

vbox-install.log Download (5.7 KB) - added by matteosistisette 4 years ago.

Change History

comment:1 Changed 4 years ago by Technologov

Unfortunately the problem is that Linux breaks backward compatibility on every upgrade. So point this problem to Linus Torvalds. I had a discussion with Creg-Hartman, one of Linus' Captains from Novell SUSE Linux on this topic but we are completely disagree with each other. This problem affects *all* the Linux distros.

And you have to do that only to EVERY application that had drivers/kernel modules (very few have). This obviously includes NVIDIA drivers as well.

-Technologov

comment:2 Changed 4 years ago by matteosistisette

Ok, I see.

Then what does the second part of the error message mean?

"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"

If the dkms package does not recompile the kernel module when necessary, then that part should be suppressed.

By the way I never recompiled any nvidia drivers and never got any error message related to nvidia... but maybe an nvidia driver package update is included and hence automatically downloaded every time a new version of the kernel is?

comment:3 Changed 4 years ago by Technologov

I am not sure how DKMS works. But it is a good question.

comment:4 Changed 4 years ago by michael

It definitely works here (Ubuntu 64bit host, recently upgraded to Maverick) and DKMS should do this by design. Perhaps there is a problem with the way DKMS is set up on your system? Or perhaps DKMS is not being used on your system for some reason? Could you take a look in (and attach) the log file from the module build (/var/log/vbox-install.log)?

Changed 4 years ago by matteosistisette

comment:5 Changed 4 years ago by matteosistisette

attached

comment:6 Changed 4 years ago by matteosistisette

there are indeed a lot of error messages somewhat related to dkms, but I have no idea what exactly is wrong

comment:7 Changed 4 years ago by michael

My feeling here is that dkms has got slightly confused due to older versions of modules which got left on your system and that this is keeping it from working correctly. Perhaps you could file a bug for this with Ubuntu? The maintainer of the Ubuntu dkms package is also the upstream maintainer, so he should have a pretty good idea of whether this is working correctly or not. If you write the link to the Ubuntu bug on this bug tracker we will be able to follow the ticket too and possibly resolve this together.

comment:8 Changed 4 years ago by frank

Still relevant with VBox 3.2.10?

comment:9 Changed 4 years ago by matteosistisette

I don't know. I'll have to wait untill a new version of the kernel gets released and the kernel gets automatically updated

comment:10 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme

comment:11 Changed 2 years ago by matteosistisette

  • Status changed from closed to reopened
  • Resolution worksforme deleted

This is still an issue at least with VB 4.0.12

Here's the output when I run vboxdrv setup:

$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/sudoers.d/puredata is mode 0644, should be 0440
[sudo] password for teo: 
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                              Error! Could not locate dkms.conf file.
File:  does not exist.
Error! Could not locate dkms.conf file.
File:  does not exist.
Error! Could not locate dkms.conf file.
File:  does not exist.
                                                                         [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS           [ OK ] 
 * Starting VirtualBox kernel modules                                    [ OK ]

comment:12 Changed 2 years ago by frank

Your DKMS config is somehow screwed up. What Linux distribution is that?

comment:13 Changed 2 years ago by matteosistisette

Hey for some reason I didn't get a notification for the reply...

This is Ubuntu 11.10

The kernel got updated again and I got the issue again. Here's the output from vboxdrv setup again:

$ sudo /etc/init.d/vboxdrv setup
[sudo] password for teo: 
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                              Error! Could not locate dkms.conf file.
File:  does not exist.
Error! Could not locate dkms.conf file.
File:  does not exist.
Error! Could not locate dkms.conf file.
File:  does not exist.
                                                                         [ OK ]
 * Trying to register the VirtualBox kernel modules using DKMS           [ OK ] 
 * Starting VirtualBox kernel modules                                    [ OK ]

comment:14 Changed 2 years ago by Christian2111

Your problems are probably based on directories that old versions of virtualbox have left behind in the directory /var/lib/dkms/vboxhost. Delete all sub-directories of old virtualbox versions from this directory.

Also see:

 https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/830915  http://8thstring.blogspot.com/2012/01/error-could-not-locate-dkmsconf-file.html

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use