主机系统为Centos7 虚拟机同主机
每运行一段时间后虚拟机都会自行崩溃
查询libvirtd.log日志文件后发现如下错误信息
2020-08-13 13:46:15.906+0000: 2018: error : qemuMonitorIO:718 : 内部错误:End of file from qemu monitor
2020-08-13 13:46:15.906+0000: 2018: debug : qemuMonitorIO:765 : Error on monitor 内部错误:End of file from qemu monitor
相对应虚拟机log日志文件中发现如下错误信息
qemu: qemu_thread_create: Resource temporarily unavailable
经free -m检验 主机可用内存远超于虚拟机分配内存
主机执行ulimit -a返回结果如下
[root@localhost ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 385903
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 204800
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 1024
cpu time (seconds, -t) unlimited
max user processes (-u) 204800
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited