Want to run virtual machines on Linux Mint? QEMU with KVM and virt-manager is a great alternative to VirtualBox.
- Update your system
Open a terminal and run:
sudo apt update sudo apt upgrade
- Install QEMU, KVM, and virt-manager
Run:
sudo apt install qemu-system-x86 qemu-utils libvirt-daemon-system libvirt-clients virt-manager
This installs:
- QEMU: Emulates virtual hardware and runs virtual machines.
- KVM: Provides hardware-assisted virtualization on supported Linux systems.
- libvirt: Manages virtual machines and their resources.
- virt-manager: A graphical interface for creating and managing virtual machines.
- Enable libvirt
Enable and start the libvirt service:
sudo systemctl enable --now libvirtd
Add your user to the relevant groups:
sudo usermod -aG libvirt,kvm "$USER"
Log out and log back in so the group changes take effect.
- Check virtualization support
Check whether your CPU exposes virtualization support:
lscpu | grep Virtualization
You can also check whether KVM is available:
ls -l /dev/kvm
If "/dev/kvm" is missing, check whether Intel VT-x or AMD-V is enabled in your firmware settings and whether your system supports KVM.
- Launch virt-manager
Open the application menu and search for Virtual Machine Manager, or run:
virt-manager
Choose the local QEMU/KVM connection, then click Create a new virtual machine.
Select an installation ISO, choose your memory and CPU allocation, create a virtual disk, and start the virtual machine.
What about VirtualBox?
VirtualBox can run on Linux Mint, but certain versions may have dependency issues or fail to build their kernel modules after a kernel update. The version in Mint's repositories may not always be compatible with the kernel you're running.
QEMU/KVM with virt-manager is a good alternative, and it integrates naturally with Linux's virtualization stack.
Happy virtualizing!