安装qemu
https://qemu.weilnetz.de/w64/qemu-w64-setup-20211215.exe
下载aarch64 CentOS镜像
https://mirrors.tuna.tsinghua.edu.cn/centos/8.5.2111/isos/aarch64/CentOS-8.5.2111-aarch64-boot.iso
安装虚拟机
cd C:\Program Files\qemu
.\qemu-system-aarch64.exe -m 2048 -cpu cortex-a57 -smp 6,sockets=1,cores=3 -M virt -bios D:\vmware\arm64\centos8\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=D:\vmware\arm64\centos8\virdisk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=D:\vmware\arm64\centos8\CentOS-8.5.2111-aarch64-dvd1.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -net nic -net user,hostfwd=tcp::2222-:22
启动虚拟机
cd C:\Program Files\qemu
.\qemu-system-aarch64.exe -m 2048 -cpu cortex-a57 -smp 6,sockets=1,cores=3 -M virt -bios D:\vmware\arm64\centos8\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=D:\vmware\arm64\centos8\virdisk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -net nic -net user,hostfwd=tcp::2222-:22
ssh连接虚拟机
win10 ssh工具连接:
user: root
ip: 127.0.0.1
port: 2222 端口映射配置中设置的