反复多次尝试未成功,有类似经历的大佬吗? 求分享经验。。。
@echo off
rem !/usr/bin/env bash
set RAM_MEMORY=8G
set CPU_CORES=1
set CPU_THREADS=2
set BIOS_OVMF=D:\Github\Qemu\macos-monterey\OVMF_CODE.fd
set BIOS_VARS=D:\Github\Qemu\macos-monterey\OVMF_VARS-1920x1080.fd
set BIOS_AAVMF=D:\Github\Qemu\macos-monterey\AAVMF_CODE.fd
set BIOS_AVARS=D:\Github\Qemu\macos-monterey\AAVMF_VARS.fd
set BIOS_AARCH64=D:\Tools\qemu\share\edk2-aarch64-code.fd
set BIOS_ARM=D:\Tools\qemu\share\edk2-arm-code.fd
set BIOS_VIRTIO=D:\Tools\qemu\share\efi-virtio.rom
set BIOS_PATH=D:\Github\Qemu\QEMU_EFI_kernel_16.02.fd
set DISK_PATH=D:\Github\Qemu\macos_disk.qcow2
set CDROM_PATH=E:\Softwares\macOS\macOS-Ventura-13.5.iso
set FLASH_PATH=D:\Github\Qemu\macos-monterey\RecoveryImage.img
rem -boot order=d,menu=on,strict=on ^
rem -accel tcg,thread=multi ^
rem -rtc base=localtime,clock=host ^
rem -device VGA ^
rem -display gtk,gl=off ^
rem -bios %BIOS_PATH% ^
rem -device nec-usb-xhci ^
rem -device virtio-scsi-device ^
rem -device scsi-cd,drive=cdrom ^
rem -device virtio-blk-device,drive=hdc ^
rem -drive if=pflash,format=raw,unit=0,file=%BIOS_AAVMF% ^
rem -drive if=pflash,format=raw,unit=1,file=%BIOS_AVARS% ^
D:\Tools\qemu\qemu-system-aarch64.exe ^
-machine virt ^
-cpu cortex-a76 ^
-smp %CPU_THREADS%,cores=%CPU_CORES% ^
-m %RAM_MEMORY% ^
-device qemu-xhci ^
-device usb-kbd -device usb-mouse -device usb-tablet ^
-bios %BIOS_PATH% ^
-drive if=none,format=raw,media=cdrom,index=0,id=cdrom,file=%CDROM_PATH% ^
-drive if=none,format=raw,media=disk,index=1,id=flash,file=%FLASH_PATH% ^
-drive if=none,format=qcow2,media=disk,index=2,id=hdc,file=%DISK_PATH% ^
-device virtio-scsi-pci ^
-device scsi-cd,drive=cdrom ^
-device scsi-hd,drive=flash ^
-device scsi-hd,drive=hdc ^
-monitor stdio ^
-net nic ^
-net user
1
nashaofu 2023-08-29 12:44:48 +08:00 via iPhone
docker 安装成功,github 搜 docker-osx,qemu 不是很了解,目前用 docker-osx 测试 mac 应用一切良好
|
2
andytao OP docker-osx 是模拟不同的指令集架构吗?
|
3
HandSonic 2023-08-29 16:51:51 +08:00
真是个人才,ARM 还能黑苹果了?
|