Manjaro: Module vboxdrv not found

22,374

Solution 1

The problem was that I followed tutorials on the web and youtube videos, instead of reading manjaro wiki.

The correct way of doing it is not to install virtualbox virtualbox-host-modules, instead of that, first I should check kernel version uname -r in my case I'm using 3.16.7.10-1-MANJARO so I have to do

sudo pacman -S linux316-virtualbox-host-modules

As time goes on, blogs get more and more popular, they get better ranked, leaving official documentation way behind and users like me get false information. Anyway, hopefully my answer helps future users.

Solution 2

These are the simplified steps:

The firt step you should be super user.

pacman -S linux-headers
pacman -S virtualbox virtualbox-guest-iso
modprobe vboxdrv

…but if you do not want to do manually at each startup:

open the file

 vim /etc/modules-load.d/virtualbox.conf

add to the current file

vboxdrv

Add usernames to the vboxusers group

gpasswd -a $USER vboxusers

Troubleshooting[/b:8wk2jz3u]

If you put the network adapter in bridged mode

modprobe -a vboxdrv vboxnetadp vboxnetflt

or if you do not want to do manually at each startup:

vim /etc/modules-load.d/virtualbox.conf

vboxnetadp
vboxnetflt

Thanks to hector for the clear and good answer

Solution 3

A reboot fixed the problem for me.

The problem was that I've updated the kernel and did not reboot since then, so modprobe was still looking in the old path, and obviously could not find the modules it was looking for.

Share:
22,374

Related videos on Youtube

mahieddine
Author by

mahieddine

Updated on September 18, 2022

Comments

  • mahieddine
    mahieddine over 1 year

    I upgraded the system and did

    sudo pacman -S virtualbox virtualbox-host-modules virtualbox-guest-iso virtualbox-host-dkms

    yaourt virtualbox-ext-oracle

    sudo depmod -a

    sudo modprobe vboxdrv

    modprobe: FATAL: Module vboxdrv not found.

    enter image description here

  • crsuarezf
    crsuarezf almost 5 years
    Cleve, when you do a pacman -Syu everything can be upgraded, and that includes kernel also.