Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Unable to connect to libvirt qemu:///system. (Read 1882 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to connect to libvirt qemu:///system.

Hello people. I'm having a problem with virt-manager in witch it doesn't wanna work, and I didn't find the how to fix the error in anyway, in a openrc system at least, that I guess is part of the problem.

Code: [Select]
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.10/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 added myself in to the libvirt group, installed the libvirt-openrc package, tried opening the program in sudo and searched everywhere but I can't make it work. Help would be nice.
Thanks in advance.

Re: Unable to connect to libvirt qemu:///system.

Reply #1
This sounds silly but are you absolute sure you started the service? The socket file missing usually means that libvirtd isn't actually running.

 

Re: Unable to connect to libvirt qemu:///system.

Reply #2
This sounds silly but are you absolute sure you started the service? The socket file missing usually means that libvirtd isn't actually running.
Yeah I guess I am retarded. I just sudo rc-service libvirtd start and it worked. lol
Thanks btw.