Not able to install VirtualBox on Manjaro

I am unable to install VirtualBox on Manjaro. When I attempt to add VirtualBox to the kernel with:

sudo vboxreload

I get the following error messages:

Unloading modules: 
Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/6.12.4-1-MANJARO
modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/6.12.4-1-MANJARO
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/6.12.4-1-MANJARO

Can anyone help?

mod edit - please learn to enclose your code when pasting:

```
code pasted here
```

Or select code and click the </> icon under the :gear: icon menu

Did you install the VirtualBox host modules for your kernel?

You’re running Linux 6.12.4, so that would be linux612-virtualbox-host-modules

1 Like

With what?

Did you reboot?

Is your system up to date?

Does it not work after a reboot?

What doesn’t work?
How do you know?

You have seen this?:

VirtualBox - ArchWiki

2 Likes

Also don’t forget to add your user to the vboxusers group.

3 Likes

Also, read this - but mostly come back with more information; like details 'n stuff.

Search

Also make sure that you’re properly synced and updated; perhaps REMOVE your virtualbox installation first, then run:

❯ sudo pacman-mirrors --continent && sudo pacman -Syu

After this, install virtualbox and see how that goes.

Take note that if you are using Kernel 6.12 or above:

Virtualbox Kernel 6.12 kernel command line parameter in GRUB:
“kvm.enable_virt_at_load=0″

“In [Linux] kernel 6.12, KVM initializes virtualization on module
loading by default. This prevents VirtualBox VMs from starting,”
said the devs. “In order to avoid this, either add
“kvm.enable_virt_at_load=0″ parameter
into kernel command line or unload the
corresponding kvm_XXX module.”

From my notes:
Your host user must be a member of the group vboxusers:
sudo gpasswd -a $USER vboxusers

Log off to make change registered

Very Important: sudo modprobe vboxdrv

Make certain that the appropriate kernel headers and virtualbox-host-modules are installed, example:

linux-6xx-headers
linux-6xx-virtualbox-host-modules

2 Likes