libvirtd[num]: 无法打开文件‘/sys/class/net/veth7a03557/operstate’: 没有此文件或目录

libvirtd[num]: 无法打开文件‘/sys/class/net/veth7a03557/operstate’: 没有此文件或目录

我想安装 virt-manager 和 kvm,我已经安装好了,但是当我写

它显示下面的错误 sudo systemctl status libvirtd.service

jūn 11 12:04:25 intelli5 libvirtd[916]: Failed to open file '/sys/class/net/veth7a03557/operstate': No such file or directory
jūn 11 12:04:25 intelli5 libvirtd[916]: unable to read: /sys/class/net/veth7a03557/operstate: No such file or directory
jūn 11 12:04:43 intelli5 libvirtd[916]: Failed to open file '/sys/class/net/veth4342446/operstate': No such file or directory
jūn 11 12:04:43 intelli5 libvirtd[916]: unable to read: /sys/class/net/veth4342446/operstate: No such file or directory
jūn 11 12:05:27 intelli5 libvirtd[916]: Failed to open file '/sys/class/net/veth09791a3/operstate': No such file or directory
jūn 11 12:05:27 intelli5 libvirtd[916]: unable to read: /sys/class/net/veth09791a3/operstate: No such file or directory
jūn 11 12:05:44 intelli5 libvirtd[916]: Failed to open file '/sys/class/net/veth86ee9f3/operstate': No such file or directory
jūn 11 12:05:44 intelli5 libvirtd[916]: unable to read: /sys/class/net/veth86ee9f3/operstate: No such file or directory
jūn 11 12:06:29 intelli5 libvirtd[916]: Failed to open file '/sys/class/net/veth101ebe9/operstate': No such file or directory

然而,现状是Active: active (running)

我该如何修复这些错误?

答案1

首先,这些(很高兴)通常不是致命错误。这个错误而且它似乎主要来自于添加+重命名设备(现在大多数网络后端都会自动执行此操作)。

有可用的修复方法:

> 72d99b094b Avoid unnecessary error messages handling udev events
> abbd3a3184 node_device_udev: handle move events

这些在 libvirt v6.3.0 中,因此在 Ubuntu 20.10 及更高版本中也存在。由于这是一个非关键问题,因此它实际上不符合斯洛伐克大学。因此,如果它们真的让你很烦,你可以考虑升级,或者考虑使用服务器反向移植

相关内容