Install KVM on Ubuntu 20.04 LTS/19.10!! {Easy Guide}

K

VM: KVM stands for Kernel-based Virtual Machine that provides a virtual environment to run one or more operating systems. In KVM, the Linux Kernel utilizes the virtualization technology by using your system and hardware resources. Using KVM, you will get new virtual environment that gives additional workspace for developers, testers and other users. In this tutorial, we will instruct how to install KVM on Ubuntu 20.04 LTS/19.10. 

Jump To:

Prerequisites:

Make sure you have logged in as a non-root user with Sudo privileges before starting with the KVM installation process.

Verifying Hardware Support:

  • Click on the shortcut CTRL+ALT+Tto open the Terminal on Linux Ubuntu .
  • For verifying the hardware support, you have to run the below commands one-by-one on the Ubuntu Terminal.

Run the grep command:

$
grep -Eoc '(vmx|svm)' /proc/cpuinfo

The output of the above command is very important. An output of 1 or anything greater than that shows that your CPU can be set-up for using the virtualization technology. An output of 0 indicates the inability of your system to run KVM.

Updating the Package:

Install Cpu-checker Package:

$
sudo apt install cpu-checker

Check if your system can run KVM:

Installation of KVM:

There are some standard packages that we have to get started even though the capabilities for KVM are built into the kernel itself. The installation process is the same on Ubuntu 18.04 LTS Bionic Beaver.

Run the below command:

$
sudo apt install qemu-kvm libvirt-bin bridge-utils virtinst virt-manager

Verify the KVM Status:

$
sudo systemctl is-active libvirtd

Summary:

In the above tutorial, we have described how to install the KVM on Linux Ubuntu 20.04 LTS Focal Fossa/ 19.10 Eoan Ermine. Is this article helpful? Don’t forget to share your valuable queries/feedback in the below comment box. Thanks for visiting Tec Robust Keep Learning!!

Related Articles:



Need Help? Chat with us