You can Watch all our Tutorials and Training Videos on our YouTube Channel for Free! Subscribe Now! & Free Web Tools available on

Step by Step KVM Installation on Ubuntu - 100% Working

ubuntu kvm howto, kvm installation on ubuntu, install kvm on ubuntu, step by step kvm installation, ubuntu virt-manager install, how to install kvm
This post will help you with Step by Step Procedure of KVM Installation on Ubuntu.

We can use KVM – kernel-based virtual machine – to run both Windows and Linux in virtual machines.To understand the basics about, what is KVM Virtualization and its terminolgy, click here.

If you are interested in learning, Request you to go through the below recommended tutorial.

Step by Step KVM Installation on Ubuntu

Step by step instruction as document and video is available in this article.

Does your machine actually support virtualization?

KVM only works if your CPU has hardware virtualization support – either Intel VT-x or AMD-V.
To determine whether our CPU includes these features, run the following command:
root@ubuntu:~$ egrep '(svm|vmx)' /proc/cpuinfo

If the output from your machine is similar to the below output then we're good to go.

Step by Step KVM Installation on Ubuntu

Install KVM on Ubuntu using apt-get

we now need to install some packages using the apt-get as below.
root@ubuntu:~$ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

Verifying the KVM Installation:

We can test if your install has been successful with the following command:
root@ubuntu:~$ virsh -c qemu:///system list
Id    Name                           State

Sometime You may face some issue. if so, just using the below fixes.
root@ubuntu:~$ virsh -c qemu:///system list
libvir: Remote error : Permission denied
error: failed to connect to the hypervisor

you probably want to fix this before you move on. The critical point here is whether or not you have write access to /var/run/libvirt/libvirt-sock.

The sock file should have full permissions, so give full permission to the file.

Install virt-manager (graphical user interface)

If you are working on a desktop computer you might want to install a GUI tool to manage virtual machines.
root@ubuntu:~$ sudo apt-get install virt-manager

Virtual Machine Manager will appear in Applications -> System Tools menu. First create a new connection to local QEMU instance from File -> Add Connection menu. Localhost (QEMU) or QEMU/KVM should appear in the virtual machine list.

When you open virt-manager, if you are getting any warning popup as some packages need to be install, just give "yes" to install.

Thats it, we are done with KVM installation on Ubuntu successfully.

We will explain you how to create a virtual machine on KVM in the upcoming article.

Related Content on Linux might be useful to you to improve your Linux Skills.

Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.