Skip to content

Instantly share code, notes, and snippets.

@alex-ross
Last active August 2, 2019 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-ross/49022b92a7ea975d63e58fa243319e8b to your computer and use it in GitHub Desktop.
Save alex-ross/49022b92a7ea975d63e58fa243319e8b to your computer and use it in GitHub Desktop.
Create a Bootable macOSHighSierra.iso for installing macOS High Sierra in Virtualbox or VMware with macOS High Sierra.app
# Create a Bootable macOSHighSierra.iso for installing macOS High Sierra in Virtualbox or VMware with macOS High Sierra.app
# Create a "virtual USB flash drive"/disk image:
hdiutil create -o /tmp/HighSierra -size 8G -layout SPUD -fs HFS+J -type SPARSE
# Mount it:
hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build
# Write the installer files into this new disk image:
/Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
# Unmount the disk image, so that the resource will not be busy for the next step:
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra/
# Convert the disk image into an ISO file (VirtualBox is not capable of booting from a .dmg or .sparseimage file):
hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra.iso
# Move it to the desktop folder and rename the extension of the file to .iso:
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
# Remove the sparseimage file from the tmp folder:
rm /tmp/HighSierra.sparseimage
@alex-ross
Copy link
Author

You will need High Sierra installation application installed.
Here is a direct link to it on App Store https://itunes.apple.com/ca/app/macos-high-sierra/id1246284741?mt=12

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