<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>FW: [libvirt] error: unable to connect to'/usr/local/var/run/libvirt/libvirt-sock': Connection refused</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi, ozaki<BR>
<BR>
Another erro of mine is that:<BR>
<BR>
------------------------------------------------------------------------------------------------------------------------------------------------------<BR>
root@forest:/var/run/libvirt# /etc/init.d/libvirt-bin start<BR>
* Starting libvirt management daemon libvirtd                                                                             <BR>
 /usr/sbin/libvirtd: /usr/local/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_0.6.1' not found (required by /usr/sbin/libvirtd)<BR>
---------------------------------------------------------------------------------------------------------------------------------------------------<BR>
<BR>
I think maybe I have mixed installed version 0.6.1 and 0.7.0. But I have no idea how can I fix it?<BR>
<BR>
Regards<BR>
<BR>
Zhentao<BR>
<BR>
-----Original Message-----<BR>
From: libvir-list-bounces@redhat.com on behalf of Liu, Zhentao<BR>
Sent: Mon 10/19/2009 12:31 PM<BR>
To: Ryota Ozaki<BR>
Cc: libvir-list@redhat.com<BR>
Subject: RE: [libvirt] error: unable to connect to'/usr/local/var/run/libvirt/libvirt-sock': Connection refused<BR>
 <A HREF="https://mailsrv.fokus.fraunhofer.de/exchange/zli/Inbox/?Cmd=contents&Page=1">https://mailsrv.fokus.fraunhofer.de/exchange/zli/Inbox/?Cmd=contents&Page=1</A><BR>
Hi, ozaki<BR>
<BR>
Thank you for your reply. As you said, libvirtd is not running. I have tested, there was error:<BR>
<BR>
-------------------------------------------------------------------------------------------------------<BR>
<BR>
root@forest:/var/run/libvirt# libvirtd start<BR>
libvir: Network Config error : cannot create bridge 'virbr0': File exists<BR>
12:34:30.525: warning : qemudStartup:521 : Unable to create cgroup for driver: No such device or address<BR>
12:34:30.598: warning : lxcStartup:1460 : Unable to create cgroup for driver: No such device or address<BR>
----------------------------------------------------------------------------------------------------------<BR>
<BR>
How can I fix it?<BR>
<BR>
Regards<BR>
<BR>
Zhentao<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Ryota Ozaki [<A HREF="mailto:ozaki.ryota@gmail.com">mailto:ozaki.ryota@gmail.com</A>]<BR>
Sent: Mon 10/19/2009 12:20 PM<BR>
To: Liu, Zhentao<BR>
Cc: libvir-list@redhat.com; Ryota OZAKI<BR>
Subject: Re: [libvirt] error: unable to connect to '/usr/local/var/run/libvirt/libvirt-sock': Connection refused<BR>
<BR>
Hi Liu,<BR>
<BR>
On Mon, Oct 19, 2009 at 6:58 PM, Liu, Zhentao<BR>
<Zhentao.Liu@fokus-extern.fraunhofer.de> wrote:<BR>
> Hello,<BR>
><BR>
> I updated libvirt-bin to version 0.7.0. I still got a error:<BR>
><BR>
> -------------------------------------------------------------------------------------------<BR>
><BR>
> root@forest:/tmp/libvirt-0.7.0# virsh -c qemu:///system list<BR>
> error: unable to connect to '/usr/local/var/run/libvirt/libvirt-sock':<BR>
> Connection refused<BR>
> error: failed to connect to the hypervisor<BR>
> -------------------------------------------------------------------------------------------<BR>
><BR>
> Any helps?<BR>
<BR>
I guess libvirtd is not running, or running but waiting on<BR>
'/var/run/libvirt/libvirt-sock'<BR>
where your virsh is try to look up<BR>
'/usr/local/var/run/libvirt/libvirt-sock'. In the second<BR>
case, you can confirm my guess by doing 'lsof |grep libvirt-sock'.<BR>
<BR>
  ozaki-r<BR>
<BR>
><BR>
> Regards<BR>
><BR>
> Zhentao<BR>
><BR>
> --<BR>
> Libvir-list mailing list<BR>
> Libvir-list@redhat.com<BR>
> <A HREF="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</A><BR>
><BR>
><BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>