VirtualBox安装MacOS虚拟机

镜像下载

macOS ISO 集合

sysin macOS ISO

虚拟机-苹果地带

创建虚拟机

选择 MacOS 类型创建,做一些基础配置

修改虚拟机参数

引导 ISO 镜像,需要一个启动镜像 : 学习笔记/个人随记/virtuebox虚拟机安装macOS疑难杂症

Windows

cd D:\Software\VirtualBox

.\VBoxManage.exe modifyvm "your_vm_name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff --cpu-profile "Intel Core i7-6700K"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemFamily" "MacBook Pro"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,2"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "NO_DEVICE_SN"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" "CAFECAFE-CAFE-CAFE-CAFE-DECAFFDECAFF"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiOEMVBoxVer" "string:1"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiOEMVBoxRev" "string:.23456"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBIOSVersion" "string:MBP7.89"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-3CBD00234E554E41"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" "NO_LOGIC_BOARD_SN"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVendor" "Apple Inc."
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 0
.\VBoxManage.exe setextradata "your_vm_name" "VBoxInternal2/EfiGraphicsResolution" "1440x900"

Linux

VBoxManage modifyvm "your_vm_name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff --cpu-profile "Intel Core i7-6700K"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemFamily" "MacBook Pro"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,2"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "NO_DEVICE_SN"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemUuid" "CAFECAFE-CAFE-CAFE-CAFE-DECAFFDECAFF"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiOEMVBoxVer" "string:1"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiOEMVBoxRev" "string:.23456"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBIOSVersion" "string:MBP7.89"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-3CBD00234E554E41"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" "NO_LOGIC_BOARD_SN"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVendor" "Apple Inc."
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "your_vm_name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 0
VBoxManage setextradata "your_vm_name" "VBoxInternal2/EfiGraphicsResolution" "1440x900"

简化

.\VBoxManage.exe modifyvm "MacOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
.\VBoxManage.exe modifyvm "MacOS" --cpu-profile "Intel Core i7-6700K"
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Hackboard"
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc"
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
.\VBoxManage.exe setextradata "MacOS" "VBoxInternal2/EfiGraphicsResolution" "1440x900"


# 简化
VBoxManage modifyvm "MacOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage modifyvm "MacOS" --cpu-profile "Intel Core i7-6700K"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Hackboard"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc"
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "MacOS" "VBoxInternal2/EfiGraphicsResolution" "1440x900"

可用CUP型号

一些玄学问题换个CUP类型试试

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Xeon X5482 3.20GHz"

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Core i7-2635QM"

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Core i7-3960X"

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Core i5-3570"

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Core i7-5600U"

VBoxManage modifyvm YOUR MACHINE --cpu-profile "Intel Core i7-6700K"