bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

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

Closed imehrdad2012 closed 11 years ago

imehrdad2012 commented 11 years ago

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 commented 11 years ago

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 commented 9 years ago

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

theassyrian commented 6 years ago

good call!

perlun commented 6 years ago

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

ycs0220 commented 5 years ago

I have the same question on Centos7.4