飞腾D2000 UOS下安装KVM虚拟机

其他的和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

记麒麟V10 +飞腾1500A 安装kvm失败全过程_kvm 飞腾_奋斗的小菜菜的博客-CSDN博客enabled;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]: 操作失败: Cannot find CPU model with PVR 0x660。https://blog.csdn.net/qq_40539437/article/details/129485077看到这个,就像到是不是补齐就可以了。

虽然有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了

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值