How to Install VirtualBox on Manjaro

In this tutorial, we will guide you through the steps to install VirtualBox on Manjaro operating system.

Step 1: Update the system

Before installing VirtualBox, it is recommended to update your Manjaro system to ensure that you have the latest software versions installed. Open the terminal and run the following command:

sudo pacman -Syu

Step 2: Install dependencies

To run VirtualBox on Manjaro, we need to install some dependencies. Run the following command to install them:

sudo pacman -S dkms linux$(uname -r | sed 's/\([^-]*-[^-]*-\).*/\1/')-headers

Step 3: Install VirtualBox from the official website

Now we can download and install VirtualBox from the official website. Go to https://www.virtualbox.org/wiki/Linux_Downloads and download the appropriate package for your Manjaro version. For this tutorial, we will assume that you are using Manjaro 64-bit.

wget https://download.virtualbox.org/virtualbox/6.1.28/virtualbox-6.1_6.1.28-147628~Manjaro4~21.1-x86_64.pkg.tar.zst

Note: Make sure to replace the package name with the latest version available.

Step 4: Install VirtualBox package

Navigate to the directory where you downloaded the package and use the following command to install it:

sudo pacman -U virtualbox-6.1_6.1.28-147628~Manjaro4~21.1-x86_64.pkg.tar.zst

Note: Again, make sure to replace the package name with the latest version available.

Step 5: Enable VirtualBox kernel modules

After installing VirtualBox, we need to enable kernel modules for it. Run the following command:

sudo modprobe vboxdrv

Step 6: Start using VirtualBox

Now you can start using VirtualBox on Manjaro. You can launch it from the applications menu or by running the following command in the terminal:

virtualbox

That's it! You now have VirtualBox installed on your Manjaro system.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!