[SOLVED]
Hi everyone,
I've been trying to create a virtual machine recently, but keep getting the same error when trying to connect to QEMU/KVM.
Unable to connect to libvirt qemu:///system.
Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory
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: Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory
I've nstalled the libvirt and libvirt-s6 packages.
I also added the bundle with sudo s6-rc-bundle-update add default libvirtd
So it should be enabling itself on boot, right?
I'm honestly pretty stumped at this, has anyone been able to fix this issue?
EDIT: I was able to fix this issue by running the command:
sudo s6-rc-bundle-update change default libvirtd-srv
and by starting it with:
sudo s6-rc -u change libvirtd-srv