Mv /tmp/Yosemite.cdr ~/Desktop/Yosemite.isoĬopy the above lines, paste it into a new document prepare_yosemite_iso.sh on your desktop with a decent editor (below I use nano) and make it executable. # Rename the ISO and move it to the desktop Hdiutil convert /tmp/Yosemite.sparseimage -format UDTO -o /tmp/Yosemite # Convert the sparse bundle to ISO/CD master
Hdiutil resize -size `hdiutil resize -limits /tmp/Yosemite.sparseimage | tail -n 1 | awk ''`b /tmp/Yosemite.sparseimage # Resize the partition in the sparse bundle to remove any free space Rm /Volumes/install_build/System/Installation/PackagesĬp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/Ĭp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/install_build/Ĭp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/install_build/ # Remove Package link and replace with actual files Hdiutil attach /tmp/Yosemite.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build # Mount the sparse bundle for package addition Hdiutil resize -size 8g /tmp/Yosemite.sparseimage # Increase the sparse bundle capacity to accommodate the packages Hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Yosemite # Convert the boot image to a sparse bundle Hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
The script assumes that Install OS X Yosemite.app was downloaded to the folder /Applications. Use the following shell script to create a bootable Yosemite.iso. The intermediate step of creating a Yosemite.iso seems to be inevitable.ĭownload the latest VirtualBox installer, the latest Yosemite installer and the latest El Capitan installer. A "bootable" El Capitan iso boots to an EFI command line only.
The script below apparently doesn't work with El Capitan.
You first have to create a Yosemite VM and then update to El Capitan. The installation of El Capitan is a dual-stage process. don't work properly in VirtualBox (or I don't get it to work). A lot of features like drag-and-drop, change the monitor resolution etc. I strongly recommend to purchase Parallels Desktop or VMware Fusion though. This how-to targets VirtualBox because the OP uses it.