/var/run/libvirt/virtlogd-sock': No such file or directory

启动实例报错,说是没有 virtlogd-sock,奇了怪,这个是什么服务

[root@nova02 a9a2bb9b-5e7b-469f-b641-543a3153c9c3]# virsh start instance-0000023e
error: Failed to start domain instance-0000023e
error: Failed to connect socket to '/var/run/libvirt/virtlogd-sock': No such file or directory


这个问题是因为在libvirtd.service在起来的时间, virtlogd.socket没有随之起来



手动启动virtlogd服务

# systemctl start virtlogd.socket

这个socker文件路径是 : /var/run/libvirt/virtlogd-sock ,这样vm可以启动了


virtlogd man page

virtlogd — libvirt log management daemon    libvirt 日志管理后台服务

Synopsis

virtlogd [OPTION]...

Description

The virtlogd program is a server side daemon component of the libvirt virtualization management system that is used to manage logs from virtual machine consoles.

This daemon is not used directly by libvirt client applications, rather it is called on their behalf by libvirtd. By maintaining the logs in a standalone daemon, the main libvirtd daemon can be restarted without risk of losing logs. The virtlogd daemon has the ability to re-exec() itself upon receiving SIGUSR1, to allow live upgrades without downtime.

The virtlogd daemon listens for requests on a local Unix domain socket.


看官方介绍是一个用来管理vm consoles的一个组件,同时为了保证libvirtd在重启的时候保证日志不丢失。


相关网站:https://www.mankier.com/8/virtlogd

https://specs.openstack.org/openstack/nova-specs/specs/ocata/implemented/libvirt-virtlogd.html      openstack竟然也支持 virtlogd了,感觉太神奇了.









你可能感兴趣的:(libvirt)