亿信开发者
我们一直在努力

Vbox:安装 MacOS

ptgidc

新建好虚拟机(如虚拟机名:mac10.13),启动安装引导程序前关闭并执行以下命令(cmd 管理员权限),执行前关闭 vbox:

cd "C:\Program Files\Oracle\VirtualBox"
VBoxManage.exe modifyvm "mac10.13" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "mac10.13" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "mac10.13" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "mac10.13" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "mac10.13" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "mac10.13" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

#vboxmanage modifyvm MacOS10.11.1 --cpuidset 1 000306a9 00100800 3d9ae3bf bfebfbff

然后启动安装引导程序就 ok 了,如果不行结束 vbox 相关进程或重启计算机或重装 vbox 再试。
以上命令执行不成功会出现以下效果:

  • Mac10.11,卡在蓝牙提示那
  • Mac10.13,反复重启

安装好之后调整分辨率:

cd "C:\Program Files\Oracle\VirtualBox"
VBoxManage setextradata "mac10.13" CustomVideoMode1 1366x768x32
VBoxManage setextradata "mac10.13" VBoxInternal2/EfiGraphicsResolution 1920x1080

VBoxManage setextradata "mac10.13" VBoxInternal2/EfiHorizontalResolution 1366
VBoxManage setextradata "mac10.13" VBoxInternal2/EfiVerticalResolution 768

Mac 系统有的 root 用户还是会被限制一些操作,关闭权限控制(需要重启进入安全模式下):

csrutil disable
csrutil enable
赞(0)
未经允许不得转载:亿信开发者 » Vbox:安装 MacOS