You are not logged in.

#1 2017-03-21 19:33:24

zxSpectrum
Member
Registered: 2016-09-22
Posts: 7

VirtualBox kernel module is not loaded

Hello community,

I stuck into trouble, while I tried to run a vagrant box on my arch. The vagrant error says, that the kernel module is not loaded and I should call VBoxManage --version to get some more detail. The output of it is:

the vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.10.2-1-ARCH) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
5.1.18r114002

I googled around and found the information about vboxdrv, anyway sudo modprobe -a vboxdrv doesn't help. (does it come from the older systems?) The output is as follow:

modprobe: WARNING: Module vboxdrv not found in directory /lib/modules/4.10.2-1-ARCH

Any hints what the problem actually is? I would love it, when you could explain the issue to me, because I'd like to understeand this sh*t ^^

Thanks in advance!

Last edited by zxSpectrum (2017-03-21 19:35:33)

Offline

#2 2017-03-21 19:49:28

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: VirtualBox kernel module is not loaded

Have you installed the `virtualbox-host-modules-arch` package (or `virtualbox-host-dkms`)?

Otherwise, have you recently upgraded your kernel? What's the output of these commands?

pacman -Qi linux
uname -r

pkgs │ hacks │ cfg │ blag

Offline

#3 2017-03-21 20:07:37

zxSpectrum
Member
Registered: 2016-09-22
Posts: 7

Re: VirtualBox kernel module is not loaded

Thanks for quick reply!

The output of pacman -Qi linux

Name            : linux
Version         : 4.10.4-1
Description     : The Linux kernel and modules
Architecture    : x86_64
URL             : https://www.kernel.org/
Licenses        : GPL2
Groups          : base
Provides        : None
Depends On      : coreutils  linux-firmware  kmod  mkinitcpio>=0.7
Optional Deps   : crda: to set the correct wireless channels of your country
Required By     : nvidia
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 79.90 MiB
Packager        : Tobias Powalowski <tpowa@archlinux.org>
Build Date      : Sat Mar 18 19:40:56 2017
Install Date    : Tue Mar 21 19:44:48 2017
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

and uname -r

4.10.2-1-ARCH

I installed the virtualbox-host-modules-arch. Should I install the host-dkms?
I guess I need to update my kernel, do I understeand it correctly?

Offline

#4 2017-03-21 20:15:55

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: VirtualBox kernel module is not loaded

zxSpectrum wrote:

The output of pacman -Qi linux

Version         : 4.10.4-1

and uname -r

4.10.2-1-ARCH

I guess I need to update my kernel, do I understeand it correctly?

You will need to (re)boot into your new kernel. Unlike other distributions, Arch Linux does not keep old kernels and kernel modules around, so once you've updated your kernel package, loading any module will fail.

Check if the kernel that is in /boot is the correct one (or /boot/EFI/something - I don't know UEFI too well). You can check with

$ file /boot/vmlinuz-linux
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 4.10.4-1-ARCH (builduser@tobias) #1 SMP PREEMPT Sat Mar 18 19:39:18 CET 2017, RO-rootFS, swap_dev 0x4, Normal VGA

pkgs │ hacks │ cfg │ blag

Offline

#5 2017-03-21 20:24:41

zxSpectrum
Member
Registered: 2016-09-22
Posts: 7

Re: VirtualBox kernel module is not loaded

Thx! It worked!

Offline

#6 2017-03-21 20:51:13

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: VirtualBox kernel module is not loaded

You're welcome! smile

Please don't forget to mark your thread as solved by editing your first post and prepending '[SOLVED]' to its title.


pkgs │ hacks │ cfg │ blag

Offline

Board footer

Powered by FluxBB