[libvirt-users] "connection refused", but server is listening

Brian Rak brak at gameservers.com
Fri Mar 7 21:02:54 UTC 2014


On 3/7/2014 3:53 PM, Pasquale Dir wrote:
>
> The is no *censored* way to restart the libvirt daemon: it just leads 
> to hang.

This is probably caused by udev... After you restart libvirt, do:

pstree -p `cat /var/run/libvirtd.pid`

You'll probably see a udev process.  Kill it, and libvirt should resume 
working normally.

This patch will "fix" it, if you feel like rebuilding libvirt:

*** src_clean/src/util/virutil.c    2013-07-30 03:21:31.000000000 -0400
--- src/src/util/virutil.c    2013-09-12 17:06:58.462540659 -0400
*************** virSetUIDGIDWithCaps(uid_t uid, gid_t gi
*** 1398,1404 ****
   void virFileWaitForDevices(void)
   {
   # ifdef UDEVADM
!     const char *const settleprog[] = { UDEVADM, "settle", NULL };
   # else
       const char *const settleprog[] = { UDEVSETTLE, NULL };
   # endif
--- 1398,1404 ----
   void virFileWaitForDevices(void)
   {
   # ifdef UDEVADM
!     const char *const settleprog[] = { UDEVADM, "settle", 
"--timeout=10", NULL };
   # else
       const char *const settleprog[] = { UDEVSETTLE, NULL };
   # endif




More information about the libvirt-users mailing list