在 VirtualBox 上安装 macOS Big Sur 和 Catalina

经过

克林斯曼奥泰约

-

2021 年 8 月 21 日

14340
7

macOS 是在每台 Mac 上运行的操作系统。它以前被命名为 Mac OS X 和后来的 OS X。MacOS 从 2001 年开始由 Apple Inc 开发和销售。MacOS 继承了经典的 MacOS,这是一个 Macintosh 操作系统,从 1984 年到 1999 年发布了九个版本。macOS X 的第一个桌面版本是 10.0, 2001 年发布,一年后更新 10.1。Apple 在 2012 年将名称“macOS X”缩短为“OS X”,然后在 2016 年晚些时候将其更改为macOS,以便与其他 Apple 操作系统(即 iOS、watchOS 和 tvOS)保持一致。

macOS 第十六版(10.15)称为macOS Catalina,它是第一个支持 64 位应用程序的 macOS 版本,也是第一个包含激活锁的版本。在这 16 个不同版本的 macOS 10 之后,2020 年出现了macOS Big Sur(版本 11) 和 2021 年的 macOS Monterey。

macOS Mojave 具有以下主要功能:

  • 有黑暗模式。
  • 支持桌面堆栈
  • 拥有动态桌面
  • 改进了操作系统和 Safari 安全性
  • 屏幕截图标记
  • 连续性相机

在本指南中,我将演示如何在 VirtualBox 上安装 macOS Catalina 和 Big Sur。

macOS 在 VirtualBox 上的安装要求

以下是 Virtualbox 上的 macOS 安装要求。

  • 支持的主要显示分辨率为5120×2880、2880×1800、2560×1600、2560×1440、1920×1200、1600×1200、1680×1050、1440×900、1280×800、1024×768、640×480
  • VirtualBox 5.2 及以上版本。
  • 内存大于 4 GB
  • 存储大小超过 25 GB。
  • icloud 和 imessage 连接和 NVRAM

第 1 步:安装所需的依赖项

在 VirtualBox 上安装 macOS 时需要几个依赖项。

这些是 Wget、Coreutils、dmg2img、xxd、bash-completion、gzip 和 unzip

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code><strong>### RHEL/ Centos 8/ Rocky Linux 8 / Fedora ###
</strong>sudo dnf install wget coreutils vim-common p7zip p7zip-plugins bash-completion gzip unzip<strong>#### Debian/Ubuntu ###
</strong>sudo apt-get install wget coreutils dmg2img xxd bash-completion gzip unzip<strong>### macOS ###
</strong>brew install wget bash-completion gzip unzip
brew install  coreutils dmg2img</code></span></span></span></span>

第 2 步:在 Virtualbox 上下载并安装 macOS

我们将继续使用按钮安装程序在 VirtualBox 上安装 macOS Catalina。

在这里,我们将使用 Wget下载macos-guest-virtualbox.sh ,如下所示。

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code><em>### With curl ###
</em>curl -sLO https://raw.githubusercontent.com/myspaghetti/macos-guest-virtualbox/master/macos-guest-virtualbox.sh<em>### With wget ###
</em>wget https://raw.githubusercontent.com/myspaghetti/macos-guest-virtualbox/master/macos-guest-virtualbox.sh</code></span></span></span></span>

然后使文件可执行。

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>chmod +x macos-guest-virtualbox.sh</code></span></span></span></span>

然后继续安装如下:

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>./macos-guest-virtualbox.sh</code></span></span></span></span>

样本输出:

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code><strong>Push-button installer of macOS on VirtualBox
</strong>
This script installs only open-source software and unmodified Apple binaries,
and requires about 50GB of available storage, of which 25GB are for temporary
installation files that may be deleted when the script is finished.The script interacts with the virtual machine twice, please do not interact
with the virtual machine manually before the script is finished.Documentation about optional configuration, iCloud and iMessage connectivity,
resuming the script by stages, and other topics can be viewed with the
following command:./macos-guest-virtualbox.sh documentation | less -R<span style="color:var(--wp--preset--color--luminous-vivid-amber) !important"><strong>Press enter to review the script configuration
</strong></span>
vm_name="macOS"
macOS_release_name="Catalina"    # install "HighSierra" "Mojave" "Catalina"
storage_size=80000               # VM disk image size in MB, minimum 22000
storage_format="vdi"             # VM disk image file format, "vdi" or "vmdk"
cpu_count=2                      # VM CPU cores, minimum 2
memory_size=4096                 # VM RAM in MB, minimum 2048
gpu_vram=128                     # VM video RAM in MB, minimum 34, maximum 128
resolution="1280x800"            # VM display resolutionThese values may be customized as described in the documentation.Press enter to continue, CTRL-C to exit</code></span></span></span></span>

您将被要求按 Enter 键查看脚本配置,这给出了要在 VirtualBox 中创建的 VM 的规格,例如 VM 名称、要运行的操作系统的磁盘大小等按 Enter 键继续。

安装开始如下;

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>Checking that VirtualBox starts the virtual machine without errors.Checking that VirtualBox uses hardware-supported virtualization.stage: prepare_macos_installation_filesDownloading Apple macOS Catalina software update catalog
Catalina_sucatalog  100%[===================>]   6.43M  4.34MB/s    in 1.5s
Trying to find macOS Catalina InstallAssistant download URL
Catalina_sucatalog_ 100%[===================>]  40.05K  --.-KB/s    in 0.02s
Found download URL: http://swcdn.apple.com/content/downloads/26/37/001-68446/r1dbqtmf3mtpikjnd04cq31p4jk91dceh8/
.........</code></span></span></span></span>

这将打开和关闭 VirtualBox,因为它正在检查和创建 macOS VM。耐心等待下载文件完成

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>Downloading macOS installation files from swcdn.apple.com
Catalina_BaseSystem 100%[===================>]   1.97K  --.-KB/s    in 0s
Catalina_InstallInf 100%[===================>]   1.55K  --.-KB/s    in 0s
Catalina_AppleDiagn 100%[===================>]   3.00M  2.73MB/s    in 1.1s
Catalina_AppleDiagn 100%[===================>]     328  --.-KB/s    in 0s
Catalina_BaseSystem 100%[===================>] 475.53M  2.28MB/s    in 3m 56s
Catalina_InstallESD 100%[===================>]   7.21G  2.23MB/s    in 54m 42s </code></span></span></span></span>

成功下载上述文件后,macOS Catalina 安装开始。

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>Splitting the several-GB InstallESDDmg.pkg into 1GB parts because
VirtualBox hasn't implemented UDF/HFS VISO support yet and macOS
doesn't support ISO 9660 Level 3 with files larger than 2GB.
creating file 'Catalina_InstallESD.part00'
creating file 'Catalina_InstallESD.part01'
creating file 'Catalina_InstallESD.part02'
creating file 'Catalina_InstallESD.part03'
creating file 'Catalina_InstallESD.part04'
creating file 'Catalina_InstallESD.part05'
creating file 'Catalina_InstallESD.part06'
creating file 'Catalina_InstallESD.part07'
....
Creating VirtualBox 6 virtual ISO containing macOS Terminal script
for partitioning and populating the bootable installer virtual disk.Starting virtual machine "macOS".
This should take a couple of minutes. If booting fails, exit the script by
pressing CTRL-C then see the documentation for information about applying
different CPU profiles in the section CPU profiles and CPUID settings.Until the script completes, please do not manually interact with
the virtual machine.Press enter when the Language window is ready.</code></span></span></span></span>

在此步骤中,VirtualBox 已启动,您将看到创建的 macOS 正在运行。

加载完成后,您将看到语言菜单。

当您在 VirtualBox 上看到此语言菜单时,请返回终端并按Enter,不要选择任何内容。

接下来,您将看到macOS 实用程序窗口。

当您在 VirtualBox 上看到它时,返回终端并按enter。您将看到的下一个窗口是终端命令提示符

当您看到它出现在 VirtualBox 上时,在终端上按 enter。耐心等待,直到磁盘分区完成。这发生在 VirtualBox Terminal 命令提示符上。

完成后,macOS VM 将重新启动并重复该过程。您需要执行与上述类似的操作(看到显示的项目后在终端上按回车键)

完成后,您将在终端上看到此内容。

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>After the installer finishes preparing and the EFI and NVRAM files are copied,
macOS will install and boot up when booting the target disk.Please waitFor further information, such as applying EFI and NVRAM variables to enable
iMessage connectivity, see the documentation with the following command:./macos-guest-virtualbox.sh documentation | less -R<strong><span style="color:var(--wp--preset--color--light-green-cyan) !important">That's it! Enjoy your virtual machine.
</span></strong>stage: prompt_delete_temporary_files
Temporary files may be deleted when the virtual machine is powered off
and without a suspended state by executing the following command at the script's
working directory:./macos-guest-virtualbox.sh prompt_delete_temporary_files</code></span></span></span></span>
  • 与此同时,安装正在 VirtualBox 终端窗口提示符下进行。完成后,系统会重新启动,但需要相当长的时间。

第 3 步:在 VirtualBox 上设置 macOS Catalina

系统加载完成后,您将看到此窗口。在这里选择您的国家。

然后选择您喜欢的语言和键盘,您设置的国家/地区的首选语言和键盘已经给出,尽管您可以通过单击自定义设置进行编辑

然后接下来,您将看到此隐私设置窗口。

下一步是选择是否从另一台 Mac 传输文件。

然后登录你的苹果账户。在此处输入您的帐户 ID/电子邮件地址和密码

您将需要提供发送到您设备的代码。

如果此时您看到此错误,请在完成此设置后跳过并登录苹果帐户。

接下来,同意许可条款。

现在,创建一个用户帐户和密码。

完成快速设置和分析页面。

然后应用所做的设置。

现在我们已经在 VirtualBox 上成功安装了 macOS Catalina。

第 4 步:从 macOS Catalina 升级到 Big Sur

导航到系统首选项>软件更新。这将自动开始检查 macOS Big Sur Beta 版本更新

找到更新后 ( macOS Big Sur ) 单击立即升级。这将开始下载 macOS Big Sur。请记住,此过程可能需要一些时间,具体取决于您的互联网速度。

下载完成后,您将看到此弹出窗口

单击继续并安装 macOS Big Sur。同意条款和条件。

同意将新的 Big Sur 安装在您的 VM 硬盘上。

输入您的密码以授权此安装。

安装开始。这可能需要几分钟。

完成后,重新启动系统。

这需要一些时间,因为系统仍在进行 Big Sur 安装。耐心地等待。

第 5 步:安装后删除临时文件

关闭虚拟机并使用您的客户端机器终端删除临时文件。

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>./macos-guest-virtualbox.sh prompt_delete_temporary_files</code></span></span></span></span>

接受要删除的文件:

<span style="color:#000000"><span style="color:#222222"><span style="background-color:#051e30"><span style="color:#ffffff"><code>Catalina selected to be downloaded and installedstage: prompt_delete_temporary_files
The following temporary files are safe to delete:ApfsDriverLoader.efiAppleImageLoader.efiAppleSupport-v2.0.4-RELEASE.zipAppleUiSupport.efiCatalina_AppleDiagnostics.chunklistCatalina_AppleDiagnostics.dmgCatalina_BaseSystem.chunklistCatalina_BaseSystem.dmgCatalina_BaseSystem.vdiCatalina_bootable_installer.vdiCatalina_installation_files.visoCatalina_InstallESDDmg.pkgCatalina_InstallESD.part00Catalina_InstallESD.part01Catalina_InstallESD.part02Catalina_InstallESD.part03Catalina_InstallESD.part04Catalina_InstallESD.part05Catalina_InstallESD.part06Catalina_InstallESD.part07Catalina_InstallInfo.plistmacOS_bootinst.txtmacOS_configure_nvram.txtmacOS_csr-active-config.binmacOS_MLB.binmacOS_populate_bootable_installer_virtual_disk.visomacOS_populate_macos_target_disk.visomacOS_ROM.binmacOS_startosinstall.txtmacOS_startup.nshmacOS_system-id.bin<span style="color:var(--wp--preset--color--luminous-vivid-orange) !important"><strong>Delete temporary files listed above?</strong></span> [y/N] y</code></span></span></span></span>

现在打开您的 macOS 虚拟机,尽情享受吧!

结论

在上面的文章中,我已经演示了如何在 VirtualBox 上安装 macOS Catalina 和 Big Sur。我希望这篇文章对你有价值。

【无标题】在 VirtualBox 上安装 macOS Big Sur 和 Catalina相关推荐

  1. 如何在 Windows 上的 VirtualBox 中安装 macOS Big Sur

    [手把手]如何在 Windows 上的 VirtualBox 中安装 macOS Big Sur 零.软件环境前提准备 一.准备安装 1.在您的计算机上安装 VirtualBox 软件.之后,单击您下 ...

  2. VirtualBox中安装MacOS Big Sur

    目录 1.VirtualBox介绍 2.Big Sur介绍 3.安装VirtualBox 4.安装VirtualBox Extension Pack 5.安装macOS Big Sur 5.1 新建虚 ...

  3. 在不受支持的 Mac 上安装 macOS Big Sur 11 正式版

    请访问原文链接:https://sysin.org/blog/install-macos-11-on-unsupported-mac/,查看最新版.转载请保留原文链接. 作者:gc(at)sysin. ...

  4. 手把手教你如何在Windows PC的VirtualBox上安装macOS 10.15 Catalina系统

    想要在VirtualBox运行任何系统,都需要有相应的ISO镜像文件,所以首先我们要获取ISO镜像文件.下边先介绍如何获取镜像文件: Step 1:从Mac App Store下载最新的Catalin ...

  5. 如何在 Mac 和虚拟机上安装 macOS Big Sur、Monterey 和 Ventura

    请访问原文链接:https://sysin.org/blog/how-to-install-macos/,查看最新版.原创作品,转载请保留出处. 作者主页:www.sysin.org 名词解释: 硬件 ...

  6. 如何在 Mac 和虚拟机上安装 macOS Big Sur 11.0 正式版

    作者主页:www.sysin.org 请访问原文链接:https://sysin.org/blog/how-to-install-macos-big-sur/,查看最新版.转载请保留原文链接. 本文适 ...

  7. VirtualBox 上安装Debian 后分辨率设置

    VirtualBox 上安装Debian 后分辨率设置 首先要配置source.list 打开终端, su 切换成root用户, cd /etc/apt 然后编辑source.list root@de ...

  8. 怎么在虚拟机上安装linux mint,如何在VirtualBox上安装Linux Mint?

    本文概述 在VirtualBox上安装Linux Mint的分步指南. Linux Mint是社区驱动的基于ubuntu的开源操作系统.它是免费使用的:这就是为什么它受到全球数百万用户的喜爱和采用的原 ...

  9. 在虚拟机VirtualBox上安装苹果Mac OS X系统

    Mac OS是Apple开发的计算机操作系统 . 这是一个具有漂亮界面的操作系统,但是,要拥有具有该操作系统的Apple计算机 ,您需要花费大量金钱,通常价格是使用Windows 操作系统的普通计算机 ...

最新文章

  1. 掌握技术思想比解决问题本身更重要
  2. byteofpython.info_byteofpython学习笔记(2)
  3. MOSS中自定义WebService
  4. 中查出所有姓张的学生为啥查不出来_只有笔试成绩没有面试成绩是什么原因 教师资格面试成绩怎么查...
  5. 通过例子理解事务的4种隔离级别
  6. java中单例模式用法详解
  7. php date 函数用法,PHP日期时间函数date()使用方法
  8. 如何阅读看懂datasheet
  9. 微软历史最高市值是多少?
  10. .NET Core使用NPOI导出复杂,美观的Excel详解
  11. DSPE-PEG3-Mal,小分子PEG连接马来酰亚胺基团
  12. 爬虫类Chrome去除前端无限debugger反调试(轻松分析算法)
  13. 利用cobaltstrike加sqlmap拿下一个网站并提权
  14. Java后端面经(部分)
  15. linux ln命令详解
  16. 计算机控制台如何打开,Windows控制台是什么,如何打开Win7控制台?
  17. 内网穿透工具-Ngrok
  18. 图文翻页-兼容IE8和Chrome浏览器
  19. python实现模仿银行ATM机
  20. 数据库系统概论--读书笔记--8 关系运算: 选择 投影 连接 除运算

热门文章

  1. 批量查询谷歌PR权重的方法有哪些?是什么影响着谷歌PR值?
  2. javaEE的13个规范
  3. 程序,批量启动程序脚本
  4. java哨片红盒 绿盒的区别_海淘维骨力怎么区分红盒,绿盒,蓝盒版本之间的区别...
  5. SAP 公司代码全局参数设置及其意义
  6. VisionMobile 2011年智能手机数据
  7. 操作系统精讲(0) | 操作系统详细简介
  8. 体育世界杂志体育世界杂志社体育世界编辑部2022年第4期目录
  9. 第三组第一次团队会议
  10. 游戏+区块链的进化三段论:从投机增值到生态意识