I upgraded the system and did
sudo pacman -S virtualbox virtualbox-host-modules virtualbox-guest-iso virtualbox-host-dkms
sudo depmod -a
sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.
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
18.104.22.168-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.
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
add to the current file
Add usernames to the vboxusers group
gpasswd -a $USER vboxusers
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
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.