Jump to content

HOW TO: Create a bootable El Capitan ISO fo VMware


18 posts in this topic

Recommended Posts

With the release of El Capitan, the script to create a Bootable ISO for VMware of Mavericks and Yosemite does not seem to work anymore on the El Capitan official release.

The ISO simply does not boot.

 

Below is what I found that worked. Since I've been looking for this for a couple of days, I figured I'd share it. - Enjoy!

 

 

 #!/bin/bash

 

 # Mount the installer image
 hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

 

 # Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map
 hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J

 

 # Mount the ElCapitan Blank ISO Image
 hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build

 

 # Restore the Base System into the ElCapitan Blank ISO Image
 asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

 

 # Remove Package link and replace with actual files
 rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages

 cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/

 

 # Copy El Capitan installer dependencies
 cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
 cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg

 

 # Unmount the installer image
 hdiutil detach /Volumes/install_app

 

 # Unmount the ElCapitan ISO Image
 hdiutil detach /Volumes/OS\ X\ Base\ System/

 

 # Convert the ElCapitan ISO Image to ISO/CD master (Optional)
 hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso

 

 # Rename the ElCapitan ISO Image and move it to the desktop
 mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

 

  • Like 9
Link to comment
Share on other sites

hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/ElCapitan -size 6789m -layout SPUD -fs HFS+J -type SPARSE
hdiutil attach /tmp/ElCapitan.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/
hdiutil detach /Volumes/install_app
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil resize -size `hdiutil resize -limits /tmp/ElCapitan.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/ElCapitan.sparseimage
hdiutil convert /tmp/ElCapitan.sparseimage -format UDTO -o /tmp/ElCapitan
mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

--------------------------------------------------

It works with VirtualBox

  • Like 1
Link to comment
Share on other sites

Thanks  ...

 

The file ' ElCapitan.iso ' allows to install 'El Capitan' with 'VMware Fusion 8' (on 'El Capitan')  or 'VMware Workstation 10' (on 'Windows 7').

 

On 'VMware Workstation 12' and 'VMware Workstation 11' the installation starts but at the time of
the choice of the language we can't use any more the mouse, to choose the language, or to Continue'
 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 months later...

I can safely say that this is by far the easiest and best procedure that I have found that actually worked.  I must have tried 10 other methods and this one just worked, no changes.

 

I mapped the ISO to my VMWare instance and the VM booted just fine.  I had to make the SMC change and the USB 2.0 change, but that was it.

 

 

Link to comment
Share on other sites

  • 3 months later...

hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

hdiutil create -o /tmp/ElCapitan -size 6789m -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/ElCapitan.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build

asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages

cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/

hdiutil detach /Volumes/install_app

hdiutil detach /Volumes/OS\ X\ Base\ System/

hdiutil resize -size `hdiutil resize -limits /tmp/ElCapitan.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/ElCapitan.sparseimage

hdiutil convert /tmp/ElCapitan.sparseimage -format UDTO -o /tmp/ElCapitan

mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

--------------------------------------------------

It works with VirtualBox

 

Hi,

i executed step by step... but using virtualbox 4.3 or the newest one from the homepage 5.0x i cant boot the iso... there is only black screen and nothing is happening... could you please advice how did you make it work with what version/profile?

 

thanks

Link to comment
Share on other sites

  • 1 month later...

Thanks colt2

 

macOS Sierra Beta Public iz OK .iso install VMware.

 

I have installed VMware Workstation software On my Windows 10 system. I've put a MacOS 10.12 Sierra OS in there.

At startup I always get this error shown on the picture.

I appreciate every idea and help, thank you

 

 

error.jpg

wmx.txt

Edited by luky35
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app

hdiutil create -o /tmp/ElCapitan -size 6789m -layout SPUD -fs HFS+J -type SPARSE

hdiutil attach /tmp/ElCapitan.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build

asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages

cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/

hdiutil detach /Volumes/install_app

hdiutil detach /Volumes/OS\ X\ Base\ System/

hdiutil resize -size `hdiutil resize -limits /tmp/ElCapitan.sparseimage | tail -n 1 | awk '{ print $1 }'`b /tmp/ElCapitan.sparseimage

hdiutil convert /tmp/ElCapitan.sparseimage -format UDTO -o /tmp/ElCapitan

mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

--------------------------------------------------

It works with VirtualBox

 

I believe the last line should in fact be:

 

mv /tmp/ElCapitan.cdr ~/Desktop/ElCapitan.iso

Link to comment
Share on other sites

anyone tried with "Installer Mac OS 10.11.6" from Apple Store ?

With 10.11.5 , no problem , boot fine into VmWare. but with 10.11.6 , iso creation OK but boot process stop with "wrong way" blank symbol on black background ...

Link to comment
Share on other sites

  • 1 month later...

Thanks for this great tutorial.

I found the explanation of each command line very educational.

I followed this method and created iso image of Sierra sucessfully. 

Now I will test it out on the VMWare on Linux host  :)

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...
On 2/1/2016 at 6:02 AM, t2pennington said:

I can safely say that this is by far the easiest and best procedure that I have found that actually worked.  I must have tried 10 other methods and this one just worked, no changes.

 

I mapped the ISO to my VMWare instance and the VM booted just fine.  I had to make the SMC change and the USB 2.0 change, but that was it.

 

Have you even experienced the following error in VirtualBox: "no bootable medium found" ? What's the solution here?

essay service

Link to comment
Share on other sites

 Share

×
×
  • Create New...