Virtual Machine Manager complains Could not detect a default hypervisor

I need some help with Virtual Machine Manager on Ubuntu 26.04 LTS

I have 2 boxes each having …
Intel® N100 × 4, 8GB memory, 256 GB onboard disk.

One user defined, being me. I ran:

sudo apt install openssh-server
sudo apt install openssh-client
sudo apt update

========

Then installed Virtual Machine Manager on box A.
I looked around at the discourse and it seemed these could only help:

sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
sudo systemctl enable --now libvirtd
sudo systemctl start --now libvirtd

ReStarted box A, as advised.
Opened the Virtual Machine Manager. Boo Hoo!
It says “Could not detect a default hypervisor. Make sure the appropriate QEMU/KVM virtualization and libvirt packages are installed to manage virtualization on this host.
A virtualization connection can be manually added via File->Add Connection”


Did you not receive an error message about qemu-kvm?

sudo apt install qemu-kvm
Package qemu-kvm is a virtual package provided by:
  qemu-system-x86-hwe 1:10.2.1+ds-1ubuntu4.2 (= 1:10.2.1+ds-1ubuntu4.2)
  qemu-system-x86 1:10.2.1+ds-1ubuntu3.1 (= 1:10.2.1+ds-1ubuntu3.1)
You should explicitly select one to install.

Error: Package 'qemu-kvm' has no installation candidate

Try this complete command to install the packages for qemu-kvm

sudo apt install qemu-system-x86 virt-manager virtinst libvirt-clients bridge-utils libvirt-daemon-system

If one of the packages is already present, the package will not be duplicated and you’ll receive a message such as:-

virt-manager is already the newest version (1:5.1.0-1).

But it will get marked as manually installed that way. virtinst is a dependency of virt-mananger. libvirt-daemon-system is most likely already installed, too, because it’s recommened by the latter, and APT, by default, installs recommended packages as well. In turn, libvirt-clients is a dependency of libvirt-daemon-system.
So make that:

sudo qemu-system-x86 virt-manager bridge-utils

and you’ll have leaner system. It’s always good practice to minimize the number of manually installed packages. Those should be limited to what you actually want; the rest is APT magic. :smiling_face_with_sunglasses: :beach_with_umbrella:

BTW, QEMU isn’t even a suggestion of virt-manager, because the latter (by means of libvirt) is a generic frontend for most any type of virtualization and can also manage remote machines, IIUC.

virt-manager is already the newest version (1:5.1.0-1).
libvirt-clients is already the newest version (12.0.0-1ubuntu5.1).
libvirt-clients set to manually installed.
Installing:
bridge-utils libvirt-daemon-system qemu-system-x86 virtinst

Installing dependencies:
libvirt-daemon-driver-qemu qemu-system-modules-opengl
qemu-system-common qemu-system-modules-spice
qemu-system-gui

Suggested packages:
ifupdown numad passt samba vde2

Summary:
Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 40
Download size: 13.8 MB
Space needed: 78.2 MB / 108 GB available

All green thanks. Here fyi.

I’ll move onward

1 Like

Always aiming for lean! Kiss with pure C and we can get there!

Virtual Machine Manager complains Could not detect a default hypervisor

Is Virtual machine manager still complaining?

1 Like

No. But I won’t close this off just yet please.

I’m moving forward slowly and working tonight with VMM to create a bootable Win11 partition. (having been busy with other things).

Not 100% clear on terminology as used here WRT Partition versus Volume.

just fyi… I now have 2 happy boxes running Ubuntu Desktop, clean and mean. And Proton VPN installed but not used in anger just yet.

This topic was automatically closed after 30 days. New replies are no longer allowed.