You are not logged in.

#1 2018-04-28 16:04:17

drewlinux
Member
Registered: 2018-04-28
Posts: 2

[SOLVED] Unable to connect to libvirt qemu:///system

*UPDATE*
I was able to solve this by installing dnsmasq, firewalld, and dmidecode. I then double checked line 726 of /etc/libvirt/qemu.conf to find I needed to correct a typo in...

nvram = [
	"/usr/share/ovmf/x64/OVMF_CODE.fd:/usr/share/ovmf/x64/OVMF_VARS.fd"
]

*END UPDATE*


Trying to setup Qemu Kvm gpu passthrough for the first time using the Arch Wiki guide. All steps done and verified from wiki to the point of starting virt-manager.
When I start virt-manager I get, Unable to connect to libvirt qemu:///system. The error is..

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

Verify that the 'libvirtd' daemon is running.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open
    self._backend.open(self._do_creds_password)
  File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open
    open_flags)
  File "/usr/lib/python2.7/site-packages/libvirt.py", line 105, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

I am in the libvirt group, the services libvirtd.service and its logging component virtlogd.socket are running, I have uninstalled and reinstalled virt-manager.
Running virt-manager with sudo produces the same error even after relogging.

Upon looking into /var/run/libvirt/libvirt-sock, libvirt-sock is NOT there but virtlockd-sock is there?

Any help is appreciated,
Thank you, Drew

Last edited by drewlinux (2018-04-30 17:34:13)

Offline

#2 2018-04-30 13:34:48

drewlinux
Member
Registered: 2018-04-28
Posts: 2

Re: [SOLVED] Unable to connect to libvirt qemu:///system

After a fresh install of Arch I am still in this same situation. Below is the output of status libvirtd.service

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Mon 2018-04-30 09:23:09 EDT; 2min 13s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
  Process: 1112 ExecStart=/usr/bin/libvirtd $LIBVIRTD_ARGS (code=exited, status=0/SUCCESS)
 Main PID: 1112 (code=exited, status=0/SUCCESS)

Apr 30 09:23:08 AndOS systemd[1]: Started Virtualization daemon.
Apr 30 09:23:08 AndOS libvirtd[1112]: 2018-04-30 13:23:08.956+0000: 1128: info : libvirt version: 4.2.0
Apr 30 09:23:08 AndOS libvirtd[1112]: 2018-04-30 13:23:08.956+0000: 1128: info : hostname: AndOS
Apr 30 09:23:08 AndOS libvirtd[1112]: 2018-04-30 13:23:08.956+0000: 1128: error : dnsmasqCapsRefreshInternal:741 : Cannot check dnsmasq binary /usr/bin/dnsmasq: No such file or directory
Apr 30 09:23:08 AndOS libvirtd[1112]: 2018-04-30 13:23:08.968+0000: 1128: error : virFirewallValidateBackend:193 : direct firewall backend requested, but /sbin/ebtables is not available: No such file or directory
Apr 30 09:23:08 AndOS libvirtd[1112]: 2018-04-30 13:23:08.968+0000: 1128: error : virFirewallApply:918 : internal error: Failed to initialize a valid firewall backend
Apr 30 09:23:09 AndOS libvirtd[1112]: 2018-04-30 13:23:09.003+0000: 1128: error : virSysinfoReadX86:1151 : internal error: Failed to find path for dmidecode binary
Apr 30 09:23:09 AndOS libvirtd[1112]: 2018-04-30 13:23:09.004+0000: 1128: error : virConfParseValue:531 : configuration file syntax error: /etc/libvirt/qemu.conf:726: expecting a value
Apr 30 09:23:09 AndOS libvirtd[1112]: 2018-04-30 13:23:09.004+0000: 1128: error : virStateInitialize:748 : Initialization of QEMU state driver failed: configuration file syntax error: /etc/libvirt/qemu.conf:726: expecting a value
Apr 30 09:23:09 AndOS libvirtd[1112]: 2018-04-30 13:23:09.004+0000: 1128: error : daemonRunStateInit:823 : Driver state initialization failed

Any help is appreciated,
Thank you, Drew

Offline

#3 2018-08-18 10:16:29

eggz
Member
Registered: 2017-09-16
Posts: 8

Re: [SOLVED] Unable to connect to libvirt qemu:///system

I think you should first have a look at "configuration file syntax error: /etc/libvirt/qemu.conf:726: expecting a value" before doing anything else.

Offline

#4 2018-10-19 22:43:28

ElonsMusk
Member
Registered: 2018-10-19
Posts: 2

Re: [SOLVED] Unable to connect to libvirt qemu:///system

I too had the same problem. I followed Drew's instructions and got QEMU/KVM with virt-manger up and running.
Thank you Drew.

Offline

Board footer

Powered by FluxBB