Step by Step KVM Installation on Ubuntu

ubuntu kvm howto, kvm installation on ubuntu, install kvm on ubuntu, step by step kvm installation, ubuntu virt-manager install, how to install kvm

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.

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.



Installation of KVM 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
root@ubuntu:~$ 

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 have done the installation of kvm successfully.

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

Please follow us on social networking sites to not miss any updates. Leave your comments if any.

Thank You. ubuntu kvm howto, kvm installation on ubuntu, install kvm on ubuntu, step by step kvm installation, ubuntu virt-manager install, how to install kvm, install kvm on ubuntu 14.04 server, ubuntu virt-manager, kvm on ubuntu desktop, ubuntu 12.04 kvm howto, ubuntu 10.04 kvm, kvm virtualization tutorial, kvm virtualization in rhel 6, kvm hypervisor, kvm switch installation, kvm installation on ubuntu, install kvm on ubuntu 14.04, install kvm on centos, install kvm on redhat, install kvm on linux, install kvm on windows, how to install kvm in ubuntu, how to install kvm in rhel6, how to install kvm in rhel7, how to install kvm in centos, kvm installation guide, kvm training
September 18, 2015

Post a Comment

[disqus][facebook][blogger]

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget