Page MenuHomeSolus

Unable to connect to libvirt. - Virtul Machine manager
Closed, ResolvedPublic


Virtul Machine manager

Unable to connect to libvirt.

Verify that the 'libvirtd' daemon is running.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/", line 904, in _do_open
  File "/usr/share/virt-manager/virtinst/", line 148, in open
  File "/usr/lib/python2.7/site-packages/", 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

Event Timeline

crackerica updated the task description. (Show Details)

Have you tried starting libvirtd?

sudo systemctl start libvirtd.service

of course! Sometimes VM show errors....

kyrios123 added a subscriber: kyrios123.EditedApr 17 2017, 3:03 PM

This is fixed in the package I made for libvirt 3.2.0, libvirt sock files are placed in /run/libvirt/ instead of /var/run/libvirt/

ok . resolved! TX

DataDrake closed this task as Resolved.Apr 19 2017, 11:14 AM
DataDrake claimed this task.

I just installed virt-manager from the Software Center and need to run "sudo systemctl start libvirtd.service" every time. Did something change in the package or is there a configuration change I can make to start the service automatically when virt-manager runs? Thanks. I'm loving Solus!

Try: sudo systemctl enable libvirtd.service

That worked. Many thanks for the speedy reply. I'm still getting up to speed on Linux.