Skip to content

Instantly share code, notes, and snippets.

@GabLeRoux
Last active November 27, 2023 12:22
Show Gist options
  • Star 37 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save GabLeRoux/52bc669037c8b11f36a7 to your computer and use it in GitHub Desktop.
Save GabLeRoux/52bc669037c8b11f36a7 to your computer and use it in GitHub Desktop.
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
pacman -Si linux
sudo pacman -S linux-headers
# will install DKMS properly
sudo pacman -S virtualbox virtualbox-guest-iso
# now this command should work :)
sudo modprobe -a vboxdrv vboxnetflt vboxpci vboxnetadp
# you may run this
sudo /sbin/rcvboxdrv -h
# add current user to vboxusers group
sudo gpasswd -a $USER vboxusers
# now add entries to /etc/modules-load.d/virtualbox.conf
# for startup
vim /etc/modules-load.d/virtualbox.conf
# insert this:
#vboxdrv
#vboxnetadp
#vboxnetflt
#vboxpci
@woxcab
Copy link

woxcab commented Mar 15, 2016

Thank you very much for working solution!

@kikislater
Copy link

Thank you

@jethrosun
Copy link

Thank you very much, I have got no luck to solve a error for hours !

Copy link

ghost commented Sep 13, 2016

WTH! Why is this not popular?

@sergey-alekseev
Copy link

Thanks!

@dyrnade
Copy link

dyrnade commented Jan 25, 2017

Thank you mate.

@mualle
Copy link

mualle commented Jul 11, 2017

Thank you very much; you saved my day

@Zeioth
Copy link

Zeioth commented May 9, 2018

Times have changed. Now you only need this.

sudo pacman -S virtualbox virtualbox-host-modules-arch
modprobe vboxdrv vboxpci vboxnetflt

@avkosme
Copy link

avkosme commented Apr 1, 2020

Thanks, cool man!

@Ali-Yazdanpanah
Copy link

Hero of the day!

Copy link

ghost commented Jul 4, 2021

i am using black arch and its not working how can suppose to do!!!!?
i am tired of installing vmware and virtualbox in blackarch

@KenEkanem
Copy link

# Module vboxdrv not found in directory /lib/modules/5.15.72-1-lts

@Dpbm
Copy link

Dpbm commented Dec 9, 2022

# Module vboxdrv not found in directory /lib/modules/5.15.72-1-lts

In my case I needed to run this:

yay -Syyu
yay -Sy virtualbox-host-dkms virtualbox virtualbox-guest-iso linux-lts-headers

sudo modprobe -a vboxdrv vboxnetflt vboxnetadp

sudo gpasswd -a $USER vboxusers

sudo su
touch /etc/modules-load.d/virtualbox.conf
echo vboxdrv >> /etc/modules-load.d/virtualbox.conf
echo vboxnetadp >> /etc/modules-load.d/virtualbox.conf
echo vboxnetflt >> /etc/modules-load.d/virtualbox.conf

For me, how I'm using linux-lts kernel, I followed the arch linux guide and installed the linux-lts-headers instead of linux-headers.

So @KenEkanem, if you still can't solve it, try this way, maybe it can help you.
note: You can change yay by pacman


And @GabLeRoux, thank you so much, your guide helped me a lot 😊

@KenEkanem
Copy link

What worked for me was doing a full system upgrade and then installing linux-lts-headers, then I went over to BIOS and enabled Intel (R) virtualization technology. thanks @Dpbm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment