Last active
October 24, 2017 11:05
-
-
Save ryanmaclean/110a941c77db298491ec to your computer and use it in GitHub Desktop.
Convert El Capitan DMG For Use with Oracle VirtualBox on Mac OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Modified version of this script - http://ifreaky.net/os-x-10-11-el-capitan-in-virtual-boxvmwareparallels-desktop/ | |
# Fixed typos and logic | |
# This will require about 30GB of space | |
# The process will take roughly 3 minutes on a MacBook Retina 2015 with 512GB SSD | |
# It will definitely take longer on slower computers... | |
cd ~/Desktop | |
sudo gem install iesd | |
iesd -i /Applications/Install\ OS\ X\ 10.11\ Developer\ Beta.app -o el-capitan.dmg -t BaseSystem | |
hdiutil convert el-capitan.dmg -format UDSP -o el-capitan.sparseimage | |
hdiutil mount /Applications/Install\ OS\ X\ 10.11\ Developer\ Beta.app/Contents/SharedSupport/InstallESD.dmg | |
hdiutil mount el-capitan.sparseimage | |
cp /Volumes/OS\ X\ Install\ ESD/BaseSystem.* /Volumes/OS\ X\ Base\ System/ | |
# We use the finder to eject here, based on this OSX Daily tip | |
# http://osxdaily.com/2014/05/22/eject-all-mounted-volumes-command-line-mac/ | |
osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)' | |
hdiutil convert el-capitan.sparseimage -format UDZO -o OSX_VM.dmg | |
rm -rf ~/Desktop/el-capitan.dmg | |
rm -rf ~/Desktop/el-capitan.sparseimage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey sorry @kevin-smets, you're absolutely right, I was testing the Dev Beta!