Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to connect socket to '/var/run/libvirt/libvirt-sock' #71

Closed
imehrdad2012 opened this issue Jun 7, 2013 · 5 comments
Closed

Failed to connect socket to '/var/run/libvirt/libvirt-sock' #71

imehrdad2012 opened this issue Jun 7, 2013 · 5 comments

Comments

@imehrdad2012
Copy link

I trying to grizzly version on ubuntu 13.04. it's says Failed to connect
socket to '/var/run/libvirt/libvirt-sock'

Please check my console log
root@dahlia:# kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
root@dahlia:
# virsh net-destroy default
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such
file or directory
root@dahlia:~# virsh net-undefine default
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such
file or directory

Do you have any suggestion how to resolve this issue?

@aosi87
Copy link

aosi87 commented Jun 11, 2013

Well this is ubuntu?, if its that so try checking the permissions right in each directory. check if root its in the default group (libvirtd), watch the logs (/var/log/messages),
check:

virsh 'net-list '

and see if its really exist a default option.
this problem can be also that libvirtd its not running, if its that so try:

service libvirtd restart
/etc/init.d/libvirt restart

or check if its in the rc.d files, start it up when the machine boots. http://wiki.libvirt.org/page/The_daemon_cannot_be_started

thats some problems i have when i learn to use KVM =D cheers .

@Tycheon
Copy link

Tycheon commented Jun 7, 2015

Just ran into this issue, and restarting the service did the trick. Thanks! =)

@theassyrian
Copy link

good call!

@perlun
Copy link

perlun commented Oct 31, 2018

Just ran into the same issue on Debian: sudo apt-get install libvirt-daemon-system helped me solve it.

@ycs0220
Copy link

ycs0220 commented Feb 17, 2019

I have the same question on Centos7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants