virt-manager图形界面: 在x86下安装 qemu aarch64虚拟机
在上一篇博客中,已经解决了 virt-manager 安装和启用的问题,接下来尝试用x86模拟aarch64。
解锁virt-manager的架构设置选项:
# 参考:https://www.cnblogs.com/ishmaelwanglin/p/17821825.html sudo apt install -y qemu-system-arm qemu-efi这里参考了网友的经验,但我也有点疑问为啥不是安装aarch64相关的包。
AI也建议安装 qemu-system-aarch64 qemu-efi-aarch64
在完成上述安装之后,尝试也安装aarch64相关的包,发现aarch64相关的包其实已经安装了。
sudo apt install -y qemu-system-aarch64 qemu-efi-aarch64 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'qemu-system-arm' instead of 'qemu-system-aarch64' qemu-efi-aarch64 is already the newest version (0~20191122.bd85bf54-2ubuntu3.6). qemu-efi-aarch64 set to manually installed. qemu-system-arm is already the newest version (1:4.2-3ubuntu6.30). 0 upgraded, 0 newly installed, 0 to remove and 130 not upgraded.打开 virt-manager,此时多出了 “Architecture options” 选项,其中可选项包括:
- x86_64
- aarch64
- arm
- armv6l
注意:qumu-system-aarch64 最多支持 8 个 aarch64 逻辑CPU,超过 8 个会启动失败!