Bug 265604 - deskutils/virt-manager unable to connect to QEMU libvirtd socket
Summary: deskutils/virt-manager unable to connect to QEMU libvirtd socket
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Roman Bogorodskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-03 16:51 UTC by James B. Byrne
Modified: 2022-08-03 16:51 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (novel)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James B. Byrne 2022-08-03 16:51:43 UTC
# uname -a
FreeBSD vhost01.hamilton.harte-lyne.ca 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 GENERIC  amd64

Virt-manager cannot connect to libvirt qemu hypervisor.

Expected behaviour:
virt-manager can connect to QEMU libvirt socket

Observed behaviour:
Virtual Machine Connection Failure
Unable to connect to libvirt qemu:///system

Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No susch file or directory

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/local/share/virt-manager/virtManager/connection.py", line 923, in _do_open
    self._backend.open(cb, data)
  File "/usr/local/share/virt-manager/virtinst/connection.py", line 153, in open
    conn = libvirt.openAuth(self._open_uri,
  File "/usr/local/lib/python3.9/site-packages/libvirt.py", line 147, in openAuth
    raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory

Contents of /run/run/libvirt/

s -l /var/run/libvirt/
total 15
drwxr-xr-x  2 root  wheel  4 Aug  3 12:32 bhyve
drwxr-xr-x  2 root  wheel  3 Jul 28 12:37 common
srwx------  1 root  wheel  0 Jul 28 12:37 libvirt-admin-sock
srwxrwx---  1 root  wheel  0 Jul 28 12:37 libvirt-sock
srwxrwxrwx  1 root  wheel  0 Jul 28 12:37 libvirt-sock-ro
drwxr-xr-x  2 root  wheel  2 Jul 17  2020 lockd
drwxr-xr-x  2 root  wheel  4 Jul 28 12:37 network
drwxr-xr-x  2 root  wheel  3 Jul 28 12:37 secrets
drwxr-xr-x  2 root  wheel  6 Aug  2 16:20 storage