How to Install QEMU on Manjaro

QEMU is a free and open-source emulator and virtualizer that allows running virtual machines on Linux systems such as Manjaro. In this tutorial, we’ll guide you through the steps to install QEMU on Manjaro.

Step 1: Update the System

The first step is updating the Manjaro system. This ensures that you have the latest packages and dependencies installed on your computer.

sudo pacman -Syu

Enter your password when prompted and wait for the system update to finish.

Step 2: Install QEMU

Once the system is updated, you can proceed to install QEMU using the Pacman package manager.

sudo pacman -S qemu

This will install QEMU and all its dependencies on your Manjaro system.

Step 3: Verify the Installation

After the installation is complete, you can verify that the installation was successful by checking the QEMU version:

qemu-system-x86_64 --version

This should output the QEMU version number on your terminal.

Step 4: Basic Usage

To use QEMU, you need to create a virtual machine image and configure its settings such as the amount of RAM, CPU, and storage space.

For example, to create a new virtual machine and run an ISO file:

qemu-img create -f qcow2 myvm.qcow2 10G
qemu-system-x86_64 -m 2048 -cdrom mycd.iso myvm.qcow2

This creates a new virtual machine image with 10 GB of storage space and runs the mycd.iso file on the virtual machine with 2048 MB of RAM.

You can also use the QEMU graphical interface by running the following command:

virt-manager

Conclusion

In this tutorial, we’ve shown you how to install and use QEMU on Manjaro. You can now create and run virtual machines on your Linux system using the QEMU emulator.

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!