[fixed] Gnome Boxes can not install any linux distro with error message "no kvm"
I installed gnome-boxes
via APT on my Ubuntu 24.04 LTS. I installed Windows 11 on it easily, but every time I try to install elementary OS or Nix OS or any other Linux distro I face an error message of “No KVM”.
I run this command to fix missing dependencies.
sudo apt upgrade --fix-missing
but still GNOME boxes does not let me create a linux box yet.
I run gnome-boxes
from the command line and tried to install a Linux distro. I run it from the terminal to see the underlying error messages. The error message in my case is.
Boxes-Message: 12:47:03.456: libvirt-machine.vala:290: Failed to connection to system libvirt: Unable to open qemu+unix:///system: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
I googled for more and more, then I tried to install all virtualization software packages needed by GNOME Boxes like this.
sudo apt install qemu
sudo apt install qemu-kvm
sudo apt install libvirt-clients
sudo apt install libvirt-daemon-system
sudo apt install virtinst
sudo apt install bridge-utils
then I enabled and started virtualization service (libvirtd
) by these two commands.
sudo systemctl enable libvirtd
sudo systemctl start libvirtd
After that I restarted my laptop. Now, I installed Elementary OS in a box in GNOME boxes. And I’ll try more Linux distributions later today.
I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .