在windows的visualbox虚拟机中安装MacOS系统
  1. 下载MacOS镜像
    链接: https://pan.baidu.com/s/1oAWnGN1KHkgTy579XcKuTg 提取码: 9w9v
  2. 安装Visualbox以及增强安装包,见https://www.virtualbox.org/wiki/Downloads
    VirtualBox 6.0.10 platform packages && VirtualBox 6.0.10 Oracle VM VirtualBox Extension Pack
  3. 开启windows的虚拟化设置
  4. 在visualbox中创建新的虚拟机64位,名称为Mac OS X
  5. 解压MacOS镜像得到macOS 10.12 Sierra Final by TechReviews.vmdk文件
  6. 将该文件设置到SATA控制器的0端口上
  7. 执行下面的配置脚本
    ① 进入visualbox安装目录,执行下面设置命令
./VBoxManage.exe modifyvm "Mac OS X" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

② 修改屏幕尺寸,可以根据自己的屏幕大小调整,最后32表示颜色显示位数为32位彩色

./VBoxManage.exe setextradata "Mac OS X" "VBoxInternal2/EfiGraphicsResolution" "1920x1080x32"
./VBoxManage.exe setextradata "Mac OS X" "CustomVideoMode1" "1920x1080x32"
./VBoxManage.exe setextradata "Mac OS X" "GUI/CustomVideoMode1" "1920x1080x32"
  1. 开启虚拟机,等待片刻即可进入安装流程,最后完成安装。