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