You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

This is a guide on How to install latest VirtualBox, VirtualBox Guest Additions and  Extension Pack on Arch Linux. Arch Linux is one of the most customizable, if not the best customizable Linux Distribution. On Arch Linux, you can easily get latest VirtualBox from either Pacman mirrors or pull it directly from AUR.

I started using Arch Linux 2015 and I have enjoyed the experience so far. It’s super fast, stable, easy to customize and many bells and whistles you can enjoy with this Linux distro. Without further ado, let’s get into the installation of VirtualBox on Arch Linux.

What is VirtualBox?

As you all know, VirtualBox is a free, cross-platform consumer virtualization product. It’s one of most used Hypervisor for home/personal use. It allows you to run more than one operating system on top of existing Operating system.it’s free to use, Can run on Windows, Linux and Unix systems.

One major advantage of VirtualBox over free Vmware Player is that vagrant tool for managing Virtual Machines is free for use with VirtualBox. But, with Vmware, you’ll have to use the paid version of Vagrant that integrate with Vmware.

Installing VirtualBox on Arch Linux

It’s easy to install VirtualBox on Arch Linux, just issue the following command on the terminal, and boom!, VirtualBox is installed. 

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20pacman%20-S%20virtualbox%20virtualbox-guest-iso%20%0Awarning%3A%20virtualbox-guest-iso-5.0.16-1%20is%20up%20to%20date%20–%20reinstalling%0Aresolving%20dependencies…%0Alooking%20for%20conflicting%20packages…%0A%0APackages%20(4)%20dkms-2.2.0.3%2Bgit151023-8%C2%A0%20virtualbox-host-dkms-5.0.16-3%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20virtualbox-5.0.16-3%C2%A0%20virtualbox-guest-iso-5.0.16-1%0A%0ATotal%20Installed%20Size%3A%C2%A0%20155.38%20MiB%0ANet%20Upgrade%20Size%3A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%2098.09%20MiB%0A%0A%3A%3A%20Proceed%20with%20installation%3F%20%5BY%2Fn%5D%20y%0A(4%2F4)%20checking%20keys%20in%20keyring%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A(4%2F4)%20checking%20package%20integrity%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A(4%2F4)%20loading%20package%20files%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A(4%2F4)%20checking%20for%20file%20conflicts%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A(4%2F4)%20checking%20available%20disk%20space%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A%3A%3A%20Processing%20package%20changes…%0A(1%2F4)%20installing%20dkms%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0AOptional%20dependencies%20for%20dkms%0A%C2%A0%C2%A0%C2%A0%20linux-headers%3A%20build%20modules%20against%20the%20Arch%20kernel%20%5Binstalled%5D%0A%C2%A0%C2%A0%C2%A0%20linux-lts-headers%3A%20build%20modules%20against%20the%20LTS%20kernel%0A%C2%A0%C2%A0%C2%A0%20linux-zen-headers%3A%20build%20modules%20against%20the%20ZEN%20kernel%0A%C2%A0%C2%A0%C2%A0%20linux-grsec-headers%3A%20build%20modules%20against%20the%20GRSEC%20kernel%0A(2%2F4)%20installing%20virtualbox-host-dkms%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0AOptional%20dependencies%20for%20virtualbox-host-dkms%0A%C2%A0%C2%A0%C2%A0%20linux-headers%3A%20build%20modules%20against%20Arch%20kernel%20%5Binstalled%5D%0A%C2%A0%C2%A0%C2%A0%20linux-lts-headers%3A%20build%20modules%20against%20LTS%20kernel%0A%C2%A0%C2%A0%C2%A0%20linux-zen-headers%3A%20build%20modules%20against%20ZEN%20kernel%0A%C2%A0%C2%A0%C2%A0%20linux-grsec-headers%3A%20build%20modules%20against%20GRSEC%20kernel%0A(3%2F4)%20installing%20virtualbox%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0AOptional%20dependencies%20for%20virtualbox%0A%C2%A0%C2%A0%C2%A0%20qt4%3A%20GUI%20support%20%5Binstalled%5D%0A%C2%A0%C2%A0%C2%A0%20vde2%3A%20Virtual%20Distributed%20Ethernet%20support%20%5Binstalled%5D%0A%C2%A0%C2%A0%C2%A0%20virtualbox-guest-iso%3A%20Guest%20Additions%20CD%20image%20%5Binstalled%5D%0A%C2%A0%C2%A0%C2%A0%20virtualbox-ext-vnc%3A%20VNC%20server%20support%0A%C2%A0%C2%A0%C2%A0%20virtualbox-sdk%3A%20Developer%20kit%0A%C2%A0%C2%A0%C2%A0%20net-tools%3A%20Host-only%20or%20bridged%20networking%20support%20%5Binstalled%5D%0A(4%2F4)%20reinstalling%20virtualbox-guest-iso%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5B%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%5D%20100%25%0A%3A%3A%20Running%20post-transaction%20hooks…%0A(1%2F1)%20Install%20DKMS%20modules%0ACreating%20symlink%20%2Fvar%2Flib%2Fdkms%2Fvboxhost%2F5.0.16_OSE%2Fsource%20-%3E%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Fusr%2Fsrc%2Fvboxhost-5.0.16_OSE%0ADKMS%3A%20add%20completed.”/]

After installing, we’ll have to make the current system user a member of the vboxusers group. This will grant the user permissions to manage Virtual machines.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20gpasswd%20-a%20%24USER%20vboxusers%0A”/]

Next step is to enable VirtualBox kernel modules to load automatically at boot time.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20systemctl%20enable%20vboxweb.service%C2%A0%20%0ACreated%20symlink%20from%20%2Fetc%2Fsystemd%2Fsystem%2Fmulti-user.target.wants%2Fvboxweb.service%20to%20%2Fusr%2Flib%2Fsystemd%2Fsystem%2Fvboxweb.service.%C2%A0″/]

Up to this step, we’ve installed VirtualBox,Virtualbox-guest-{iso,utils,dkms}.The only remaining part is the installation of Extension pack provide support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. Install it using steps below:

  1. Install yaourt and rdesktop prerequisites:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20pacman%20-S%20yaourt%0A%5Broot%20at%20darkpy%5D%23%20pacman%20-S%20rdesktop%C2%A0%0A”/]

  1. Installing VirtualBox Extension Pack:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20yaourt%20-Syu%0A”/]

Make sure you’re running below command as a non-root user.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Bjosepy%20at%20darkpy%5D%23%20yaourt%20-S%20virtualbox-ext-oracle%0A%3D%3D%3E%20Downloading%20virtualbox-ext-oracle%20PKGBUILD%20from%20AUR…%0Ax%20.SRCINFO%0Ax%20PKGBUILD%0Ax%20virtualbox-ext-oracle.install%0AMikaela%20commented%20on%202015-09-18%2014%3A06%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%20%0ASorry%20for%20flagging%20out-of-date%2C%20pamac%20hadn’t%20checked%20for%20updates%20and%20I%20missed%20the%20last%20updated%20time.%0A%0Athirtythreeforty%20commented%20on%202015-11-23%2005%3A25%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%20%0AIt%20is%20now%20actually%20out-of-date%2C%20as%20the%20newly-packaged%20VirtualBox%205.0.10%20complains%20about%20the%205.0.8%20extension%20pack.%0A%0Amabra%20commented%20on%202015-12-06%2022%3A14%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%20%0ADependeny%20to%20’fakeroot’%20is%20wether%20checked%20nor%20mentioned!%0A%0Abartki%20commented%20on%202015-12-07%2011%3A00%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%20%0A%40mabra%3A%20’fakeroot’%20is%20a%20member%20of%20the%20package%20group%20’base-devel’%2C%20which%20is%20a%20prerequisite%20for%20building%20packages.%20Therefore%20it%20is%20not%20necessary%20to%20specify%20it%20as%20a%20build%20dependency.%0A%0ARainmaker%20commented%20on%202016-03-11%2009%3A40%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%C2%A0%C2%A0%20%C2%A0%20%0A%40seblu.%20%0AI%20am%20the%20current%20maintainer%20of%20virtualbox-bin%20in%20AUR.%0AAs%20virtualbox-bin%20and%20virtualbox-ext-oracle%20are%20related%20(a%20newer%20version%20of%20virtualbox-bin%20without%20an%20updated%20virtualbox-ext-oracle%20will%20not%20work)%2C%20may%20I%20suggest%20making%20eachother%20co-maintainer%3F%0A%0Avirtualbox-ext-oracle%205.0.16-1%C2%A0%20(2016-03-12%2018%3A52)%0A(%20Unsupported%20package%3A%20Potentially%20dangerous%20!%20)%0A%3D%3D%3E%20Edit%20PKGBUILD%20%3F%20%5BY%2Fn%5D%20(%22A%22%20to%20abort)%0A%3D%3D%3E%20————————————%0A%3D%3D%3E%20n%0A%3D%3D%3E%20virtualbox-ext-oracle%20dependencies%3A%0A%0A%3D%3D%3E%20Edit%20virtualbox-ext-oracle.install%20%3F%20%5BY%2Fn%5D%20(%22A%22%20to%20abort)%0A%3D%3D%3E%20———————————————————%0A%3D%3D%3E%20n%0A%3D%3D%3E%20Continue%20building%20virtualbox-ext-oracle%20%3F%20%5BY%2Fn%5D%0A%3D%3D%3E%20———————————————–%0A%3D%3D%3E%20y%0A%3D%3D%3E%20Building%20and%20installing%20package%0A%3D%3D%3E%20Making%20package%3A%20virtualbox-ext-oracle%205.0.16-1%20(Thu%20Mar%2017%2014%3A57%3A32%20UTC%202016)%0A%3D%3D%3E%20Checking%20runtime%20dependencies…%0A%3D%3D%3E%20Checking%20buildtime%20dependencies…%0A%3D%3D%3E%20Retrieving%20sources…%0A%C2%A0%20-%3E%20Downloading%20Oracle_VM_VirtualBox_Extension_Pack-5.0.16.vbox-extpack…%0A%0AAnswer%20prompted%20questions%20as%20below%3A%0AEdit%20PKGBUILD%20%3F%20%5BY%2Fn%5D%20(%22A%22%20to%20abort)%20%3A%20Enter%20n%0AEdit%20virtualbox-ext-oracle.install%20%3F%20%5BY%2Fn%5D%20(%22A%22%20to%20abort)%20%3A%20Enter%20n%0AContinue%20building%20virtualbox-ext-oracle%20%3F%20%5BY%2Fn%5D%3A%20Enter%20Y%C2%A0″/]

See screenshot below:

In case you downloaded Extension pack manually from Oracle VirtualBox’s web site, you may use below command to install:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23VBoxManage%20extpack%20install%20%3C.vbox-extpack%3E%0A”/]

If you’ll be using vboxweb, you can enable it to start on boot up.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23systemctl%20enable%20vboxweb.service%20%0A%5Broot%20at%20darkpy%5D%23%20systemctl%20start%20vboxweb.service%20%C2%A0″/]

Manually invoke start of VirtualBox modules by

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%2Fsbin%2Frcvboxdrv%20setup%0A”/]

Then check:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%20at%20darkpy%5D%23%20ps%20ax%20%7C%20grep%20-i%20vbox%0A”/]

If you’re running Debian or Debian Derivative distributions like Kali Linux, Ubuntu, Xubuntu, Kubuntu, Linux Mint, Elementary OS e.t.c. Check out this tutorial on installing Latest VirtualBox on such systems:
How to install Virtualbox Latest on Ubuntu and Kali Linux | Computing For Geeks

Other Arch Linux Tutorials are available on Arch Linux Page below:

All Arch Linux Tutorials

Hope this article helped someone. You can drop a comment in the comments section if you encounter any problem.

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF