Vbox:安装MacOS

新建好虚拟机(如虚拟机名: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

猜你喜欢

转载自blog.csdn.net/xuejianbest/article/details/84871278