In this tutorial, we will be seeing how to easily install VirtualBox on Arch Linux (01-05-2015). As you know, VirtualBox is an x86 and AMD64/Intel64 virtualization product that allows users to install multiple operating systems on a single platform.

VirtualBox Installation

Installing VirtualBox on Arch Linux is straight and simple. You can install it by writing this:

pacman -S virtualbox

Next, we need to install Host kernel modules for VirtualBox. Check first your kernel using this command:

uname -r

If it's an LTS kernel, run this command:

pacman -S virtualbox-host-modules-lts

For ARCH, run this one:

pacman -S virtualbox-host-modules

Now to use a graphical user interface based on QT, run this command:

pacman -S qt

Add now your username to vboxusers using this command:

gpasswd -a username vboxusers

Replace username with your own..

Next, we need to enable the vboxdrv module by running this command:

modprobe vboxdrv

If nothing occurs or changes has not been taken into effect, try to run this command:

depmod -a

If you want the module to be loaded automatically at boot, run this command:

echo vboxdrv >> /etc/modules-load.d/virtualbox.conf

Now we need to enable Bridged networking and Host-only networking. VirtualBox needs some network tools to run properly such as ifconfig and route, etc. These tools can be found in the net-tools package, which can be installed as follows:

pacman -S net-tools

After installing it, you need to run these two modules:

modprobe vboxnetadp 
modprobe vboxnetflt

Now Bridged networking and Host-only networking are well enabled. Finally, we need to install the Guest Additions with this command:

pacman -S virtualbox-guest-iso

Extension Pack

To add support for for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards, you can install the extension pack using this command:

yaourt -S virtualbox-ext-oracle

If you have something to add, please point it out using the comment form shown below.

Post a Comment