In this tutorial we are going to see how to install the KVM virtualization tool on Ubuntu or Linux Mint. KVM (Kernel-based Virtual Machine) allows to create virtual machines (guest VMs) on your host machine. Each created virtual machine (whether running Linux or Windows image) has its own private virtual hardware (hard disk, network card, graphics adpater, etc.).

KVM is an open source software and can be installed in the folloying Ubuntu distros:
  • Ubuntu 15.10
  • Ubuntu 15.04
  • Ubuntu 14.10, or older
Before we start the KVM installation process, make sure your host supports virtualization (Support for Intel VT-x and AMD-V) by running this command:

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

0 = No virtualization
>1 = Virtualization supported

1. KVM + QEMU Setup

To install KVM+QEMU and all its related packages, open the terminal and issue this command:

sudo apt-get update 
sudo apt-get install -y qemu-kvm qemu libvirt-bin virtinst bridge-utils virt-manager virt-viewer

Wait now while the packages are being downloaded and installed. Next, enable vhost-net using this command:

sudo modprobe vhost_net

To check if it is well added, run this command:

lsmod | grep vhost

2. Configure Bridge Networking

For remote access to your virtual machines, you need to enable Bridge networking. Before manipulating the original configuration file, make a backup copy of it using this command:

sudo cp  /etc/network/interfaces /etc/network/interfaces_bk

Now edit the file using this command:

sudo gedit /etc/network/interfaces


sudo vi /etc/network/interfaces

Add these lines:

# Enable Bridge Networking 
auto eth0 
iface br0 inet static 
bridge_ports eth0 
bridge_stp off 
auto br0

save your file and exit:

Reboot now your system so that changes take effect. You can then check if bridge networking is well enabled using this command:


Finally, you can start  the GUI for KVM Virtual Machine Manager using this command:

sudo virt-manager

Enjoy now creating virtual machines using the New VM window:

Post a Comment