KVM basic tutorial

Aritra
1 min readDec 20, 2021

To install KVM in a debian based distro, we need to issue the following command:

sudo apt install virt-manager

For Redhat / Fedora based system, yum / dnf might need a few more package specification to resolve dependencies.

Then add user to the groups needed to operate the kvm qemu.

sudo adduser $USER libvirt

sudo adduser $USER libvirt-qemu

Now to check if the CPU supports virtualization, issue following{for intel cpu} :

cat /proc/cpuinfo | grep ‘svm’

If there is output that means with highlights containing svm, virtualization is enabled. Otherwise we need to enable virtualization from the BIOS menu.

For amd cpu, issue:

cat /proc/cpuinfo | grep ‘vmx’

Now, to check if there is any active network connection to your machine, issue the following command. Keep in mind, we can communicate with the shell via virsh utility to check different information.

TO read more, visit:

https://www.secinfotech.com/2021/12/KVM-basic-tutorial.html

--

--