Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualBox 安装 macOS 10.13.6 虚拟机 #76

Open
hanxi opened this issue Jul 11, 2021 · 0 comments
Open

VirtualBox 安装 macOS 10.13.6 虚拟机 #76

hanxi opened this issue Jul 11, 2021 · 0 comments

Comments

@hanxi
Copy link
Owner

hanxi commented Jul 11, 2021

下载 iso 文件,或者用这个工程 https://github.com/myspaghetti/macos-virtualbox 自动做好 iso 文件。

  • 确保已经关闭 hype-v 并开启 vt-x,可以用 LeoMoon CPU-V.exe 工具检测环境。
  • 新建虚拟机,虚拟机名字: macosx
  • 设置内存和创建硬盘,硬盘设置 100 G
  • 设置 cd iso 镜像
  • 然后退出 virtual box
  • 然后用管理员模式打开 cmd 窗口,执行下面的命令
cd "c:\Program Files\Oracle\VirtualBox"
VBoxManage modifyvm "macosx" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata "macosx" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "macosx" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "macosx" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "macosx" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macosx" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

再打开 virtual box ,启动进入,进入到语言选择界面就基本没环境问题了。

使用磁盘工具,把 100 G 的磁盘格式化,名称自行设置,[格式]设置为[Mac OS扩展(日志式)],方案为[GUID分区图],点击[抹掉]。

可以参考这个教程: https://zhuanlan.zhihu.com/p/337036027

如果在安装苹果系统提示"安装 macOS xxx"应用程序副本已损坏,不能用来安装macOS,这个时候本不是镜像本身有问题,是由于镜像的证书过期,并且苹果没有更新证书日期导致的。

  1. 断开网络连接
  2. 打开终端,修改时间
  3. 输入命令date 0201010116,修改时间为2016年。

改分辨率:

cd "C:\Program Files\Oracle\Virtualbox"
VBoxManage setextradata "macosx" VBoxInternal2/EfiGraphicsResolution 1600x900

最后发现 10.13.6 版本安装不了最新的 xcode,于是就在里面升级到 11.4 了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant