

The asr tool will automatically create a new mountpoint, /Volumes/OS X Base System.

Then, we will use asr tool to populate the contents of our new drive: $ asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase $ hdiutil create -o ElCapitan3.cdr -size 7316m -layout SPUD -fs HFS+JĬreated: /Users/antek/vm/Īfter an empty ISO file will be created, we need to mount it: $ hdiutil attach -noverify -nobrowse -mountpoint /Volumes/iso Now let's create a placeholder image of our ISO file. The -noverify and -nobrowse options are there to make mounting operation faster and to make sure that Finder will not automatically pop up. Mount this image to some directory by using the hdiutil tool: $ hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd It's not a bootable ISO that can be used to install the system on a virtual machine, but we'll get there.

There is an installation image file inside /Applications/Install El Capitan.app, named InstallESD.dmg. Start with going to AppStore and installing El Capitan, so you'll have an application named Install El Capitan in your Application list. It's very easy to create a bootable ISO image of El Capitan, if you have a working El Capitan system installed on your machine.
