Skip to content

Instantly share code, notes, and snippets.

@nmccready
Created May 30, 2018 23:19
Show Gist options
  • Save nmccready/ea20455ff52d4488b30a580476d56903 to your computer and use it in GitHub Desktop.
Save nmccready/ea20455ff52d4488b30a580476d56903 to your computer and use it in GitHub Desktop.
macOS HighSierra vbox

macOS High Sierra VBox

VM setup

  • create new virtual machince macOS and target HighSierra 64
  • ICH9 Chipset
  • Network should be (Intel PRO/1000 MT Server)
  • Display Memeory max out to 128mb
  • cpu memory ~ 4096
  • 2 cpus
  • uncheck floppy drive
  • enable USB 3

Installation

  • Boot into HighSierra.iso (note this only installs recovery)
    • use disk utility and format the vdi or vmdk drive to Mac Journaled HFS
    • install macOS (recovery)
  • eject installation HighSierra.iso
  • reboot
  • force boot into recovery
    • in efi shell type exit > boot manager
    • select Boot Maintenance Manager
    • go to second drive (recovery) and drill down and select boot.efi
    • you should now be booting into recovery and really installing macOS

Useful Links

#!/bin/bash
set -e
hdiutil create -o /tmp/HighSierra -size 5600m -layout SPUD -fs HFS+J -type SPARSE
hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra/
hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra.iso
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
rm /tmp/HighSierra.sparseimage
#!/bin/sh
# add virtualbox to your PATH
set -e
# VBoxManage modifyvm "macOS High Sierra" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
# https://github.com/geerlingguy/macos-virtualbox-vm
#VBoxManage modifyvm "macOS High Sierra" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff
#https://apple.stackexchange.com/questions/307099/install-macos-high-sierra-as-virtualbox-guest-on-macos-high-sierra/307103#307103
VBoxManage modifyvm "macOS High Sierra" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro11,3"
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "BOARD-PRODUCT"
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "SERIAL"
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "macOS High Sierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment