Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sipamungkas/dbe8db4703b03289be145c1d222e3300 to your computer and use it in GitHub Desktop.
Save sipamungkas/dbe8db4703b03289be145c1d222e3300 to your computer and use it in GitHub Desktop.
How To install KVM on ubuntu 18.03+, in case you have some problem, I hope my private note can help you.

How To install KVM on ubuntu 18.04+

I've Try this on my ubuntu 21.04

Install Cpu checker

$ sudo apt-get install cpu-checker

Use cpu checker

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

Check if your pc is supported

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

Install Kvm on Linux

sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch

If you got error like this one

E: Package 'libvirt-bin' has no installation candidate
E: Unable to locate package ubuntu-vm-builder
E: Unable to locate package ia32-libs-multiarch

Try this step

$ sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

Check again your kvm status

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

References:

Original Link From Android Studio

KVM\qemu installation issue on ubuntu 18.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment