Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: mikhailovich_ on 21 January 2022, 19:18:14

Title: Unable to connect to libvirt qemu:///system.
Post by: mikhailovich_ on 21 January 2022, 19:18:14
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.
Title: Re: Unable to connect to libvirt qemu:///system.
Post by: Dudemanguy on 21 January 2022, 19:42:05
This sounds silly but are you absolute sure you started the service? The socket file missing usually means that libvirtd isn't actually running.
Title: Re: Unable to connect to libvirt qemu:///system.
Post by: mikhailovich_ on 21 January 2022, 20:23:35
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.