Site icon Citizix

How to Install Kvm In Ubuntu 20.04

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

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
Exit mobile version