Linux

How to Install Kvm In Ubuntu 20.04

Pinterest LinkedIn Tumblr

Run the following egrep command to verify that Intel VMX or AMD SVM supported on your CPU:

egrep --color 'vmx|svm' /proc/cpuinfo

Install kvm

sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin

Allow normal user to manage virtual machine

# Add user to libvirt and libvirt-qemu:
sudo usermod -aG libvirt ${USER}
sudo usermod -aG libvirt-qemu ${USER}

# Verify
id

you need to use the following command to connect to KVM server:

virsh --connect qemu:///system
virsh --connect qemu:///system command
virsh --connect qemu:///system list --all

To see current networking setting for KVM, run:

sudo virsh net-list --all

I am a Devops Engineer, but I would describe myself as a Tech Enthusiast who is a fan of Open Source, Linux, Automations, Cloud and Virtualization. I love learning and exploring new things so I blog in my free time about Devops related stuff, Linux, Automations and Open Source software. I can also code in Python and Golang.

Write A Comment