In this step-by-step tutorial, I’ll show you how to install and configure QEMU with KVM on Linux Mint 22.3. Whether you're a developer, tester, or just want to run virtual machines natively on Linux, KVM offers near-native performance. Also its just cool.
Using Linux Mint 22.3 x86_64; Kernel 6.17.0-20-generic; Based on Ubuntu LTS 24.04
On the HOST machine:
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients virt-manager
sudo systemctl status libvirtd
groups
;you dont see libvirt or kvm in groups as expected
;now make sure libvirt and kvm exist as groups before trying to add them
getent group
;this shows all the groups on your system that your user is allowed to know about
;now scroll and look for kvm and libvirt, if you see them, good news, you can add them to your user
;who is your user
echo $USER
;add libvirt and kvm groups to your user
sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
reboot
;you should now be able to open virt-manager application
;get your desired distro
;you will need to know what distro your distro is based on, for example, linuxmint 22.3 is based on ubuntu LTS 24.04
;check the hash to ensure you downloaded correctly for example
sha256sum /path/to/your/distro/image.iso
;Follow the instructions to install the OS into the VM seen in the video
;All gui now
GUEST VM instructions
;once you have the VM open, if you want to enable copy paste ability
;this is done on the GUEST
sudo apt update -y
sudo apt install spice-vdagent
reboot
;you can now copy and paste between guest and host