Page 1 of 3

Virtualbox Err: Kernel driver not installed Between OS boots

Posted: Sun Jun 29, 2014 12:19 am
by mmikeinsantarosa
I have the latest virtualbox installed ( 4.3.12 ) and a fully functional win98se VM installed. If I shut down my laptop and reboot then launch virtualbox, as soon as I startup my VM I get:
Failed to open a session for the virtual machine win983e.
The virtual machine 'win983e' has terminated unexpectedly during startup with exit code 1.
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

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.
I can open a terminal and from su run "/etc/init.d/vboxdrv setup"
and that does fix the problem until...
I shutdown and restart my laptop and I have to run /etc/init.d/vboxdrv setup again.

Anybody else having this problem?

Mike

Re: Virtualbox Err: Kernel driver not installed Between OS +

Posted: Sun Jun 29, 2014 12:20 am
by mmikeinsantarosa
Laptop OS is MX14

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 9:08 am
by joany
Is the DKMS package installed on your system?
DKMS is a framework designed to allow individual kernel modules to be upgraded without changing the whole kernel. It is also very easy to rebuild modules as you upgrade kernels.

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 9:13 am
by Jerry3904
Sometimes there is a virtualization switch in the BIOS

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 10:19 am
by mmikeinsantarosa
1-virtualization is enabled, the VM works just fine after running the command

2-
Is the DKMS package installed on your system?
I looked for DKMS packages and it's not intuitively obious which one to select. I tried a few but got the old broken references message.

Which DKMS should be installed?
DKMS Kernal Main is installed.

Mike

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 10:25 am
by Stevo
You just need the "dkms" package, the VB debs from Oracle have all the other dkms stuff internally.

(Jerry suggested enabling virtualization in the BIOS)

Yes, but then running the command to build the kernel module is successful and the OP can run VB as normal, so virtualization does work. Somehow, the machine is forgetting the modules are built and installed.

I'd try running as root and see if VB has the same problem, and also run the MX User Assistant and make sure your standard user belongs to the "vboxusers" group. Look under the "Group Membership" tab.

Otherwise, these are the important files:

Code: Select all

/dev/vboxdrv
/dev/vboxdrvu
/etc/init.d/vboxdrv
/etc/rc0.d/K02vboxdrv
/etc/rc1.d/K02vboxdrv
/etc/rc2.d/S03vboxdrv
/etc/rc3.d/S03vboxdrv
/etc/rc4.d/S03vboxdrv
/etc/rc5.d/S03vboxdrv
/etc/rc6.d/K02vboxdrv
/etc/udev/rules.d/60-vboxdrv.rules
/lib/modules/${kernel-version}/kernel/misc/vboxdrv.ko
with the last one being the actual driver file, vboxdrv.ko. Most of the preceding have to do with loading the file at boot.

You can search the bootup messages for vbox errors with

Code: Select all

dmesg | grep vbox
You can try manually loading that driver file first with

Code: Select all

su -c 'modprobe vboxdrv'
An error here will at least be informative.

There are a bazillion results when the error code is searched for on the Web, however, most don't agree on the cause. One person fixed it by uninstalling and reinstalling VB and the extension pack.

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 10:42 am
by mmikeinsantarosa
inventory:
Code:
/dev/vboxdrv - missing
/dev/vboxdrvu - missing
/etc/init.d/vboxdrv - present
/etc/rc0.d/K02vboxdrv - missing ;"k02virtualbox" present
/etc/rc1.d/K02vboxdrv - missing; same as above
/etc/rc2.d/S03vboxdrv - missing
/etc/rc3.d/S03vboxdrv - missing
/etc/rc4.d/S03vboxdrv - missing
/etc/rc5.d/S03vboxdrv - missing
/etc/rc6.d/K02vboxdrv - missing ;"k02virtualbox" present
/etc/udev/rules.d/60-vboxdrv.rules - present
/lib/modules/${kernel-version}/kernel/misc/vboxdrv.ko - present
If these are the important ones, I'm in pretty bad shape!

Yet-teh-hay?

Mike

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 11:01 am
by kmathern
The dkms package should've already been installed. For virtualbox I suspect you might have installed just the 'virtualbox' package but not the virtualbox-dkms or virtualbox-source packages which are needed for building the module.

Lets see what's currently installed for dkms and virtualbox.

Code: Select all

dpkg -l | grep  -e virtualbox -e dkms

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 1:08 pm
by dolphin_oracle
did you install the virtual box in the debian repo or direct from the oracle site? I have found more consistent success with the oracle one.

Re: Virtualbox Err: Kernel driver not installed Between OS b

Posted: Sun Jun 29, 2014 1:37 pm
by Stevo
If these are the important ones, I'm in pretty bad shape!

Yet-teh-hay?

Mike
Well, I have to admit those are where those files are in my MEPIS 12 installation. Can someone successfully running VB in MX run a "locate" on "vboxdrv" and see what files they get? I don't know how different the init boot sequence is in MX, or if getting "K02" tacked onto the start of some init files is normal.