How to install Virtual Machine Manager (KVM) in Manjaro and Arch Linux

Because you don't need VMware or Virtualbox to run Virtual Machines in Linux

Linux users don’t need to have VMware or VirtualBox to run virtual machines. KVM is a Kernel-based Virtual Machine built with-in the Linux kernel. Using KVM, one can run several virtual operating systems including Linux, Microsoft Windows, and any other operating system.

In this article, let’s take a look at how to install KVM on Arch Linux and Manjaro Linux.

Installing KVM in Arch Linux and Manjaro Linux

Before installing KVM, you need to first check if your computer has the necessary hardware support to run virtual machines. KVM requires VT-x for Intel processors and AMD-V for AMD processors. Here is how to check:

Checking Hardware Support

Launch ‘Terminal’ and enter the following command:

LC_ALL=C lscpu | grep Virtualization

If your computer supports virtualization, you should see the output as “Virtualization: VT-x” or “Virtualization: AMD-V”.

For example, if my Intel-based test PC, I see the following output in the Terminal.

Check Virtualization Capability
Check Virtualization Capability

If nothing is displayed, it means your PC can’t be used to install Virtual machines. This is not the end of the world. Manufacturers sometimes disable the feature by default settings. To make sure, boot your computer’s BIOS and check. Refer to your computer maker and model manual for how to boot into BIOS.

Checking Kernel Support

Apart from hardware support, you also need a necessary kernel module to be installed on your computer to support KVM.

Launch Terminal and enter the following command to check:

zgrep CONFIG_KVM /proc/config.gz

Check the output. You should see CONFIG_KVM_INTEL or CONFIG_KVM_AMD as ‘m’ or ‘y’. Here is output in my test PC.

CONFIG_KVM_GUEST=y
# CONFIG_KVM_DEBUG_FS is not set
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_MMU_AUDIT=y

Installing KVM (Virtual Machine Manager)

STEP 1: Launch Terminal and enter the following command to install KVM and necessary dependencies.

sudo pacman -S virt-manager qemu vde2 ebtables dnsmasq bridge-utils openbsd-netcat

STEP 2: The next two steps are very important and often ignored by many users. Make sure to complete it else, you will get error “adduser: The group `libvirtd’ does not exist” when you run the Virtual Machine Manager after installation is complete!

Enable the service by entering the below command:

sudo systemctl enable libvirtd.service

STEP 3: Start the service using below command:

sudo systemctl start libvirtd.service

Virtual Machine manager should now be installed on your computer. You can launch it from ‘Applications’. Look for ‘Virtual Machine Manager’, not KVM!

Virtual Machine Manager running in Manjaro Linux
Virtual Machine Manager running in Manjaro Linux

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

8 COMMENTS

  1. Hi please help me .Even I followed your instruction I got bellow errors
    I even used sudo for virt-manager

    Unable to connect to libvirt lxc:///.

    Verify that the ‘libvirtd’ daemon is running.

    Libvirt URI is: lxc:///

    Traceback (most recent call last):
    File “/usr/share/virt-manager/virtManager/connection.py”, line 1036, in _do_open
    self._backend.open(self._do_creds_password)
    File “/usr/share/virt-manager/virtinst/connection.py”, line 144, in open
    open_flags)
    File “/usr/lib/python2.7/site-packages/libvirt.py”, line 105, in openAuth

  2. The optional dependencies for libvirt should be installed as dependencies, not explicitly installed:
    sudo pacman -S virt-manager
    sudo pacman -S --asdeps qemu ebtables dnsmasq bridge-utils netcat

    It’s not necessary to install vde2 separately as it’s a dependency of qemu.

    • if you’re using –asdeps option in this context, these packages become orphans. List them with pacman -Qdtq

      If anyone periodically remove orphans they will deleted them too.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,537FansLike
365FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

10 top reasons to switch to Manjaro Linux

Manjaro is Linux distro based on Arch-Linux which follows a rolling release model. Is this distro good for you? Let's find out the main reasons for using Manjaro.

Installing an updatable Manjaro Linux on a USB Flash Drive

In this tutorial, we will show step by step how to install a Manjaro on a USB flash. For those new to this distro, it is a light-weight distro that is based on Arch Linux. Arch Linux is known for its simplistic approach and is typically made for Linux pros, but Manjaro bridges the gap between user-friendliness and rock-solid performance.

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

Guide to watching Disney+ on Linux

Disney Plus or Disney+ is an on-demand entertainment streaming service in which you should see the content produced by Disney Studios, Star Wars, Marvel, Pixar, and National Geographic. The service was launched on the 12th of November 2019.