环境
制作引导文件
下载库
git clone https://github.com/kholia/OSX-KVM.git
|
下载并转换 OSX-KVM
#下载 ./fetch-macOS-v2.py
#转换 qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
#迁移 mv BaseSystem.img /var/lib/vz/template/iso/
|
提取opencore /OSX-KVM/OpenCore
#解压 7z x OpenCore.qcow2
#迁移 mv primary.img /var/lib/vz/template/iso/
|
设置虚拟机(Intel)
args: -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -cpu host,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc bios: ovmf boot: order=sata0;ide2;net0;ide0 cores: 4 cpu: host efidisk0: local:100/vm-100-disk-0.raw,efitype=4m,size=528K ide0: local:iso/BaseSystem.img,cache=unsafe,size=3143856K ide2: local:iso/primary.img,cache=unsafe,size=152551936 machine: q35 memory: 10240 meta: creation-qemu=6.2.0,ctime=1653753564 name: macOS net0: virtio=D2:80:05:5C:93:06,bridge=vmbr0,firewall=1 numa: 0 ostype: other sata0: local:100/vm-100-disk-1.qcow2,cache=unsafe,size=200G,ssd=1 scsihw: virtio-scsi-pci smbios1: uuid=4cdfd0e3-e10a-4856-b498-99bb89e4fa7c sockets: 1 vga: vmware vmgenid: 0d9974ea-5ae4-416f-8486-484b5e4a52a0
|
参考
OSX-KVM
Installing macOS 12 “Monterey” on Proxmox 7
Proxmox VE 7.1安装macOS 10.15及GPU穿通方案