You are not logged in.

#1 2018-11-06 21:10:41

deepfuchsia
Member
Registered: 2018-11-01
Posts: 16

Can't run Virtualbox because can't load vboxdrv [SOLVED]

Hello there.
I've installed

virtualbox

with

virtualbox-host-modules-arch

and after that I tried to execute command

sudo modprobe vboxdrv

but it said me that it can't find vboxdrv inside /lib/modules/4.14.79-1-lts/ directory.
Then I checked /lib/modules/ and found out that there is vboxdrv.ko.xz inside /lib/modules/extramodules-ARCH/ directory, so I unxz'ed it and placed vboxdrv.ko to the /lib/modules/extramodules-ARCH/ directory and executed the modprobe command again.
This time it said

sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error

So what did I do wrong and how could I load the module to run the virtualbox?

Last edited by deepfuchsia (2018-11-07 07:53:48)

Offline

#2 2018-11-06 21:28:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,381

Re: Can't run Virtualbox because can't load vboxdrv [SOLVED]

virtualbox-host-modules-arch is only valid for the non-LTS linux kernel, as stated in https://wiki.archlinux.org/index.php/Vi … e_packages install virtualbox-host-dkms

Offline

#3 2018-11-06 21:45:12

deepfuchsia
Member
Registered: 2018-11-01
Posts: 16

Re: Can't run Virtualbox because can't load vboxdrv [SOLVED]

Wow! I couldn't even think that there is so much difference between lts and not-lts kernels. So, I installed virtualbox-host-dkms and then I also installed linux-lts-headers and after that sudo modprobe vboxdrv worked! I could run virtualbox without any errors.
Now I can go and sleep. Thank you, V1del-chan!

Offline

Board footer

Powered by FluxBB