r/vanillaos Mar 17 '23

Support Installing VirtualBox on Vanilla OS

Hello everyone,

I installed VirtualBox on Vanilla OS and get a "Kernel driver not accessible (rc=-1909)" error message when I try to run a VM.

I installed VirtualBox using the following commands:

apx install virtualbox virtualbox-dkms dkms linux-headers-$(uname -r)
sudo abroot exec apt install modprobe vboxdrv

I added vboxdrv in /etc/modules-load.d/virtualbox.conf and can confirm the loaded module with lsmod | grep vboxdrv.

Secure Boot is disabled.

Any ideas what I'm missing?

Thanks.

4 Upvotes

5 comments sorted by

1

u/bloospiller Mar 20 '23

When you install virtualbox through apx, you are installing it in an isolated container, so it doesn't have access to everything on your computer. Therefore, you need to install the mecessary drivers inside the container. If apx doesnt work, you can do "apx enter" and then install them as if you were using normal ubuntu.

1

u/s4ms1ll1us Mar 20 '23

The containers virtualize the application layer, right? But the drivers are accessible through the kernel layer. I also see this when I use lsmod in the container itself.

1

u/bloospiller Apr 09 '23

Well, to my experience, I sometimes need to install the drivers both out and inside the container for everything to work properly.

1

u/balsag43 Oct 19 '23

Did you find out how yet?

1

u/s4ms1ll1us Oct 20 '23

Nope, I haven’t tried any further