kvm 内部错误:无法找到适合 x86_64 的模拟器
0x00 问题
安装完 KVM 之后,启动管理工具报错:内部错误:无法找到适合 x86_64 的模拟器
于是查看 libvirtd 服务状态,查看到以下内容:
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.498+0000: 21223: error : virQEMUCapsLoadCache:3471 : 内部错误:missing microcode version in QEMU capabilities cache
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.498+0000: 21223: warning : virFileCacheLoad:161 : Failed to load cached data from '/var/cache/libvirt/qemu/capabilities/3c76bc41d59c0c7314b1ae8e63f4f765d2cf16abaeea081b3ca1f5d8732f7bb1.xml' for '/usr/libexec/qemu-kvm': 内部错误:missing microcode version in QEMU capabilities cache
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.526+0000: 21223: error : virQEMUCapsNewForBinaryInternal:4589 : 内部错误:Failed to probe QEMU binary with QMP: /usr/libexec/qemu-kvm: relocation error: /lib64/libspice-server.so.1: symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.526+0000: 21223: warning : virQEMUCapsLogProbeFailure:4536 : 为 /usr/libexec/qemu-kvm 探测功能失败:内部错误:Failed to probe QEMU binary with QMP: /usr/libexec/qemu-kvm: relocation error: /lib64/libspice-server.so.1: symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.527+0000: 21223: error : virQEMUCapsLoadCache:3471 : 内部错误:missing microcode version in QEMU capabilities cache
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.528+0000: 21223: warning : virFileCacheLoad:161 : Failed to load cached data from '/var/cache/libvirt/qemu/capabilities/3c76bc41d59c0c7314b1ae8e63f4f765d2cf16abaeea081b3ca1f5d8732f7bb1.xml' for '/usr/libexec/qemu-kvm': 内部错误:missing microcode version in QEMU capabilities cache
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.555+0000: 21223: error : virQEMUCapsNewForBinaryInternal:4589 : 内部错误:Failed to probe QEMU binary with QMP: /usr/libexec/qemu-kvm: relocation error: /lib64/libspice-server.so.1: symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.555+0000: 21223: warning : virQEMUCapsLogProbeFailure:4536 : 为 /usr/libexec/qemu-kvm 探测功能失败:内部错误:Failed to probe QEMU binary with QMP: /usr/libexec/qemu-kvm: relocation error: /lib64/libspice-server.so.1: symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.555+0000: 21223: error : virCapabilitiesDomainDataLookupInternal:736 : 无效参数:could not find capabilities for arch=x86_64 domaintype=qemu
6月 14 10:18:53 localhost.localdomain libvirtd[21222]: 2019-06-14 02:18:53.555+0000: 21223: error : virQEMUCapsGetDefaultVersion:1494 : 内部错误:无法找到适合 x86_64 的模拟器
过滤出关键信息为:symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference
0x01 解决
安装 openssl
[root@localhost ~]# yum -y install openssl
重启 libvirtd
[root@localhost ~]# systemctl restart libvirtd.service