You're on the right track! KVM isn't a single "package" in the same way some applications are. Instead, it's a kernel module that, combined with other software, forms a complete virtualization solution.
On Linux Mint (which is based on Ubuntu), you'll install a set of packages to get KVM up and running, along with a user-friendly graphical interface to manage your virtual machines.
Here's how to install it, step-by-step:
Prerequisites:
Hardware Virtualization: While you mentioned you're looking for solutions without hardware virtualization, KVM requires hardware virtualization (Intel VT-x or AMD-V) to function and achieve near-native performance.
If your CPU doesn't have it, or it's disabled in your BIOS/UEFI, KVM won't work.
To check if your CPU supports hardware virtualization, open a terminal and run:
Bash
egrep -c '(vmx|svm)' /proc/cpuinfo
If the output is 0, your CPU doesn't support it, or it's disabled. If it's 1 or more, it does. If it's 0, you'll need to check your BIOS/UEFI settings to enable it.
To verify that KVM is ready to use after installation, you can run:
Bash
kvm-ok
It should output: INFO: /dev/kvm exists KVM acceleration can be used.
64-bit System: KVM primarily targets 64-bit systems and 64-bit guest operating systems for optimal performance.
Installation Steps:
Update your package list:
Bash
sudo apt update
Install the core KVM components and management tools:
This command installs:
qemu-kvm: The QEMU emulator with KVM support.
libvirt-daemon-system: The libvirt daemon, which manages virtualization platforms like KVM.
libvirt-clients: Command-line tools for interacting with libvirt.
bridge-utils: Utilities for creating network bridges, which are often used for VM networking.
virt-manager: The graphical user interface (GUI) for managing your KVM virtual machines.
This is what you'll use most of the time.
Bash
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
Add your user to the necessary groups:
You need to be part of the libvirt and kvm groups to manage virtual machines without sudo.
Replace USERwithyouractualusername.BashsudoadduserUSER libvirt
sudo adduser $USER kvm
Important: After adding yourself to these groups, you'll need to log out of your desktop session and log back in (or reboot your system) for the group changes to take effect.
Verify the KVM service is running:
Bash
systemctl status libvirtd.service
You should see Active: active (running).
Using KVM:
Once installed and you've logged back in, you can launch Virtual Machine Manager (search for it in your applications menu, or run virt-manager from the terminal).
From virt-manager, you can:
Create new virtual machines.
Import existing VM images.
Configure network settings.
Manage storage for your VMs.
Start, stop, pause, and delete VMs.
KVM, coupled with QEMU and virt-manager, is an incredibly powerful and performant virtualization solution for , often providing near-native speeds for your virtual machines.