You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
virt-manager: can't detect default hypervisor nor setting one #42433
Could not detect a default hypervisor. Make sure the appropriate virtualization packages containing kvm, qemu, libvirt, etc. are installed and that libvirtd is running.
So each time I start it I need to manually add a connection which annoy me. To avoid that I would like that it either automatically find an hypervisor or specifying my default hypervisor somewhere; both behavior that virt-manger should do on any distro but that's not the case for NixOS.
I tried the following without any successful results:
export LIBVIRT_DEFAULT_URI="qemu:///system"
adding LIBVIRT_DEFAULT_URI="qemu:///system" environment to libvirtd.service
adding the line uri_default = "qemu:///system" to:
/etc/libvirt/libvirt.conf
/var/lib/libvirt/libvirt.conf
/var/lib/libvirt/libvirtd.conf
~/.config/libvirt/libvirt.conf
~/.config/libvirt/libvirtd.conf
For sure I can start it like this virt-manager --connect qemu:///system but that's only a workaround.
gnome3.dconf is a system service that needs to be added to services.dbus.packages by your desktop environment. If you create your own environment, you will need to add it yourself (adding programs.dconf.enable = true; to configuration.nix should work). Nix does not contain a mechanism for representing a dependency on a service.
Activity
emmanuelrosa commentedon Jun 23, 2018
What's the procedure for reproducing this error?
bricewge commentedon Jun 23, 2018
I think the minimal setup you need is:
And then just start
virt-manager.bricewge commentedon Jun 24, 2018
Thanks @volth! WIth
dconf,virt-managernow remember the last connection and don't display the warning message at startup anymore.jtojnar commentedon Sep 8, 2018
gnome3.dconfis a system service that needs to be added toservices.dbus.packagesby your desktop environment. If you create your own environment, you will need to add it yourself (addingprograms.dconf.enable = true;toconfiguration.nixshould work). Nix does not contain a mechanism for representing a dependency on a service.