Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert El Capitan DMG For Use with Oracle VirtualBox on Mac OSX
# Modified version of this script -
# 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\ -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\
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
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

This comment has been minimized.

Copy link

@kevin-smets kevin-smets commented Sep 29, 2015

Interesting, tried this out but couldn't get it to boot in my Vbox.. Fiddled around with the settings a bit but no dice.

Using Virtualbox 5.0.4, added the OSX_VM.dmg to the storage, set the CPU to 8 processors and vRam to 128. I tested both chipset options but nothing proved successful and EFI on and off. How were you able to get this up and running?

//edit Should've checked the original link. Apparently this still worked with the developer beta, but not the public beta, or in my case, the GM candidate.


This comment has been minimized.

Copy link
Owner Author

@ryanmaclean ryanmaclean commented Dec 29, 2015

Hey sorry @kevin-smets, you're absolutely right, I was testing the Dev Beta!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.