You are not logged in.

#1 2018-01-22 02:31:17

matrix432
Member
Registered: 2017-07-04
Posts: 30

[Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

Hi,

A few days ago, I've compiled a Linux 4.14.14 kernel on arch and installed it. After installing the kernel, I've
installed the linux 4.14.14 headers from https://www.archlinux.org/packages/core … x-headers/.

When I try to start VirtualBox, it gives me the following message:

 WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.14.14-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.

At startup, the kernel modules would fail to load and reinstalling VirtualBox doesn't fix the problem.

Loading

● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2018-01-22 10:20:20 AWST; 2s ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 2428 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 2428 (code=exited, status=1/FAILURE)

When I try to load vboxdrv manually, it says that the modules doesn't exist in /lib/modules/4.14.14-ARCH, but vboxdrv and
other VirtualBox modules exist. /sbin/vboxconfig doesn't exist.

It's not clear why it's saying the modules doesn't exist and why wouldn't they load.

Regards,
Toni

Last edited by matrix432 (2018-01-22 03:41:12)

Offline

#2 2018-01-22 02:40:51

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

matrix432 wrote:

When I try to load vboxdrv manually, it says that the modules doesn't exist in /lib/modules/4.14.14-ARCH, but vboxdrv and
other VirtualBox modules exist

How have you verified this?  Please post the commands you used and their outputs.

Offline

#3 2018-01-22 02:45:00

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

modprobe vboxdrv

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.14.14-ARCH

ls -Fxtsa /lib/modules/4.14.14-ARCH/vbox*ko

708 /lib/modules/4.14.14-ARCH/vboxdrv.ko   20 /lib/modules/4.14.14-ARCH/vboxnetadp.ko   60 /lib/modules/4.14.14-ARCH/vboxnetflt.ko
 56 /lib/modules/4.14.14-ARCH/vboxpci.ko

Offline

#4 2018-01-22 02:51:33

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

What are the outputs of

modprobe -v vboxdrv
modinfo /lib/modules/4.14.14-ARCH/vboxdrv.ko

Offline

#5 2018-01-22 02:54:25

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

modprobe -v vboxdrv

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.14.14-ARCH

modinfo /lib/modules/4.14.14-ARCH/vboxdrv.ko

filename:       /lib/modules/4.14.14-ARCH/vboxdrv.ko
version:        5.2.6 r120293 (0x00290000)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle Corporation
srcversion:     4880B21EFF1B605D6402982
depends:        
name:           vboxdrv
vermagic:       4.14.13-1-ARCH SMP preempt mod_unload modversions 
parm:           force_async_tsc:force the asynchronous TSC mode (int)

Offline

#6 2018-01-22 02:56:32

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

Lets check some more

ls -lad /lib
uname -a

Offline

#7 2018-01-22 02:58:19

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

ls -lad /lib

lrwxrwxrwx 1 root root 7 Oct 17 15:32 /lib -> usr/lib

uname -a

Linux matrix386 4.14.14-ARCH #1 SMP PREEMPT Thu Jan 18 17:40:54 AWST 2018 x86_64 GNU/Linux

Offline

#8 2018-01-22 03:04:47

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

Did you copy the 4.14.13 modules to 4.14.14?
Edit:
Also does the custom kernel uses the same hooks as the arch kernel?
Edit2:
These hooks /usr/share/libalpm/hooks/60-linux.hook and /usr/share/libalpm/hooks/90-linux.hook

Last edited by loqs (2018-01-22 03:08:08)

Offline

#9 2018-01-22 03:08:51

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

No I didn't. I just downloaded the kernel from kernel.org and done the installation steps from
https://wiki.archlinux.org/index.php/Ke … ompilation

The default arch configuration has been copied using the following command:

zcat /proc/config.gz > .config

Then there is a extramodules-4.14-ARCH folder and I've extracted the VirtualBox modules and then copied them
to the 4.14.14-ARCH.

I don't have the 4.14.13 kernel.

Last edited by matrix432 (2018-01-22 03:11:51)

Offline

#10 2018-01-22 03:12:16

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

# depmod 4.14.14-ARCH
# modprobe vboxdrv

Edit:
I would also put the virtualbox modules back in the extramodules-4.14-ARCH so whatever put them there can still find them.

Last edited by loqs (2018-01-22 03:15:27)

Offline

#11 2018-01-22 03:15:17

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

Well hooks are different.

diff /usr/share/libalpm/hooks/60-linux.hook /usr/share/libalpm/hooks/90-linux.hook

5,7c5,6
< Operation = Remove
< Target = usr/lib/modules/4.14.11-1-ARCH/*
< Target = usr/lib/modules/extramodules-4.14-ARCH/*
---
> Target = boot/vmlinuz-linux
> Target = usr/lib/initcpio/*
10c9
< Description = Updating linux module dependencies...
---
> Description = Updating linux initcpios...
12c11
< Exec = /usr/bin/depmod 4.14.11-1-ARCH
---
> Exec = /usr/bin/mkinitcpio -p linux

Edit:

I have both compressed and uncompressed modules in extramodules-4.14-ARCH. The uncompressed modules with just *ko
extensions have been copied to the 4.14.14-ARCH folder.

I've ran depmod 4.14.14-ARCH (returned no output) but it still wont load the modules.

Last edited by matrix432 (2018-01-22 03:24:11)

Offline

#12 2018-01-22 03:18:29

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

See post #10 and did you install your custom kernel over the kernel installed by the linux package without removing it?

Offline

#13 2018-01-22 03:26:21

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

Yes, the custom kernel has been installed over the 4.14.11 kernel and it's not removed.

Offline

#14 2018-01-22 03:29:38

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

What method was used to install the vbox modules?

Offline

#15 2018-01-22 03:33:56

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

I used pacman to install the modules. Command: pacman -S virtualbox-host-modules-arch.

pacman -Q | grep virtualbox

virtualbox 5.2.6-1
virtualbox-ext-oracle 5.2.4-1
virtualbox-host-modules-arch 5.2.6-1

Offline

#16 2018-01-22 03:40:39

matrix432
Member
Registered: 2017-07-04
Posts: 30

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

In fact after running depmode vboxdrv, I didn't ran modprobe vboxdrv immediately. Now it works.

Thanks.

Last edited by matrix432 (2018-01-22 03:41:41)

Offline

#17 2018-01-22 03:46:29

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: [Solved] Unable to start Virtualbox on Arch 4.14.14 Kernel

I suggest switching virtualbox-host-modules-arch to virtualbox-host-modules-dkms which will rebuild the virtualbox modules and call depmod as needed.
I would also suggest removing the linux packages(s) you overwrote.

Offline

Board footer

Powered by FluxBB