<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div><br></div><div>    I am using the libvirt 4.9  version. I get the following error when I try to run the command virsh list after the system comes up</div><div><br></div><div>virsh list<br>error: failed to connect to the hypervisor<br>error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory</div><div><br></div><div>When I run the command ps -ef | grep libvirtd, to find whether the libvirtd process is running. I get the following message.</div><div><br></div><div> ps -ef | grep libvirtd<br>root       418     1  0 06:33 ?        00:00:00 /usr/sbin/libvirtd --daemon --config /etc/libvirt/libvirtd.conf<br>root       420     1  0 06:33 ?        00:00:00 /usr/sbin/libvirtd --daemon --config /etc/libvirt/libvirtd.conf<br></div><div><br></div><div>After sometime, I see that the virsh list command goes through and the command ps -ef | grep libvirtd, gives the following putput</div><div><br></div><div>ps -ef | grep libvirtd<br>root       420     1  0 06:33 ?        00:00:00 /usr/sbin/libvirtd --daemon --config /etc/libvirt/libvirtd.conf<br>root       610   227  0 06:34 ttyS0    00:00:00 grep libvirtd<br>root@draco:~# virsh list<br>Id   Name   State  <br>--------------------<br><br></div><div>Following are the logs of journalctl -xe | grep libvirtd</div><div><br></div><div>-- Unit libvirtd.service has begun starting up.                                                    <br>Feb 04 06:32:01 draco libvirtd[388]: 2019-02-04 06:32:01.298+0000: 388: info : libvirt version: 4.9.0                                                                          <br>Feb 04 06:32:01 draco libvirtd[388]: 2019-02-04 06:32:01.298+0000: 388: info : hostname: draco       <br>Feb 04 06:32:01 draco libvirtd[388]: 2019-02-04 06:32:01.298+0000: 388: warning : virGetHostnameImpl:714 : getaddrinfo failed for 'draco': Temporary failure in name resolution<br>Feb 04 06:33:31 draco systemd[1]: libvirtd.service: Start operation timed out. Terminating.                                                                                    <br>Feb 04 06:33:31 draco systemd[1]: libvirtd.service: Failed with result 'timeout'.                                                                                              <br>-- Subject: Unit libvirtd.service has failed                                                         <br>-- Unit libvirtd.service has failed.                                                                 <br>Feb 04 06:33:31 draco systemd[1]: libvirtd.service: Service hold-off time over, scheduling restart.                                                                            <br>Feb 04 06:33:31 draco systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 4.                                                                            <br>-- Automatic restarting of the unit libvirtd.service has been scheduled, as the result for                                                                                     <br>-- Subject: Unit libvirtd.service has finished shutting down                                       <br>-- Unit libvirtd.service has finished shutting down.                                                                                                                           <br>-- Subject: Unit libvirtd.service has begun start-up                                                 <br>-- Unit libvirtd.service has begun starting up.                                                    <br>Feb 04 06:33:31 draco libvirtd[418]: 2019-02-04 06:33:31.799+0000: 418: info : libvirt version: 4.9.0                                                                          <br>Feb 04 06:33:31 draco libvirtd[418]: 2019-02-04 06:33:31.799+0000: 418: info : hostname: draco        [4 draco libvirtd[418]: 2019-02-04 06:33:31.799+0000: 418: warning : virGetHostnameImpl:714 : getaddrn<br>Feb 04 06:33:31 draco libvirtd[418]: 2019-02-04 06:33:31.799+0000: 418: warning : virGetHostnameImpl:714 : getaddrinfo failed for 'draco': Temporary failure in name resolution<br>-- Subject: Unit libvirtd.service has finished start-up                                                                                                                        <br>-- Unit libvirtd.service has finished starting up.                                                                                                                             <br>Feb 04 06:34:41 draco libvirtd[420]: 482: info : libvirt version: 4.9.0                              <br>Feb 04 06:34:41 draco libvirtd[420]: 482: info : hostname: draco                                     <br>Feb 04 06:34:41 draco libvirtd[420]: 482: error : virGetUserID:1041 : invalid argument: Failed to parse user 'tss'                                                             <br>Feb 04 06:34:41 draco libvirtd[420]: 482: error : virGetGroupID:1124 : invalid argument: Failed to parse group 'tss'                                                           <br>- msg 68/68 100%<br></div><div><br></div><div><br></div><div>It is found that the libvirt systemd service times out, and for some unkonwn reason the previous libvitrd process is not killed.</div><div>I dont see any errors in /var/log/messages or /var/log/syslog. <br></div><div><br></div><div>Could anyone please help?</div><div><br></div><div>Thanks</div><div>Sharath<br></div><div><br></div><div><br></div></div></div></div></div></div></div>