Manjaro Linux is one of Linux distros based on Arch Linux.
This is my favorite one because of its flexible user interface and powerful package management.
I have failed in running a virtual machine using VirtualBox, however, not few times.
This has been found to be simply because of my way to install VirtualBox.
Thus I decided to write and record how to fix it in order to escape from failing again.
note: The official document is here.
An error occurs when trying to run a virtual machine:
Error messages #1:
Error messages #2:
- "Kernel driver not installed (rc=-1908)"
- "The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv."
But, to my confusion, there is no '
/sbin/vboxconfig' in my Manjaro machine.
I know now this is a problem that some modules in
/lib/modules/extramodules-[kernel version]-MANJARO/ such as
vboxpci are missing.
- Get kernel version
For example, use
uname -r command:
$ uname -r 4.14.71-1-MANJARO
Run Pamac installer.
Select "Oracle VM VirtualBox (virtualbox)" and install it.
When the below modal opens, select NOT "virtualbox-host-modules" BUT "linux[kernel version]-virtualbox-host-modules":
(The version is up to the host machine.)
vboxreloadcommand if there is still an error.
$ sudo vboxreload Loading modules: vboxnetadp vboxnetflt vboxpci vboxdrv
Thank you very much for your reading.
I'm happy if this post helps someone who has the same problem in some way : )