Steps to Install KVM on Ubuntu

Steps to Install KVM on Ubuntu

KVM (Kernel-based Virtual Machine) is a virtualization extension for the Linux Kernel. KVM requires a processor with hardware virtualization support. There are many Operating systems that are supported by KVM, which include Linux, BSD, Solaris, Windows and others. It also supports Android 2.2, GNU/Hurd (Debian K16), Minix 3.1.2a, all of these work just with some limitations.

KVM Tools Installation:
  1. Before you proceed with the installation you must confirm that your system supports KVM. As mentioned earlier, it requires hardware virtualization support in the CPU. 
    1. Type in the following command to check the compatibility: egrep -c '(vmx|svm)' /proc/cpuinfo
    2. If the output is 0, then KVM won't work as the system does not support VMX nor SVM hardware virtualization. If the output is 1 or greater than 1 it means your system is all set and ready to go for KVM installation.
  2. Run the following commands to install KVM: sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
  3. The above command includes installation of 4 packages kvm, libvirt-bin, ubuntu-vm-builder and bridge-utils. You are done with the installation for now. Just make sure your Ubuntu username is addded to the group libvirtd by typing: sudo adduser `id -un` libvirtd

Installing a graphical user interface for KVM:
  1. Install the virt-manager application with the following command: sudo apt-get install virt-manager
  2. After you have installed virt-manager just go ahead and start it by typing virt-manager. This should start the virtual manager application for you.

Creating a KVM guest machine:
  1. After performing the about steps, proceed to start with creating a new virtual machine by hitting the new button. 

  2. Enter the name of your virtual machine. Select your installation media type and click forward. After that, select the ISO image file that contains the operating system to be installed in the VM or select the CD/DVD-ROM to start the installation.

  3. After the above step, you will have to set the amount RAM and CPU's that will be available to that virtual machine.


  4. Finally, In the Advanced Option, Select the Network Adapter and click Finish. 

  5. There you go you are done with your Virtual machine with KVM.




          • Related Articles

          • Setup Applications Manager as Service in Ubuntu 16 and above

            Follow the steps mentioned below to install AppManager as a service on a Linux box. Copy the attached AppManagerLinuxService file to /etc/init.d directory as the file "AppManager" Edit the MDIR variable in this file (in two locations) which should ...
          • Steps to Install balloon driver on Windows Virtual Machines

            Why Balloon Driver? If balloon driver is not installed on Windows Virtual Machines then memory metrics will not be collected for windows virtual machine. Steps to Install balloon driver on Virtual Machines: Download latest package of virtio-win iso ...
          • How to resolve KVM authentication issue in Applications Manager?

            Execute the command "Virsh Version" in the kvm host with user account used for monitoring in Applications Manager and check the error response: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory Verify and install ...
          • Install Applications Manager on Red Hat Enterprise Linux (RHEL)

            OS Type: RHEL 7.8 / Centos 7.8 DB Server: PgSQL To install a Managed Server Download and Install the Applications Manager Managed Server instance as a root user with default Web server SSL port (i.e. 8443). Re-configure the default Admin password as ...
          • Troubleshooting steps for Server Hardware Health Monitoring

            1. SNMP Mode of monitoring: Monitoring Dell hardware status: Dell OpenManage Server Administrator and make sure SNMP agent is enabled Installation steps:  http://www.dell.com/downloads/global/power/ps2q06-20050112-Lou-OE.pdf Monitoring HP hardware ...