I cant add virtual machine on virtualbox

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.

Do you have your kernel headers installed? If not, the virtualbox-host-dkms module won’t be installed correctly. Eg (for standard kernel):

sudo pacman -S linux-headers

I installed linux-headersfrom the beginning but does not work,how to fix the error ?

You might rebuild your kernel boot images, then restart the system. To rebuild your boot images:

If using default systemd-boot:

sudo reinstall-kernels

If using Grub:

sudo dracut-rebuild

sudo dracut-rebuild
:: Building initramfs for linux (6.11.1-arch1-1)
dracut[I]: Executing: /usr/bin/dracut --force --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img 6.11.1-arch1-1
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: pcmcia ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing GenuineIntel.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file ‘/boot/initramfs-linux.img’ ***
dracut[I]: *** Creating initramfs image file ‘/boot/initramfs-linux.img’ done ***
:: Building fallback initramfs for linux (6.11.1-arch1-1)
dracut[I]: Executing: /usr/bin/dracut --force --no-hostonly /boot/initramfs-linux-fallback.img 6.11.1-arch1-1
dracut[I]: *** Including module: systemd ***
dracut[I]: *** Including module: systemd-ask-password ***
dracut[I]: *** Including module: systemd-initrd ***
dracut[I]: *** Including module: systemd-journald ***
dracut[I]: *** Including module: systemd-modules-load ***
dracut[I]: *** Including module: systemd-pcrphase ***
dracut[I]: *** Including module: systemd-sysctl ***
dracut[I]: *** Including module: systemd-sysusers ***
dracut[I]: *** Including module: systemd-tmpfiles ***
dracut[I]: *** Including module: systemd-udevd ***
dracut[I]: *** Including module: modsign ***
dracut[I]: *** Including module: i18n ***
dracut[I]: *** Including module: btrfs ***
dracut[I]: *** Including module: crypt ***
dracut[I]: *** Including module: dm ***
dracut[I]: *** Including module: kernel-modules ***
dracut[I]: *** Including module: kernel-modules-extra ***
dracut[I]: *** Including module: lvm ***
dracut[I]: *** Including module: mdraid ***
dracut[I]: *** Including module: nvdimm ***
dracut[I]: *** Including module: pcmcia ***
dracut[I]: *** Including module: qemu ***
dracut[I]: *** Including module: qemu-net ***
dracut[I]: *** Including module: systemd-cryptsetup ***
dracut[I]: *** Including module: btrfs-snapshot-overlay ***
dracut[I]: *** Including module: fido2 ***
dracut[I]: *** Including module: pkcs11 ***
dracut[I]: *** Including module: hwdb ***
dracut[I]: *** Including module: lunmask ***
dracut[I]: *** Including module: resume ***
dracut[I]: *** Including module: rootfs-block ***
dracut[I]: *** Including module: terminfo ***
dracut[I]: *** Including module: udev-rules ***
dracut[I]: *** Including module: virtiofs ***
dracut[I]: *** Including module: dracut-systemd ***
dracut[I]: *** Including module: usrmount ***
dracut[I]: *** Including module: base ***
dracut[I]: *** Including module: fs-lib ***
dracut[I]: *** Including module: shutdown ***
dracut[I]: *** Including modules done ***
dracut[I]: *** Installing kernel module dependencies ***
dracut[I]: *** Installing kernel module dependencies done ***
dracut[I]: *** Resolving executable dependencies ***
dracut[I]: *** Resolving executable dependencies done ***
dracut[I]: *** Hardlinking files ***
dracut[I]: *** Hardlinking files done ***
dracut[I]: *** Generating early-microcode cpio image ***
dracut[I]: *** Constructing GenuineIntel.bin ***
dracut[I]: *** Store current command line parameters ***
dracut[I]: *** Stripping files ***
dracut[I]: *** Stripping files done ***
dracut[I]: *** Creating image file ‘/boot/initramfs-linux-fallback.img’ ***
dracut[I]: *** Creating initramfs image file ‘/boot/initramfs-linux-fallback.img’ done ***

Didn’t help. Same error.

I have provided this advise with some assumptions in mind. The use of the DKMS module being the main one.

Could you share the output of:

yay -Q | grep virtualbox

yay -Q | grep virtualbox
virtualbox 7.1.2-1
virtualbox-ext-oracle 7.1.2-1
virtualbox-ext-vnc 7.1.2-1
virtualbox-guest-iso 7.1.2-1
virtualbox-host-dkms 7.1.2-1

1 Like

Ok, that does confirm you needed headers installed.

Could you share the output of this please:

inxi -S

nxi -S
System:
Host: pal Kernel: 6.10.10-arch1-1 arch: x86_64 bits: 64
Desktop: MATE v: 1.28.2 Distro: EndeavourOS

1 Like

Sorry about all the commands, this is still very investigatory.

Lets see what modules are loaded:

lsmod | grep vbox

lsmod | grep vbox
zero

Ok, that would seem to confirm it’s an issue with the dkms module not being loaded.

Can you confirm the linux-headers have been installed?

yay -Q | grep headers

ay -Q | grep headers
linux-api-headers 6.10-1
linux-headers 6.11.1.arch1-1
vulkan-headers 1:1.3.295-1

Ok. Perhaps run a system update, as that would result in a kernel boot image rebuild anyway (kernel 6.11 is available).

eos-update --yay

…or your preferred method.

Actually, I think I see the issue. The headers are for kernel 6.11. You have kernel 6.10 installed. Please run that system update.

It’s a good idea to update before installing things, especially core system stuff like kernel headers :sweat_smile:

I did it, but uname -a
Linux pal 6.10.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 x86_64 GNU/Linux

Current version is Linux 6.11.1.arch1-1.

https://archlinux.org/packages/core/x86_64/linux/

But I can’t update to 6.11. It says 6.10 and there’s nothing to update.

You might update your mirrors?