virNetSocketReadWire:1801:读取数据时文件结束:输入/输出错误

virNetSocketReadWire:1801:读取数据时文件结束:输入/输出错误

每次我启动/停止 KVM 时,libvirtd 3.0.0-4系统日志中都会抛出以下错误:

libvirtd[3145]: 2018-08-07 21:00:19.699+0000: 3145: \
    error : qemuMonitorIO:710 : internal error: \
    End of file from qemu m     onitor
virtlogd[2753]: 2018-08-07 21:00:19.901+0000: 2753: \
    error : virNetSocketReadWire:1801 : \
    End of file while reading data: Input/output error

有人遇到同样的问题吗?

答案1

可能您缺少驱动程序:

yum -y install libvirt-daemon-driver-qemu && systemctl restart libvirtd

答案2

就我而言,我必须从 /etc/modprobe.d/nf-blacklist.conf 中删除 nat 相关模块。否则,这些模块将不会被加载并且 virsh 网络会被卡住。

您可以通过 lsmod | 检查是否有 nat 模块grep nat,良好的输出:

lsmod | grep nat
nf_nat_masquerade_ipv4    16384  1 ipt_MASQUERADE
iptable_nat            16384  1
nf_nat_ipv4            16384  1 iptable_nat
nf_nat                 36864  2 nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_conntrack          155648  6 xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat,ipt_MASQUERADE,nf_nat_ipv4
ip_tables              28672  3 iptable_filter,iptable_nat,iptable_mangle
libcrc32c              16384  3 nf_conntrack,nf_nat,raid456

相关内容