/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了,感觉太神奇了.








  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值