Install VirtualBox on Manjaro Linux: A Step-by-Step Guide

Discover how to install VirtualBox on Manjaro with our comprehensive guide. Get your virtual machines up and running in no time!

VirtualBox, a powerful yet free virtualization software, is a fantastic tool for developers, IT professionals, and enthusiasts to manage and operate virtual environments efficiently.

By virtualizing your hardware, you can run Windows, Linux, and even macOS alongside your native Manjaro Linux OS. This can be invaluable for cross-platform development, testing software, or just experiencing new desktops without the risk of partitioning your hard drive.

Our comprehensive guide is designed to take you through every step of installing VirtualBox on Manjaro, ensuring that you can get your virtual machines up and running swiftly and with ease.

Step 1: Install VirtualBox Dependencies

First, you need to install some dependencies, and more specifically, the “linux*-virtualbox-host-modules” package. It is required for VirtualBox to run properly.

The critical thing to note here is that its version needs to match the Linux kernel version that your Manjaro system is currently running. So, let’s check which one it is.

uname -r
Check the kernel version used.
Check the kernel version used.

As we can see, version 6.5 is being used; in this case, only the first two numbers are being considered. Now, let’s search for the package we need containing this version.

sudo pacman -Ss virtualbox-host-modules
Finding the correct virtualbox-host-modules package.
Finding the correct virtualbox-host-modules package.

Ok, we see that the package we need is called “linux65-virtualbox-host-modules” corresponding to our kernel version 6.5 that we are currently using. So, let’s install it.

sudo pacman -S linux65-virtualbox-host-modules
Installing the linux65-virtualbox-host-modules packet.
Installing the linux65-virtualbox-host-modules packet.

Step 2: Install VirtualBox on Manjaro Linux

Finally, everything is already prepared for the actual installation. Now, to install VirtualBox on our Manjaro system, run the following commands:

sudo pacman -S virtualbox
Install VirtualBox on Manjaro Linux.
Install VirtualBox on Manjaro Linux.

Wait for the installation to complete. The VirtualBox is now installed and ready for use on your Manjaro system. Reload its modules:

sudo vboxreload
Reloading VirtualBox modules.
Reloading VirtualBox modules.

Step 3: Install VirtualBox Extension Pack

This is an optional step, but I strongly encourage it because it will make working with VirtualBox on your Manjaro box easier and more convenient. VirtualBox Extension Pack unlocks many great features, such as:

  • USB 2 and USB 3 support
  • VirtualBox Remote Desktop Protocol (VRDP)
  • Host webcam passthrough
  • Disk image encryption with AES algorithm
  • Intel PXE boot ROM

Let’s highlight one peculiarity here. The VirtualBox Extension Pack’s version must match the VirtualBox’s installed version.

So, to verify the exact version of the installed locally VirtualBox, you can use vboxmanage, a build-in VirtualBox’s command:

vboxmanage -v | cut -dr -f1
Check the installed VirtualBox version.
Check the installed VirtualBox version.

As you can see, the version of VirtualBox installed is “7.0.10.” Therefore, you must then download the Extension Pack with the same version. So, use the below wget command to download the appropriate Extension Pack for VirtualBox.

If your installation is different, replace both places containing “7.0.10” in the command below with the appropriate version. In addition, you can also go straight to the downloads page and look at the available versions.

wget language: JavaScript (javascript)

Next, to install the VirtualBox Extension pack, run the vboxmanage command as follows:

sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-7.0.10.vbox-extpackCode language: CSS (css)

You will be prompted to agree to Oracle’s license terms and conditions. So, type “y” to confirm and press “Enter.”

Install VirtualBox Extension Pack.
Install VirtualBox Extension Pack.

Additionally, you can verify installed VirtualBox’s extension pack version by running the following:

vboxmanage list extpacksCode language: PHP (php)
Verify the installed VirtualBox Extension Pack version.
Verify the installed VirtualBox Extension Pack version.

Step 4: Add User to vboxusers Group

Before using VirtualBox, add your user account to the “vboxusers” group. This is quick and simple to accomplish by running:

sudo usermod -aG vboxusers $USERCode language: PHP (php)

Now, perform a reboot. After login, check that you are in the vboxusers group with this command:

groups $USERCode language: PHP (php)
Check the user’s groups.
Check the user’s groups.

Step 5: Running VirtualBox on Manjaro Linux

You can start using VirtualBox by launching it from the desktop environment’s application menu -> “System” -> “Oracle VM VirtualBox.”

Running VirtualBox on Manjaro Linux.
Running VirtualBox on Manjaro Linux.
VirtualBox 7 is running on Manjaro.
VirtualBox 7 is running on Manjaro.

We are ready. So what are you waiting for? You’re just a click away from unlocking a universe of possibilities. Hit the “New” button and start virtualizing your ideas.

Guest OS running inside VirtualBox on Manjaro.
Guest OS running inside VirtualBox on Manjaro.

How to Uninstall VirtualBox

If you want to uninstall VirtualBox from your Manjaro system for any reason, you can do it easily by running the command below.

sudo pacman -Rns virtualbox virtualbox-guest-utils
Uninstall VirtualBox.
Uninstall VirtualBox.

Of course, don’t forget to uninstall VirtualBox’s host module that we installed earlier.

sudo pacman -Rns linux65-virtualbox-host-modules


With VirtualBox installed on your Manjaro system, you’ve equipped yourself with the power to run multiple operating systems, test applications in safe, isolated environments, and journey into new realms of computing with ease.

We hope this guide has demystified the process and empowered you to take your computing capabilities to new heights. Thanks for using it! Any feedback is welcomed in the comments section below.

Finally, we recommend checking the official documentation for individuals who want to learn more about the features offered by VirtualBox and how to use them effectively.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%