Install KVM on Ubuntu 22.04
Install the required packages:
sudo apt -y install bridge-utils cpu-checker libvirt-clients libvirt-daemon qemu qemu-kvm
Download Ubuntu Server 22.04 ISO
Run the following command to download the ISO:
curl https://releases.ubuntu.com/22.04.2/ubuntu-22.04.2-live-server-amd64.iso --output ubuntu-22.04.2-live-server-amd64.iso
Move ISO to a directory
sudo su -
mkdir /ISOs
mv ubuntu-22.04.2-live-server-amd64.iso /ISOs/ubuntu-22.04.2-live-server-amd64.iso
Create a virtual machine
Our first step is to create a new virtual machine. Click Forward.
Select the ISO you downloaded earlier. Click Forward.
Choose the amount of memory and CPUs for the virtual machine. Click Forward.
Select the size of the virtual disk and click Forward.
Finally, name the virtual machine and ensure that your Bridge device is selected for the Network Selection. Click Finish.