void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.55k stars 2.13k forks source link

Cannot connect to libvirt from Virt-Manager #48133

Closed Calandracas606 closed 9 months ago

Calandracas606 commented 9 months ago

Is this a new report?

Yes

System Info

Void 6.6.10_1 x86_64-musl GenuineIntel uptodate rFFFFF

Package(s) Affected

libvirt-9.10.0_1, virt-manager-4.1.0_3

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

virt-manager connects to libvirt

Actual behaviour

virt-manager shows "QEMU/KVM - Connecting..."

Steps to reproduce

  1. Enable required services (dbus, libvirtd, virtlockd, virtlogd)
  2. Add user to "libvirt" group
  3. Sign in as user
  4. Launch virt-manager

Suck on "QEMU/KVM - Connecting..."

Calandracas606 commented 9 months ago

I've tried the fix from this issue with no success: https://github.com/void-linux/void-packages/issues/14721

There are many vague "libvirt isn't working on musl" issues on the internet, but its difficult to identify which ones might be relevant

dataCobra commented 9 months ago

Hey, could you start virt-manager from a terminal so you can see that stdout which gets produced by virt-manager?

This could be helpful to understand what might cause the connection issue.

Calandracas606 commented 9 months ago

When I tried it again to collect logs, it mysteriously worked, despite not having changed anything for several days.

The same day that I submitted this ticked, I followed some troubleshooting as suggested on IRC.

I tried disabling the libvirtd service, and instead enabling:

Initially this did not work, even after several reboots.

Also tried using gnome-boxes, both the void package and flatpak, neither of them worked.

Attaching logs for future reference. virt-manager.log

Will close this ticket for now, and it appears to be working.