Run a macOS Mojave guest in Virtualbox on Windows or Linux

One-Key semi-automatic installer of macOS Mojave 10.14.2 on VirtualBox

Via @foone, we learn of the GitHub project macos-guest-virtualbox by GitHub user img2tab.

One-Key semi-automatic installer of macOS Mojave 10.14.2 on VirtualBox

The “one key” is enter, which has to be pressed whenever the virtual machine is ready for the next command. (Contrary to the script’s name, the user has to use more than one key! There is one instance when the “host key” is used to release the mouse from the virtual machine, and one instance where the user has to choose [y]es or [n]o!)

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

Tested on Cygwin, should work on Linux distros. GNU GPL license v2.0.

iCloud and iMessage connectivity

iCloud and iMessage and other connected Apple services require a valid device serial number. Set it before the installation by replacing NOTAVALIDSN0 with a valid serial number, or after the installation with 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.

Dependencies

  • VirtualBox≥5.2 with Extension Pack
  • Bash≥4 (run on Windows through Cygwin)
  • unzipwget (install through package manager)
  • dmg2img (install through package manager on Linux; let the script download it automatically on Windows)

See the GitHub repo for details and source for the installer.

If you’re not a VirtualBox fan, you can look to make your Windows 10 more like Mojave via personalizations & tweaks, see this Youtube video on how to do it: