You are not logged in.

#1 2013-01-29 16:18:03

developej
Member
Registered: 2011-10-02
Posts: 68

[SOLVED] vboxdrv fails to start

Hey,

on boot - "failed to load kernel modules".

Info:

⮀systemctl status systemd-modules-load.service
systemd-modules-load.service - Load Kernel Modules
	  Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
	  Active: failed (Result: exit-code) since Tue 2013-01-29 18:30:38 CET
	    Docs: man:systemd-modules-load.service(8)
	          man:modules-load.d(5)
	 Process: 125 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)

I only have virtualbox.conf in /etc/modules-load.d/

⮀cat /etc/modules-load.d/virtualbox.conf
vboxdrv
⮀sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error

I don't run custom kernel.


Ideas?

Last edited by developej (2013-01-30 23:36:22)

Offline

#2 2013-01-30 10:45:36

rasertux
Member
From: Florianópolis, Brazil
Registered: 2012-03-03
Posts: 46

Re: [SOLVED] vboxdrv fails to start

Do you have instaled linux-headers?

Offline

#3 2013-01-30 11:45:04

developej
Member
Registered: 2011-10-02
Posts: 68

Re: [SOLVED] vboxdrv fails to start

I don't have it. Everything worked until the last update without, and I don't see that anything is changed dependency-vise?
linux-headers are required by:

virtualbox-guest-dkms (optional)
virtualbox-host-dkms (optional)

and I don't have those too.
I will try to install linux-headers and see if it helps, but will have to do that when I get back home...Did you have a similar issue which was fixed by installing linux-headers?

Offline

#4 2013-01-30 12:00:59

rasertux
Member
From: Florianópolis, Brazil
Registered: 2012-03-03
Posts: 46

Re: [SOLVED] vboxdrv fails to start

In arch i never have problem but always instaled linux-headers.
In fedora a try to install virtualbox and the vboxdrv don't run. Installing linux-headers solve the problem...

"Sorry for my english"

Offline

#5 2013-01-30 12:01:56

rasertux
Member
From: Florianópolis, Brazil
Registered: 2012-03-03
Posts: 46

Re: [SOLVED] vboxdrv fails to start

Linux-Headers is necessary to run external modules in kernel.

Offline

#6 2013-01-30 12:05:01

developej
Member
Registered: 2011-10-02
Posts: 68

Re: [SOLVED] vboxdrv fails to start

Ok, thanks, I will try it when I get home and hopefully mark this as solved smile

Offline

#7 2013-01-30 12:13:41

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,091

Re: [SOLVED] vboxdrv fails to start

rasertux wrote:

Linux-Headers is necessary to run external modules in kernel.

No it's not. linux-headers is needed to *compile* external modules. Virtualbox modules in [community] are already compiled.

Offline

#8 2013-01-30 13:59:12

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: [SOLVED] vboxdrv fails to start

exec format error happens afaik when you try to load a 32bit module on a 64bit machine.

Offline

#9 2013-01-30 14:26:20

AlexRu
Member
Registered: 2012-09-18
Posts: 33

Re: [SOLVED] vboxdrv fails to start

what output of dmesg?
exec error can occur if vermagic of module and kernel is not matching or if there is unresolved symbol for example. Even If you update system but just forget to reboot you can get a vermagic error

you can install mkinitcpio hook from aur to generate appropriate module for every kernel in your system
https://aur.archlinux.org/packages/vboxhost-hook/
mkinitcpio -p linux

Last edited by AlexRu (2013-01-30 14:26:42)

Offline

#10 2013-01-30 15:33:45

mike4ca
Member
Registered: 2011-12-18
Posts: 8

Re: [SOLVED] vboxdrv fails to start

I don't have much to offer except to confirm that I get the same error after the update I did a couple days ago.  I did not play with it as I had other things to work on (sometimes things get resolved with subsequent updates).  I am running 32bit version of Arch within VirtualBox (no VTx).  Tonight I can provide my dmesg and try the mkinitcpio hook.

edit: I don't think the reference to the mkinitcpio hook is appropriate.  This is a problem with the Arch Linux guest driver not installing.  The aur package states it is for host modules.

Last edited by mike4ca (2013-01-30 15:38:10)

Offline

#11 2013-01-30 17:00:14

developej
Member
Registered: 2011-10-02
Posts: 68

Re: [SOLVED] vboxdrv fails to start

rasertux wrote:

Linux-Headers is necessary to run external modules in kernel.

As arojas said, this did not fix the problem.

IsSuE wrote:

exec format error happens afaik when you try to load a 32bit module on a 64bit machine.

How did this start to happen and how do I fix it? I am using x64 arch linux.

AlexRu wrote:

what output of dmesg?
exec error can occur if vermagic of module and kernel is not matching or if there is unresolved symbol for example. Even If you update system but just forget to reboot you can get a vermagic error

you can install mkinitcpio hook from aur to generate appropriate module for every kernel in your system
https://aur.archlinux.org/packages/vboxhost-hook/
mkinitcpio -p linux

Do I need to paste whole dmesg or you need something specific? (I really have no clue what to look for)
How can I check if it is matching?

Thanks

Offline

#12 2013-01-30 23:36:03

developej
Member
Registered: 2011-10-02
Posts: 68

Re: [SOLVED] vboxdrv fails to start

Just updated linux to 3.7.5-1 and the issue is gone.

Offline

#13 2013-01-31 04:09:44

mike4ca
Member
Registered: 2011-12-18
Posts: 8

Re: [SOLVED] vboxdrv fails to start

I just updated as well.  Linux and virtualbox-guest-modules were updated.  As I said in my earlier post, usually things like this clear up in a couple days!  Rolling release wink

Offline

Board footer

Powered by FluxBB