Published in


Setup Virt-Manager, Qemu, libvert and KVM on Ubuntu 20.04

First check your Ubuntu version with lsb_release -a command.

If not 20.04 you might experience some differences during follow this guide.

Yes, we want virt-manager but it comes with bunch of dependencies. Stuff is related in the way shown in the diagram.

Install Virt Manager

We start with installing virt-manager itself.

sudo apt-get install virt-manager

Install Dependencies

Check if KVM can be used

$ kvm-ok// OUTPUT
INFO: /dev/kvm exists
KVM acceleration can be used

Then go with bunch of stuff

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

User, Group and Permission

Add yourself to the group libvert, kvm and you need libvirt group to be exist in the system.

This can be done earlier if you install stuff like Virtual box or VMWare.

sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm
newgrp libvirt

This will make the permission pass because things fall into the same group.

Try running real VM

There should print out the table with no data.

virsh list --all

Then start the virt-manager


Then you go to

  1. Create the connection. (Left screen)
  2. Create new image. In my case I use the Alpine Linux 3.13 (Right screen)
  3. My version is not listed in the drop-down so I specify it as ‘Generic default’
  4. Click ‘Forward’ for the other option.

Here we go, we have the first VM up and running !

Hope this helps. Cheers !

If you want to learn more, checkout this link:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store