Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Virtualbox Err: Kernel driver not installed Between OS boots

Here you can post threads/topics about programs like vmware, parallels, qemu, virtualbox, dosbox and all the other virtual machines/emulators that exist. This includes how to setup, suggestions on what works well with MEPIS and what doesn't, etc.
Message
Author
User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2406
Joined: Thu May 01, 2014 10:12 am

Virtualbox Err: Kernel driver not installed Between OS boots

#1 Post by mmikeinsantarosa » Sun Jun 29, 2014 12:19 am

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
LT: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2406
Joined: Thu May 01, 2014 10:12 am

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

#2 Post by mmikeinsantarosa » Sun Jun 29, 2014 12:20 am

Laptop OS is MX14
LT: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
joany
Forum Veteran
Forum Veteran
Posts: 5919
Joined: Mon Feb 12, 2007 1:45 pm

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

#3 Post by joany » Sun Jun 29, 2014 9:08 am

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.
MX-14; 3.12-0.bpo.1-686-pae kernel using 4GB RAM
2.4GHz AMD Athlon 4600+
NVidia GeForce 6150 LE; 304.121 Display Driver
You didn't slow down because you're old; you're old because you slowed down.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 22461
Joined: Wed Jul 19, 2006 6:13 am

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

#4 Post by Jerry3904 » Sun Jun 29, 2014 9:13 am

Sometimes there is a virtualization switch in the BIOS
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2406
Joined: Thu May 01, 2014 10:12 am

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

#5 Post by mmikeinsantarosa » Sun Jun 29, 2014 10:19 am

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
LT: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16294
Joined: Fri Dec 15, 2006 8:07 pm

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

#6 Post by Stevo » Sun Jun 29, 2014 10:25 am

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.

User avatar
mmikeinsantarosa
Forum Guide
Forum Guide
Posts: 2406
Joined: Thu May 01, 2014 10:12 am

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

#7 Post by mmikeinsantarosa » Sun Jun 29, 2014 10:42 am

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
LT: MX17.1 Quad Core model: Intel Core i7-6820HQ Kernel: 4.16.0-12.1-liquorix-amd64 (64 bit)
DT: Intel(R) Core i5-3.1GHz Kernel~3.9-1-mepis64 x86_64

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9327
Joined: Wed Jul 12, 2006 2:26 pm

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

#8 Post by kmathern » Sun Jun 29, 2014 11:01 am

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

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9392
Joined: Sun Dec 16, 2007 1:17 pm

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

#9 Post by dolphin_oracle » Sun Jun 29, 2014 1:08 pm

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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 16294
Joined: Fri Dec 15, 2006 8:07 pm

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

#10 Post by Stevo » Sun Jun 29, 2014 1:37 pm

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.

Post Reply

Return to “VMs/Emulators”