Use the final ElCapitan.iso as installer iso and attach it to the virtual SATA Port 1. Open Terminal, chmod the script and execute it: chmod +x ~/Desktop/prepare_elcapitan_cdr.shĭetach elcap.dmg from the VM. Paste the content in a text editor to a new document as plain text and save it as prepare_elcapitan_cdr.sh on your desktop. # Rename the ISO and move it to the desktop Hdiutil convert -format UDTO -o ElCapitan.iso Hdiutil detach /Volumes/OS\ X\ Base\ System Rm /Volumes/OS\ X\ Base\ System/System/Installation/PackagesĬp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/InstallationĬp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/Ĭp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/ For 10.11 (El Capitan) and later boot to the recovery partition and either enabling loading of unsigned kexts: csrutil enable. If everything goes well, you’ll come across a graphical installer and will just have to work through the prompts. Now we’ll run the installer by running: boot.efi and hitting enter.
#VIRTUALBOX MAC OS X EL CAPITAN ON MAC INSTALL#
# Remove Package link and replace with actual files Mac OS X build instructions Prerequisites on Mac OS X 10.10.x (Yosemite) or later running on Intel hardware. Type in the following commands: cd macOS Install Data. Hdiutil attach -noverify -nobrowse -mountpoint /Volumes/isoĪsr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase Hdiutil create -o ElCapitan.cdr -size 8000m -layout SPUD -fs HFS+J Hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd the user name in the last line and the path to Install OS X El Capitan.app (and the inner InstallESD.dmg file) in the 6th line): #!/bin/bash Close VirtualBox, run Command Prompt as an administrator, and copy/paste the first line from the screen resolution code file. However, this can be changed using the macOS screen resolution code. To create a bootable file use the following script. The default resolution of macOS or any guest OS that you install on VirtualBox is 1024×768, which is probably not what you want. The dmg file (Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg) is no bootable image.