guan qin
2011-May-05 12:07 UTC
[libvirt-users] Error: unable to connect to '/var/run/libvirt/libvirt-sock'
Hi, I meet with the problem that "Error: unable to connect to '/var/run/libvirt/libvirt-sock' ". I do as Error: unable to connect to '/var/run/libvirt/libvirt-sock' <http://wiki.libvirt.org/page/FAQ#Error:_unable_to_connect_to_.27.2Fvar.2Frun.2Flibvirt.2Flibvirt-sock.27>said but never worked: root at shahe26:~# virsh error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory error: failed to connect to the hypervisor root at shahe26:~# ls /usr/lib64 | grep libvirt libvirt libvirt.a libvirt.la libvirt-qemu.a libvirt-qemu.la libvirt-qemu.so libvirt-qemu.so.0 libvirt-qemu.so.0.8.3 libvirt-qemu.so.0.9.0 libvirt.so libvirt.so.0 libvirt.so.0.8.3 libvirt.so.0.9.0 root at shahe26:~# ls /usr/lib32 | grep libvirt root at shahe26:~# /etc/init.d/libvirt-bin restart Restarting libvirt management daemon: /usr/sbin/libvirtd. root at shahe26:~# virsh error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory error: failed to connect to the hypervisor root at shahe26:~# I install the libvirt as follows: #./configure --prefix=/usr --libdir=/usr/lib64 #make #make install my OS is debian6.0.1a: root at shahe26:~# uname -a Linux shahe26 2.6.32 #1 SMP Wed Apr 27 21:52:04 PDT 2011 x86_64 GNU/Linux root at shahe26:~# How to solve this problem?thanks. best regards, qinguan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110505/ab7c4176/attachment.htm>
Daniel P. Berrange
2011-May-05 12:14 UTC
[libvirt-users] [libvirt] Error: unable to connect to '/var/run/libvirt/libvirt-sock'
On Thu, May 05, 2011 at 08:07:30PM +0800, guan qin wrote:> Hi, > I meet with the problem that "Error: unable to connect to > '/var/run/libvirt/libvirt-sock' ". > I do as Error: unable to connect to '/var/run/libvirt/libvirt-sock' > <http://wiki.libvirt.org/page/FAQ#Error:_unable_to_connect_to_.27.2Fvar.2Frun.2Flibvirt.2Flibvirt-sock.27>said > but never worked: > > root at shahe26:~# virsh > error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may > need to be started: No such file or directory > error: failed to connect to the hypervisor > root at shahe26:~# ls /usr/lib64 | grep libvirt > libvirt > libvirt.a > libvirt.la > libvirt-qemu.a > libvirt-qemu.la > libvirt-qemu.so > libvirt-qemu.so.0 > libvirt-qemu.so.0.8.3 > libvirt-qemu.so.0.9.0 > libvirt.so > libvirt.so.0 > libvirt.so.0.8.3 > libvirt.so.0.9.0 > root at shahe26:~# ls /usr/lib32 | grep libvirt > root at shahe26:~# /etc/init.d/libvirt-bin restart > Restarting libvirt management daemon: /usr/sbin/libvirtd. > root at shahe26:~# virsh > error: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may > need to be started: No such file or directory > error: failed to connect to the hypervisor > root at shahe26:~# > > I install the libvirt as follows: > #./configure --prefix=/usr --libdir=/usr/lib64You're missing --localstatedir=/var --sysconfdir=/etc> #make > #make install >Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Maybe Matching Threads
- can't up the eth in the vm and access to network
- Failed to bind socket to '/var/run/libvirt/libvirt-sock': Permission denied
- Failed to connect socket to '/usr/local/libvirt/var/run/libvirt/libvirt-sock
- [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)]
- Centos 6.6 Can't connect to local MySQL server through socket /var/lib/MySQL/MySQL.sock (error 2002)