• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
sharadchhetri.com

sharadchhetri.com

Linux,Cloud Computing And DevOps

  • Home
  • Linux
  • CloudComputing
    • Introduction Cloud Computing
    • Amazon AWS
  • Free E-Books
  • About Me

Install KVM on Ubuntu 20.04 LTS Desktop

May 24, 2020 by Sharad Chhetri Leave a Comment

KVM (for Kernel-based Virtual Machine) is a virtualization software.By using KVM you can create Virtual Machine. The Virtualization software like KVM and Virtual box are quite popular and heavily used by professionals.
This post will guide you through how to install KVM on Ubuntu 20.04 LTS Desktop. This post is going to be very quick. Suggest here to read our previous post on installing KVM on Ubuntu 14.04 LTS. which has some good details.

Prerequisites

  • CPU should support virtualization
    Command: egrep -c '(vmx|svm)' /proc/cpuinfo
    If output is more than 1 (numeric value) then it supports VT (Virtualization Technology).
  • Operating System Architecture:
    Command: arch
    x86_64 represents 64 bit kernel.
    i386, i486, i586 or i686 represents 32 bit kernel

    Note: On 32 bit kernel, given below are limitations.
    – You can only install 32 bit Operating System on host VM.
    – we will be limited to allocate 2GB RAM maximum at to the VM.

Installation Steps of KVM (Virtualization Software) on Ubuntu 20.04 LTS

Follow these steps to install KVM.

Step 1:

sudo apt -y update
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

Step 2: Add you current login user to group called libvirt and kvm. These two groups were get created when we have installed the packages given in above Step 1.

sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm

Now by using below given command you can see in output that your current login user is member of how many groups.

sudo grep `id -un` /etc/group

Step 3: Verify the KVM working status.
When you run the below command it should show output like this. In case of any error, we suggest to logout and login back to your system.

virsh list --all

Below screenshot depicts our expected output. Because we have not created any VM here, it is blank.

kvm ubuntu
install kvm on ubuntu

Step 4(Optional) To manage your KVM through GUI install the Virt-manager package.

sudo apt install virt-manager

Once virt-manager package is installed you can start using the KVM from GUI.
To open Virt-Manager, either you can directly run command virt-manager or open from Dash home search by typing virt-manager.

virt-manager gui
install virt-manager on ubuntu linux

Now you are ready to use the KVM.

Do'nt be greedy, share the knowledge!

  • Click to share on Facebook (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)

Related

Filed Under: Linux Tagged With: kvm, ubuntu 20.04

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Twitter
  • GitHub
  • YouTube

Recent Posts

  • How to install Java (OpenJDK) on Ubuntu Linux
  • How to install Groovy on Ubuntu 20.04 LTS
  • How to Disable selinux in Red Hat or CentOS
  • How to remove date from WordPress Post URL
  • How to install Mariadb 10.4 server on CentOS 8 / RHEL 8

Top Posts & Pages

  • How to delete mail queue in Postfix
  • How to start / stop / restart / reload iptables on CentOS 7 / RHEL 7
  • How to set hostname and FQDN on CentOS 7 and RHEL 7
  • How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
  • How to fix read only USB pen drive in Ubuntu
  • How to setup Jenkins Credentials for Git repo access
  • How to create Jenkins user by command line and GUI
  • How to find absolute path of command on Linux / Unix : which command
  • make command not found in linux CentOS Red Hat ubuntu Debian
  • 4 different commands to check the load average in linux

DevOps Posts

  • vagrant cloud flow

    Install Vagrant on Ubuntu and create first VM

  • git jenkins credential github

    How to setup Jenkins Credentials for Git repo access

  • terraform

    how to install terraform in Linux : CentOS-Ubuntu

  • docker image

    How to create Ubuntu docker base image

  • Install Ansible on Ubuntu / CentOS / RHEL

Footer

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Sharad Chhetri is an experienced Linux - Cloud Engineer & freelancer. Working on Open Source Technology since RHEL 4.0 (Red Hat Enterprise Linux). He loves sharing the knowledge which earned from real scenarios. Don't be surprised if you find him in technology seminars and meetup groups. You can contact him on email for freelance projects at admin@sharadchhetri.com. Read More…

Tags

Amazon AWS apache automation awk bash script CentOS centos 7 debian devops docker freebsd ftp ghost git grep hostname jenkins kvm linux linux command linux commands MariaDB Server mysql Nagios nginx Octopress owncloud Owncloud 6 php postfix postgres python Red Hat rpm sed selinux ssh swap ubuntu user management vagrant varnish virtualbox vsftp wordpress

Recent Comments

  • Ali on How to delete mail queue in Postfix
  • Mehar on How to install Java (OpenJDK) on Ubuntu Linux
  • Ramone Burrell on How to fix read only USB pen drive in Ubuntu
  • Pera on How to fix read only USB pen drive in Ubuntu
  • Ubuntu on How to fix read only USB pen drive in Ubuntu
  • Nitin Sharma on Install and configure rsyslog Centralized logging server in CentOS 6.5
  • Sharad Chhetri on Install and configure rsyslog Centralized logging server in CentOS 6.5
  • nitin on Install and configure rsyslog Centralized logging server in CentOS 6.5

Copyright © 2009 - 2021 · All Rights Reserved sharadchhetri.com · · Privacy Policy ·
· sitemap.xml · ·The content is copyrighted to sharadchhetri.com and may not be reproduced on other websites without our permission. ·

Copyright © 2021 · Genesis Sample on Genesis Framework · WordPress · Log in