飞腾D2000 UOS下安装KVM虚拟机
2 days ago3月 10 17:59:54 xxx libvirtd[3207515]: hostname: cnki-120-145-1893月 10 17:59:54 xxx libvirtd[3207515]: 操作失败: Cannot find CPU model with PVR 0x6603月 10 17:59:54 xxx libvirtd[3207515]: 操作失败: Ca
其他的和x86环境都差不多,开了开发者模式后,virt-manager qemu-efi-aarch64 qemu-system 几个包补齐,启动libvirtd服务,查看日志,报以下日志,
4月 09 21:13:34 actionchen-PC systemd[1]: Starting Virtualization daemon...
4月 09 21:13:34 actionchen-PC systemd[1]: Started Virtualization daemon.
4月 09 21:13:34 actionchen-PC libvirtd[8951]: libvirt version: 5.0.0, package: 1 (Debian Libvirt Maintainers <pkg-libvirt-maintainers@lists.alioth.debian.org> Mon, 07 Jun 2021 16:35
4月 09 21:13:34 actionchen-PC libvirtd[8951]: hostname: actionchen-PC
4月 09 21:13:34 actionchen-PC libvirtd[8951]: Failed to get host CPU cache info
4月 09 21:13:34 actionchen-PC libvirtd[8951]: Cannot check QEMU binary /usr/libexec/qemu-kvm: 没有那个文件或目录
4月 09 21:13:34 actionchen-PC libvirtd[8951]: Cannot check QEMU binary /usr/libexec/qemu-kvm: 没有那个文件或目录
4月 09 21:13:34 actionchen-PC libvirtd[8951]: Failed to get host CPU cache info
4月 09 21:17:54 actionchen-PC libvirtd[8951]: Failed to get host CPU cache info
4月 09 21:17:54 actionchen-PC libvirtd[8951]: this function is not supported by the connection driver: virConnectGetCPUModelNames
4月 09 21:17:54 actionchen-PC libvirtd[8951]: this function is not supported by the connection driver: virConnectGetAllDomainStats
同时,virt-manager图形面板无法创建qemu的虚拟机
百度了下,有人提到cpu_map
虽然有x86的配置文件,但确实不知道啥格式,直接查看官网最新的源码示例
libvirt/src/cpu_map at master · libvirt/libvirt · GitHubRead-only mirror. Please submit merge requests / issues to https://gitlab.com/libvirt/libvirt - libvirt/src/cpu_map at master · libvirt/libvirthttps://github.com/libvirt/libvirt/tree/master/src/cpu_map里面FT2000+ S2500都有了,直接copy改了一个主要是那个pvr的值
cat /usr/share/libvirt/cpu_map/ft_d2000.xml
<cpus>
<model name='FT-D2000+'>
<vendor name='Phytium'/>
<pvr value='0x663'/>
</model>
</cpus>
来自于cpuinfo
processor : 7
model name : Phytium D2000/8 E8C
BogoMIPS : 96.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x70
CPU architecture: 8
CPU variant : 0x1
CPU part : 0x663
CPU revision : 3
这个其实是飞腾CPU的型号架构代号。
写好后重启libvirtd服务就OK了
更多推荐
所有评论(0)