1:安装qemu
QEMU_EFI.fd 文件需要自行下载,
kylindisk.qcow2文件创建
bash
qemu-img create -f qcow2 kylindisk.qcow2 20G
2:创建并且运行镜像:可以通过远程工具访问22端口连接
bash
qemu-system-aarch64.exe -m 8192 -cpu cortex-a72 -smp 8,sockets=4,cores=2 -M virt -bios D:\runjian\qemu\soreware\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=E:\jingx\Kylinarm\kylindisk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=E:\jingx\Kylinarm\Kylin-Embedded-V10-SP1-General-RC5-Build03-Base-202408021336-ARM64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -net nic -net user,hostfwd=tcp::2222-:22
3:运行创建的端口
bash
qemu-system-aarch64.exe -m 8192 -cpu cortex-a72 -smp 8,sockets=4,cores=2 -M virt -bios D:\runjian\qemu\soreware\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=E:\jingx\Kylinarm\kylindisk.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