CentOS 6.2 and libvirt startup issues

After the centos 6.2 update I noticed libvirt was not running on some servers. Looking at the logs I found

Starting libvirtd daemon: 10:35:16.697: 6933: info : libvirt version: 0.9.4, package: 23.el6_2.1 (CentOS BuildSystem <http://bugs.centos.org>, 2011-12-17-16:39:59, c6b4.bsys.dev.centos.org)
10:35:16.697: 6933: error : virNetServerMDNSStart:460 : internal error Failed to create mDNS client: Daemon not running

 

Further investigation found avahi was needed for this to work. The final fix was running

 

yum -y install avahi
/etc/init.d/messagebus restart
/etc/init.d/avahi-daemon restart
/etc/init.d/libvirtd restart
/sbin/chkconfig messagebus on
/sbin/chkconfig avahi-daemon on

In centos 6.2 restarting libvirt will not restart the vm’s. Once done libvirt was running again.

 

 

This entry was posted in Uncategorized. Bookmark the permalink.

4 Responses to CentOS 6.2 and libvirt startup issues

  1. R.I.Pienaar says:

    Set mdns_adv=0 in the config file

  2. bob leponge says:

    hi guys, thanks for the fix :)
    but i got another error with libvirt on Centos 6.2:
    “error : 911 : virNetSocketReadWire : End of file while reading data: Input/output error”
    Has someone ever heard about this one?

  3. admin says:

    I have not seen that one before. I see a bug report on a similar issue: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=757382

    Got the latest libvirt on? If so, whats the load average / cpu usage like? If its really high you may want to see if ksm is running, i’ve seen it use a lot of CPU.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>