Ubuntu 18.04 KVM Installation Guide

April 5, 2018 | By thelinuxevangelist | Filed in: Tutorial.

KVM Ubuntu 18.04 - Installing

  1. 2. Pre-Installation Checks

    Then Ascertain KVM Can be Installed

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

    If in Output > 0 then your Processor support Hardware Virtualization!
    (But on a PC you may have still to enable it on BIOS…)
    Now again, first Install needed Tool with:

    sudo apt install cpu-checker

    And then Verify it:


    If it’s Good you will see:

    INFO: /dev/kvm exists
    KVM acceleration can be used

    Finally, if the answer is negative you can still use KVM but only in a Slow mode…

  2. 3. Installing KVM

    Now you are Ready to Install KVM on Ubuntu System

    sudo apt update
    sudo apt install qemu qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

    Following Ubuntu Documentation about KVM related Packages:

    • libvirt-bin provides libvirtd which you need to administer qemu and kvm instances using libvirt
    • qemu & qemu-kvm (kvm in Karmic and earlier) are the backend
    • ubuntu-vm-builder powerful command line tool for building virtual machines
    • bridge-utils provides a bridge from your network to the virtual machines

Tags: , , , , , , , , , , , , , , , , , , , ,