unable to connect to libvirt qemu:///system.
- Dominant language
- Shell
- Stars
- 10.3k
- Forks
- 452
- PR merge metrics
- No merged PRs in 30d
Description
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 923, 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/dist-packages/libvirt.py", line 148, in openAuth
raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the qemu:///system connection failure and read virtManager/connection.py and virtinst/connection.py around the libvirt.openAuth call. Check the reported libvirtd service and /var/run/libvirt/libvirt-sock permission context; done means identifying a project-relevant fix that allows the connection without the permission-denied error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100