You are not logged in.
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
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
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
What are the outputs of
modprobe -v vboxdrv
modinfo /lib/modules/4.14.14-ARCH/vboxdrv.ko
Offline
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
Lets check some more
ls -lad /lib
uname -a
Offline
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
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
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
# 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
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
See post #10 and did you install your custom kernel over the kernel installed by the linux package without removing it?
Offline
Yes, the custom kernel has been installed over the 4.14.11 kernel and it's not removed.
Offline
What method was used to install the vbox modules?
Offline
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
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
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