Installing KVM/QEMU/virt-manager on Manjaro Linux(Arch Linux)

Installing KVM/QEMU/virt-manager on Manjaro Linux(Arch Linux)

08 Sep 2020, 10:01am TZ +05:30
linux, manjaro, VM
tips, Software, tools

KVM is an inherently better way to work with Virtual Machines. It sands for Kernel Virtual Machine.

After many tries, I finally managed to get it right.

All Thanks to this video :

Let’s Look at what steps I followed.

1. Get the Dependencies right #

sudo pacman -S qemu qemu-arch-extra virt-manager ovmf bridge-utils dnsmasq vde2 bridge-utils \
 openbsd-netcat ebtables iptables
ovmf is required for UEFI and Secure Boot setups.

2. Start the Service #

# Enable Auto-Start of the Service
sudo systemctl enable libvirtd.service
# Start the Service Right now
sudo systemctl start libvirtd.service

In case you wish to see if the libvirtd.service has actually started or not:

sudo systemctl status libvirtd.service

3. Configure the KVM #

Open the /etc/libvirt/libvirtd.conf for editing

sudo nano -cl /etc/libvirt/libvirtd.conf
The -cl in the nano would help you see line numbers and how many lines are actually remaining.

Here are the Lines to Edit:

  1. Uncomment the line 81 or so:
    unix_sock_group = "libvirt"
  2. Uncomment the line 98 or so:
    unix_sock_rw_perms = "0770"

Make sure to save the file before you exit.

4. Permissions for Current User #

In-order to be able to use the virt-manager as normal user, we need to add the user to the libvirt group.

sudo usermod -a -G libvirt $(whoami)
Reboot the PC or Computer after changing the options.

5. Reboot #

Yes, for all this to take effect we need to reboot the computer.

Wish you All the Best #

Hope this would helpful to get you stared on KVM using QEMU and virt-manager as the front-end.

As always, I look forward to your suggestion and comments. DM me on Twitter .

References #