Today Qemu/Kvm refuses to work. Connection is refused.
Details in virt-manager show
Unable to connect to libvirt qemu:///system.
Stellen Sie sicher, dass der »libvirtd«-Dienst läuft.
Libvirt URI is: qemu:///system
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 922, in _do_open
self._backend.open(cb, data)
File "/usr/share/virt-manager/virtinst/connection.py", line 153, in open
conn = libvirt.openAuth(self._open_uri,
File "/usr/lib/python3.9/site-packages/libvirt.py", line 148, in openAuth
raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Socket-Erstellung zu '/var/run/libvirt/libvirt-sock' fehlgeschlagen: Verbindungsaufbau abgelehnt
Trying to start libvirtd manually fails. Obviously, everything connected to libvirt fails to start.
systemctl | grep libvirt
libvirt-guests.service loaded active exited Suspend/Resume Running libvirt Guests
● libvirtd.service loaded failed failed Virtualization daemon
● libvirtd-admin.socket loaded failed failed Libvirt admin socket
● libvirtd-ro.socket loaded failed failed Libvirt local read-only socket
● libvirtd-tcp.socket loaded failed failed Libvirt non-TLS IP socket
● libvirtd-tls.socket loaded failed failed Libvirt TLS IP socket
● libvirtd.socket loaded failed failed Libvirt local socket
Any push in the right direction is appreciated.
I assume, one of the recent (last 2 days?) updates causes the problem. Maybe there is a known issue, I’m not aware of.
dalto
November 14, 2021, 10:29am
2
Is your user account in the libvirt
group?
Yes. libvirt and kvm. It used to run flawlessly until maybe two days ago. I didn’t change anything in the setup.
I just tried, if downgrading systemd solves the issue (there has been a recent update). No luck with this one.
This is the important part of the boot log
journalctl -b | grep libvirt
Nov 14 12:28:11 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:11 ****** libvirtd[758]: libvirt version: 7.9.0
Nov 14 12:28:11 ****** libvirtd[758]: hostname: ******
Nov 14 12:28:11 ****** libvirtd[758]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Nov 14 12:28:11 ****** systemd[1]: libvirtd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:28:11 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:11 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 1.
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** libvirtd[1344]: libvirt version: 7.9.0
Nov 14 12:28:12 ****** libvirtd[1344]: hostname: ******
Nov 14 12:28:12 ****** libvirtd[1344]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 2.
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** libvirtd[1357]: libvirt version: 7.9.0
Nov 14 12:28:12 ****** libvirtd[1357]: hostname: ******
Nov 14 12:28:12 ****** libvirtd[1357]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 3.
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** libvirtd[1372]: libvirt version: 7.9.0
Nov 14 12:28:12 ****** libvirtd[1372]: hostname: ******
Nov 14 12:28:12 ****** libvirtd[1372]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 4.
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:12 ****** libvirtd[1430]: libvirt version: 7.9.0
Nov 14 12:28:12 ****** libvirtd[1430]: hostname: ******
Nov 14 12:28:12 ****** libvirtd[1430]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:28:12 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:12 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Nov 14 12:28:13 ****** systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 5.
Nov 14 12:28:13 ****** audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:13 ****** audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=libvirtd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Nov 14 12:28:13 ****** systemd[1]: libvirtd.service: Start request repeated too quickly.
Nov 14 12:28:13 ****** systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:13 ****** systemd[1]: libvirtd-ro.socket: Failed with result 'service-start-limit-hit'.
Nov 14 12:28:13 ****** systemd[1]: libvirtd.socket: Failed with result 'service-start-limit-hit'.
Nov 14 12:28:13 ****** systemd[1]: libvirtd-admin.socket: Failed with result 'service-start-limit-hit'.
systemctl status libvirtd.service
Nov 14 12:28:12 ****** libvirtd[1344]: Interner Fehler: Failed to load module '/usr/lib/libvirt/storage-backend/libvirt_storage_backend_gluster.so': libtcmalloc.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
pacman -F libtcmalloc.so.4
extra/gperftools 2.9.1-1
usr/lib/libtcmalloc.so.4
systemctl status libvirtd.service
× libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2021-11-14 12:28:13 CET; 17min ago
TriggeredBy: × libvirtd-ro.socket
× libvirtd.socket
× libvirtd-admin.socket
Docs: man:libvirtd(8)
https://libvirt.org
Process: 1430 ExecStart=/usr/bin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3)
Main PID: 1430 (code=exited, status=3)
CPU: 44ms
Nov 14 12:28:13 DesktopEOS systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 5.
Nov 14 12:28:13 DesktopEOS systemd[1]: Stopped Virtualization daemon.
Nov 14 12:28:13 DesktopEOS systemd[1]: libvirtd.service: Start request repeated too quickly.
Nov 14 12:28:13 DesktopEOS systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Nov 14 12:28:13 DesktopEOS systemd[1]: Failed to start Virtualization daemon.
Just found out, which package contains this library. Already installed. Just testing and reporting.
sudo pacman -Fy
pacman -F libname.so
Thanks for your effort. Problem solved.
Strange this is. I didn’t delete this package. Maybe dependencies changed. I have to have a look, when the last qemu/kvm update was and which requirements the packages ask for.
Nothing was deleted. Just had a look at pacman history. Something changed. Trying to find out, what the problem is. Maybe it’s worth a bug report.
pahis | grep gperf
[2021-11-14T12:49:30+0100] [ALPM] installed gperftools (2.9.1-1)
[2021-05-23T20:11:08+0200] [ALPM] installed gperf (3.1-3)
i do not have the package installed and i can run virtualmanager/qemu/gnomeboxes just fine … must be something you use in settings needing it?
system
Closed
November 16, 2021, 12:55pm
14
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.