How to Install QEMU/KVM on Linux

Free Coaching
Our Discord
Free Pentest
Feedback

Welcome to Logos Red, I go bylogos and:

If you’ve recently decided to switch to QEMU/KVM from VMware or VirtualBox due to privacy concerns or performance issues this post will help you get up and running as soon as possible.

This post will finally end your meaningless search for a valid answer, and you will leave with QEMU/KVM installed.

If there are still any questions left, let me know so I can add it to help the next person who will arrive here.

To help you improve in less time than it took me and to make sure you leave with what I promised.

I want you to join our community and for this to be a place you come back to often.

I’m going to be using a Fedora machine, the commands are identical for Debian, but for Arch they differ, so here’s a perfect tutorial for anyone on Arch.

Make sure to replace “dnf” with “apt” if you are on Debian.

Step 1: Make sure that you have virtualization enabled

You can do so with the following command:

The command should return the number of CPU cores your machine has. If it doesn’t you need to enable virtualization within your BIOS, here is an article describing how to do it but it varies from motherboard to motherboard.

sudo dnf install qemu-kvm virt-manager

This will install everything needed to run virtual machines with QEMU.

Step 3: Enable and start libvirtd

You need to enable the libvirt daemon in order for it to start managing virtualization.

sudo systemctl enable --now libvirtd

Step 4: Add yourself to the libvirt group

You will notice that if you try to start up virt-manager it asks for a password.You can bypass this by adding your user to the libvirt group.

sudo usermod -aG libvirt $USER

More Resources

If you didn’t understand something or you need some help, we have our own Discord community and I currently offer free coaching.

You can also leave us some feedback with what you did not understand and we will make sure to correct it.

Free Coaching
Our Discord
Feedback

Scroll to Top