1. Home
  2. Docs
  3. Applications
  4. How to install Virtualbox

How to install Virtualbox

by joekamprad

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product

These are the steps you need to install it:

1. Install kernel headers (linux-headers)

sudo pacman -S linux-headers

OR for LTS Kernels install the linux-lts-headers

sudo pacman -S linux-lts-headers

2. Install Virtualbox

sudo pacman -S virtualbox virtualbox-guest-iso

You will be asked for installing the core-packages:

  • for linux kernel choose virtualbox-host-modules-arch
  • for other kernels (like LTS) choose virtualbox-host-dkms

3. Install net-tools if you want to use host-only or bridged networking (optional)

sudo pacman -S net-tools

4. Install virtualbox-ext-vnc if you need VNC server support (optional)

As you want to access the VM from external Systems…

sudo pacman -S virtualbox-ext-vnc

5. load the needed module:

sudo modprobe vboxdrv

6. Add your user(s) to the vboxusers group

sudo gpasswd -a username vboxusers

7. Add Oracle extensions (optional)

yay -S virtualbox-ext-oracle

Then you need to open VirtualBox and go to

File --> Preferences --> Extensions

and enable the package that has been downloaded.

Virtualbox Prefences

after updating to 6.1 the AUR build is not working inside virtualbox, use the direct download from oracle instead at the moment:

https://download.virtualbox.org/virtualbox/6.1.6/Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack

Notes / Troubleshooting:

It helps to change display settings to use the older better implemented  VBoxVGA as controller device in the settings. But as VirtualBOX now give a Warning on that you have wrong settings if you choose this and it seems that VMSVGA (what virtualbox set as default on Linux guests) is still not working nicely with Archbased Guests, it reverts to its default on leaving settings window and you need to set it from main overview of the Box:

It will set back sometimes so check if Graphic-Controller is set to VBoxSVGA before starting an ArchBox! from that screen you can also set Memory for Graphics bigger than 125 MB:

Follow us
Was this article helpful to you? Yes 13 No

How can we help?