How to Install KVM on Ubuntu/Linux Mint/CentOS

KVM is an extension for creating virtual machines for the Linux Kernel. KVM requires a processor with hardware virtualization support which we will check later in this tutorial.

KVM requires a multicore processor desktop or server system that supports hardware virtualization. Most modern 64 bit processors have support for this. It is possible that they may have to be enabled in the host BIOS settings as some systems have virtualization support disabled by default.

System Check


Before you begin with the installation you need to check whether your supports virtualization or now.

Type the following command to check this.

egrep -c '(vmx|svm)' /proc/cpuinfo

If the output is 0 then it means your system doesn’t support virtualization but if the output is greater than 1 then it means your system does support virtualization and your are ready to begin.

Installation


Run the following command to install KVM along with the required packages. 

Replace sudo with yum on CentOS

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

Run the following commaind to install SPICE for KVM remote and local access to VMs

sudo apt-get install python-spice-client-gtk virt-viewer

 

Permissions


Only the root user and users in the libvirtd group have permission to use KVM virtual machines.

Run the following command to add your user account to the libvirtd group:

sudo adduser usernname libvirtd

 

Congratulations! You have now successfully installed KVM on your machine. 

You May Also Like

About the Author: Vikhyat

I am Vikhyat from India. I am a passionate, optimistic and dedicated person who takes up responsibilities with utmost enthusiasm and see to it that I complete my tasks and assignments in time. I have a great amount of perseverance to achieve my goal. My optimistic and planned approach in things I do is what driving me towards my success.
yoast seo premium free
%d bloggers like this: