Systemd-creds fails to decript with error Failed to encrypt: io.systemd.System

For context, I am trying to ruin virt-manager. There was no active connection. THe only available one was qemu/kvm. I decided to right click it and click connect. I got an error message saying: ```nable to connect to libvirt qemu:///system.

Verify that an appropriate libvirt daemon is running.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/connection.py”, line 940, in _do_open
self._backend.open(cb, data)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File “/usr/share/virt-manager/virtinst/connection.py”, line 173, in open
conn = libvirt.openAuth(self._open_uri, [valid_auth_options, authcb, cbdata], open_flags)
File “/usr/lib64/python3.13/site-packages/libvirt.py”, line 148, in openAuth
raise libvirtError(‘virConnectOpenAuth() failed’)
libvirt.libvirtError: Failed to connect socket to ‘/var/run/libvirt/virtqemud-sock’: No such file or directory. I decided to try to start libvirt and ran systemctl start libvirtd. I get an error saying `A dependency job for libvirtd.service failed. See 'journalctl -xe' for details.` There are no relevant results there. I decided to run `systemctl list-dependencies --failed libvirtd.service libvirtd.service` and I got `virt-secret-init-encryption.service`. Tried to start that and got Job for virt-secret-init-encryption.service failed because the control process exited with error code.
See “systemctl status virt-secret-init-encryption.service” and “journalctl -xeu virt-secret-init-encryption.service” for details.. I ran the first command and got Loaded: loaded (/usr/lib/systemd/system/virt-secret-init-encryption.service; static)
Active: failed (Result: exit-code) since Mon 2026-05-04 16:26:16 +03; 1min 29s ago
Invocation: 73873e2bcba641aa93fdec2d0ee066ac
Process: 9986 ExecStart=/usr/bin/sh -c umask 0077 && (dd if=/dev/random status=none bs=32 count=1 | systemd-creds encrypt --name=secrets-encryption-key - /var/lib/libvirt/secrets/secrets-encryption-key) (code=exited, status=1/FAILURE)
Main PID: 9986 (code=exited, status=1/FAILURE)
CPU: 11ms``` (added --no-pager for it to put the entire command in one screen). I tried to run that command to see the precise issue but to not cause any issues I used a different file that does not exist. That’s where I got Failed to encrypt: io.systemd.System. I could not find any relevant information online.