You are not logged in.

#1 2021-11-13 19:00:41

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 125

Virtualbox unable to load kernel modules

Hello,
I installed virtualbox on my system, but I am unable to start a machine. Here are the errors:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing

'/sbin/vboxconfig'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

After checking journal, there are 3 errors regarding the problem:

Nov 13 19:21:06 Samo-PCTP systemd-modules-load[225]: Failed to find module 'vboxdrv'
Nov 13 19:21:06 Samo-PCTP systemd-modules-load[225]: Failed to find module 'vboxnetadp'
Nov 13 19:21:06 Samo-PCTP systemd-modules-load[225]: Failed to find module 'vboxnetflt'
Nov 13 19:21:15 Samo-PCTP lightdm[641]: gkr-pam: unable to locate daemon control file
Nov 13 19:23:39 Samo-PCTP VirtualBoxVM[2402]: <html><b>Kernel driver not installed (rc=-1908)</b><br/><br/>The VirtualBox Linux kernel driver is either not loaded or not set up correctly>
                                              what:  3
                                              VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
                                              </html>
Nov 13 19:42:06 Samo-PCTP VirtualBoxVM[4387]: <html><b>Kernel driver not installed (rc=-1908)</b><br/><br/>The VirtualBox Linux kernel driver is either not loaded or not set up correctly>
                                              what:  3
                                              VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
                                              </html>
Nov 13 19:44:42 Samo-PCTP VirtualBoxVM[4913]: <html><b>Kernel driver not installed (rc=-1908)</b><br/><br/>The VirtualBox Linux kernel driver is either not loaded or not set up correctly>
                                              what:  3
                                              VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
                                              </html>

--

I tried loading the kernel modules manually, but I was unsuccessful:

sudo modprobe vboxdrv      
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.10.78-1-lts

Furthermore, I tried re-installing virtualbox and running "sudo /sbin/virtualbox" which returned "sudo: /sbin/vboxconfig: command not found".

I use Linux-LTS kernel.

Thank you


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#2 2021-11-13 19:10:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Virtualbox unable to load kernel modules

Well did you actually install the modules?
https://wiki.archlinux.org/title/Virtua … inux_hosts


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-11-13 19:21:42

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 125

Re: Virtualbox unable to load kernel modules

Slithery wrote:

Well did you actually install the modules?
https://wiki.archlinux.org/title/Virtua … inux_hosts

Yes, I installed  virtualbox-host-dkms and  linux-lts-headers.

Last edited by othersamo_ (2021-11-13 19:26:11)


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2021-11-13 22:06:11

Ammako
Member
Registered: 2021-07-16
Posts: 267

Re: Virtualbox unable to load kernel modules

Check "dkms status", and then "dkms autoinstall" if the virtualbox modules are not present?

Did you try '/sbin/vboxconfig' as root, as suggested? EFI Secure Boot?

Last edited by Ammako (2021-11-13 22:07:29)

Offline

#5 2021-11-14 12:17:54

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 125

Re: Virtualbox unable to load kernel modules

Hello,
I am sending results of the commands.

> dkms status          
vboxhost/6.1.28_OSE, 5.10.78-1-lts, x86_64: installed

"dkms autoinstall" passed no output

"/sbin/vboxconfig" returned info that the comman was not found


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#6 2022-01-29 13:02:57

1uk
Member
Registered: 2013-06-09
Posts: 30

Re: Virtualbox unable to load kernel modules

Did you solve the problem?
I have the same.

Offline

#7 2022-02-01 16:58:45

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

❯ sudo dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

❯ sudo dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.
❯ uname -r
5.16.1-arch1-1-vfio

EDIT: newest vfio kernel release solved it - virtual box is starting as expected again

Last edited by hugsie (2022-02-02 09:43:42)

Offline

#8 2022-06-10 21:17:33

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

And with the latest kernel update i have the same shit again. virtual box wont start. latest version of the vfio kernel is still 5.17.4.

Offline

#9 2022-06-11 06:00:01

seth
Member
Registered: 2012-09-03
Posts: 51,215

Re: Virtualbox unable to load kernel modules

Well, "fix your shit"…

❯ sudo dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

doesn't suggest theere's a sane installation of https://archlinux.org/packages/communit … host-dkms/

dkms status
sudo pacman -Qikk virtualbox-host-dkms
pacman -Qs linux

Offline

#10 2022-06-14 11:28:12

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

❯ sudo pacman -Qikk virtualbox-host-dkms
Name            : virtualbox-host-dkms
Version         : 6.1.34-4
Description     : VirtualBox Host kernel modules sources
Architecture    : x86_64
URL             : https://virtualbox.org/
Licenses        : GPL  custom
Groups          : None
Provides        : VIRTUALBOX-HOST-MODULES
Depends On      : dkms  gcc  make
Optional Deps   : None
Required By     : virtualbox
Optional For    : None
Conflicts With  : virtualbox-source  virtualbox-host-source
Replaces        : virtualbox-source  virtualbox-host-source  virtualbox-host-modules-lts
Installed Size  : 10.06 MiB
Packager        : Christian Hesse <eworm@archlinux.org>
Build Date      : Mon 30 May 2022 08:37:05 CEST
Install Date    : Tue 31 May 2022 13:56:12 CEST
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

virtualbox-host-dkms: 402 total files, 0 altered files

when booting the non vfio kernel virtualbox works as intended.

Offline

#11 2022-06-14 11:36:00

seth
Member
Registered: 2012-09-03
Posts: 51,215

Re: Virtualbox unable to load kernel modules

seth also wrote:

dkms status
pacman -Qs linux

There's more to dkms than just having a dkms kernel package installed.
I'll just go on a limb and say "most notably https://aur.archlinux.org/packages/linux-vfio-headers "

Offline

#12 2022-06-14 12:07:28

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

❯ pacman -Qs linux
local/alsa-lib 1.2.7-2
    An alternative implementation of Linux sound support
local/alsa-utils 1.2.7-1
    Advanced Linux Sound Architecture - Utilities
local/an2linuxserver-git r32.58648ec-1
    Sync android notifications encrypted to a linux desktop with tcp or bluetooth
local/android-udev 20220102-1
    Udev rules to connect Android devices to your linux box
local/arch-install-scripts 24-2
    Scripts to aid in installing Arch Linux
local/archlinux-keyring 20220424-1
    Arch Linux PGP keyring
local/asp 8-1
    Arch Linux build source file management tool
local/autofs 5.1.4-3
    A kernel-based automounter for Linux
local/avahi 0.8+22+gfd482a7-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/bitbox-udev 1-3
    Udev rules to connect bitbox01 and bitbox02 hardware wallets to your linux box
local/bpf 5.18-1 (linux-tools)
    BPF tools
local/bridge-utils 1.7.1-1
    Utilities for configuring the Linux ethernet bridge
local/brltty 6.4-10
    Braille display driver for Linux/Unix
local/cgroup_event_listener 5.18-1 (linux-tools)
    Simple listener of cgroup events
local/cpupower 5.18-1 (linux-tools)
    Linux kernel tool to examine and tune power saving related features of your processor
local/ddcutil 1.2.2-2
    Query and change Linux monitor settings using DDC/CI and USB.
local/devtools 20220207-2
    Tools for Arch Linux package maintainers
local/efibootmgr 17-2
    Linux user-space application to modify the EFI Boot Manager
local/filesystem 2021.12.07-1
    Base Arch Linux files
local/hdparm 9.63-2
    A shell utility for manipulating Linux IDE drive/driver parameters
local/hyperv 5.18-1 (linux-tools)
    Hyper-V tools
local/i2c-tools 4.3-3
    Heterogeneous set of I2C tools for Linux that used to be part of lm-sensors
local/iptables 1:1.8.8-1
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 29-3
    Linux kernel module management tools and library
local/ledger-udev 1-7
    Udev rules to connect a ledger wallet to your linux box
local/libaio 0.3.113-1
    The Linux-native asynchronous I/O facility (aio) library
local/libcap-ng 0.8.3-1
    A library for Linux that makes using posix capabilities easy
local/libiec61883 1.2.0-6
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libraw1394 2.1.2-3
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libtraceevent 1:1.6.0-1
    Linux kernel trace event library
local/liburing 2.1-1
    Linux-native io_uring I/O access library
local/libva 2.14.0-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-3
    a library that exposes a event API on top of Linux futexes
local/linux 5.18.3.arch1-1
    The Linux kernel and modules
local/linux-api-headers 5.17.5-2
    Kernel headers sanitized for use in userspace
local/linux-firmware 20220509.b19cbdc-1
    Firmware files for Linux
local/linux-firmware-whence 20220509.b19cbdc-1
    Firmware files for Linux - contains the WHENCE license file which documents the vendor license details
local/linux-headers 5.18.3.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/linux-vfio 5.17.4.arch1-1
    The Linux kernel and modules
local/linux-vfio-docs 5.17.4.arch1-1
    Documentation for the Linux kernel
local/linux-vfio-headers 5.17.4.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/lsp-plugins 1.2.1-1 (ladspa-plugins lv2-plugins pro-audio vst-plugins)
    Collection of free plugins compatible with LADSPA, LV2 and LinuxVST
local/man-pages 5.13-1
    Linux man pages
local/mdadm 4.2-2
    A tool for managing/monitoring Linux md device arrays, also known as Software RAID
local/multipath-tools 0.9.0-1
    Multipath tools for Linux (including kpartx)
local/ndctl 73-1
    Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
local/net-tools 2.10-1
    Configuration tools for Linux networking
local/nvme-cli 2.0-2
    NVM-Express user space tooling for Linux
local/pacman-mirrorlist 20220605-1
    Arch Linux mirror list for use by pacman
local/pacolog 2.1.0-1
    List recent commits for Arch Linux packages
local/perf 5.18-1 (linux-tools)
    Linux kernel performance auditing tool
local/python-distro 1.7.0-1
    Linux OS platform information API
local/python2-fuse 1.0.0-2
    This is a Python 2 interface to libfuse (https://github.com/libfuse/libfuse), a simple interface for userspace programs
    to export a virtual filesystem to the Linux kernel
local/shorewall 5.2.8-1
    An iptables-based firewall for Linux systems
local/streamdeck 1.6.0-1
    Utility to control Elgato StreamDeck on Linux
local/syslinux 6.04.pre2.r11.gbf6db5b4-3
    Collection of boot loaders that boot from FAT, ext2/3/4 and btrfs filesystems, from CDs and via PXE
local/tmon 5.18-1 (linux-tools)
    Monitoring and Testing Tool for Linux kernel thermal subsystem
local/trezor-udev 1-3
    Udev rules to connect trezor hardware wallets to your linux box
local/ttf-font-logos 0.17-1
    An icon font providing popular Linux distro logos.
local/turbostat 5.18-1 (linux-tools)
    Report processor frequency and idle statistics
local/usbip 5.18-1 (linux-tools)
    An USB device sharing system over IP network
local/util-linux 2.38-1
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.38-1
    util-linux runtime libraries
local/v4l-utils 1.22.1-1
    Userspace tools and conversion library for Video 4 Linux
local/virt-install 4.0.0-1
    Command line tool for creating new KVM , Xen, or Linux container guests using the libvirt hypervisor
local/x86_energy_perf_policy 5.18-1 (linux-tools)
    Read or write MSR_IA32_ENERGY_PERF_BIAS
❯ sudo dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

Offline

#13 2022-06-14 12:19:52

seth
Member
Registered: 2012-09-03
Posts: 51,215

Re: Virtualbox unable to load kernel modules

Name            : virtualbox-host-dkms
Version         : 6.1.34-4

File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

sudo dkms autoinstall

Offline

#14 2022-06-14 12:22:14

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

❯ sudo dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

Offline

#15 2022-06-14 12:47:09

seth
Member
Registered: 2012-09-03
Posts: 51,215

Re: Virtualbox unable to load kernel modules

sudo dkms remove vboxhost/6.1.26_OSE --all

Offline

#16 2022-06-14 13:24:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: Virtualbox unable to load kernel modules

You're forgetting the simplest and most important piece of information: did the modules build when you updated? You are reading pacman's output, right?

Offline

#17 2022-06-14 20:27:49

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

❯ sudo dkms remove vboxhost/6.1.26_OSE --all
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/vboxhost/6.1.26_OSE/source/dkms.conf does not exist.

Well, i guess the modules did not build.

reinstalling virtualbox-host-dkms gives

Packages (1) virtualbox-host-dkms-6.1.34-4

Total Installed Size:  10.06 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                            [##############################################################################################] 100%
(1/1) checking package integrity                                                                                                                          [##############################################################################################] 100%
(1/1) loading package files                                                                                                                               [##############################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                         [##############################################################################################] 100%
(1/1) checking available disk space                                                                                                                       [##############################################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Performing snapper pre snapshots for the following configurations...
==> root: 9158
(2/2) Remove upgraded DKMS modules
==> dkms remove --no-depmod vboxhost/6.1.34_OSE -k 5.18.3-arch1-1
:: Processing package changes...
(1/1) reinstalling virtualbox-host-dkms                                                                                                                   [##############################################################################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Install DKMS modules
==> dkms install --no-depmod vboxhost/6.1.34_OSE -k 5.17.4-arch1-1-vfio
Error! Bad return status for module build on kernel: 5.17.4-arch1-1-vfio (x86_64)
Consult /var/lib/dkms/vboxhost/6.1.34_OSE/build/make.log for more information.
==> WARNING: `dkms install --no-depmod vboxhost/6.1.34_OSE -k 5.17.4-arch1-1-vfio' exited 10
==> dkms install --no-depmod vboxhost/6.1.34_OSE -k 5.18.3-arch1-1
==> depmod 5.18.3-arch1-1
(3/4) Keep the last 3 versions of installed and the last version of uninstalled packages in cache.
==> no candidate packages found for pruning
(4/4) Performing snapper post snapshots for the following configurations...
==> root: 9159
yay virtualbox-host-dkms  62.54s user 9.95s system 401% cpu 18.057 total

Offline

#18 2022-06-14 20:40:20

seth
Member
Registered: 2012-09-03
Posts: 51,215

Re: Virtualbox unable to load kernel modules

Consult /var/lib/dkms/vboxhost/6.1.34_OSE/build/make.log for more information.

Offline

#19 2022-06-15 12:32:50

hugsie
Member
Registered: 2018-01-26
Posts: 46

Re: Virtualbox unable to load kernel modules

sadly there is no such file.

Offline

#20 2022-06-15 12:37:44

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Virtualbox unable to load kernel modules

The second build for 5.18 has overwritten the logs from the first run I'd guess. Run the dkms install command as root on its own and then look at the log file.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#21 2022-06-15 13:13:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: Virtualbox unable to load kernel modules

With such an old kernel, I would assume that your issue is going to be a gcc mismatch. This is a partial update problem, it's your responsibility to rebuild AUR packages when they need to be.

Offline

Board footer

Powered by FluxBB