Skip to content

Installing KVM in Ubuntu

  • KVM ,i.e, Kernel Virtual Machine is a Linux kernel module that allows a user space program to utilize the hardware virtualization features of various processors.
  • That is it provides a virtual environment in which we can run several operating systems utilizing resources of the host machines.

Installation

  • Before installing KVM check if your system supports virtualization.
  • Now follow following steps to install KVM

    • Switch to root.

      sudo -i
      
    • Now update your system.

      apt-get update
      apt-get upgrade
      
    • Install packages.

      apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
      apt-get install qemu-system
      
    • Set group.

      adduser `id -un` libvirtd
      
    • Install Virtual Machine Manager for GUI.

      apt-get install virt-manager
      
Back to top