2019-07-02 11:14:25 +03:00
2018-11-04 17:43:45 +00:00
2019-06-30 13:10:59 +03:00

Semi-automatic installer of macOS on VirtualBox

supports macOS Catalina (10.15), Mojave (10.14), and High Sierra (10.13)

The script is semi-automatic and requires a little user interaction. Most of the time the user simply has to press enter. There is one step where the user has to choose between [C]atalina, [M]ojave, or [H]igh Sierra, and a couple of instances where the user has to choose whether to delete or keep temporary files and previous installations.

The goal of the script is to allow for a very easy installation without any closed-source additions or extra bootloaders.

Tested on Cygwin and WSL, should work on most Linux distros.

iCloud and iMessage connectivity

iCloud and iMessage and other connected Apple services require a valid device serial number, device name, and board ID. Set them before the installation by editing the script, or after the installation with the following commands:

VBoxManage setextradata "${vmname}" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "${devicename}"
VBoxManage setextradata "${vmname}" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "${boardid}"
VBoxManage setextradata "${vmname}" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "${serialnumber}"

An invalid serial number that matches the correct structure for the device name and board ID might work, too.

Storage size

The script assigns the minimum required storage size for the installation. After the installation is complete, the storage size may be increased. First increase the virtual disk image size through VirtualBox Manager or VBoxManage, then in Terminal in the virtual machine run sudo diskutil repairDisk disk0, and then from Disk Utility delete the "Free space" partition, allowing the system APFS container to take up the available space.

Unsupported features

Developing and maintaining VirtualBox or macOS features is beyond the scope of this script. Some features may behave unexpectedly, such as USB device support, audio support, and other features.

Dependencies

  • VirtualBox≥6 with Extension Pack
  • Bash≥4 (run on Windows through Cygwin or WSL)
  • coreutils, unzip, wget (install through package manager)
  • dmg2img (install through package manager on Linux or WSL; let the script download it automatically on Cygwin)
Description
Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox for Windows, Linux, and macOS
Readme 808 KiB
Languages
Shell 100%