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@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@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@shahe26:~# ls /usr/lib32 | grep libvirt > root@shahe26:~# /etc/init.d/libvirt-bin restart > Restarting libvirt management daemon: /usr/sbin/libvirtd. > root@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@shahe26:~# > > I install the libvirt as follows: > #./configure --prefix=/usr --libdir=/usr/lib64 You'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 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list