Jump to content

HOW TO: Create a bootable Sierra ISO for VMware


  • Please log in to reply
8 replies to this topic

#1
Glaude

Glaude

    InsanelyMac Protégé

  • Members
  • Pip
  • 30 posts
  • Gender:Male
  • Location:France

I found on the Internet what follows, it was planned for Virtualbox. I made a light adaptation.

Tested with VMware workstation 10 and WMware fusion 8. It is OK
 

Creating a bootable macOS Sierra ISO :

 

 

  • Open Terminal, then run the following commands one at a time:
    • hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
    • hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
    • hdiutil attach /tmp/Sierra.cdr.dmg -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/
    • 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
    • hdiutil detach /Volumes/install_app
    • hdiutil detach /Volumes/OS\ X\ Base\ System/
    • hdiutil convert /tmp/Sierra.cdr.dmg -format UDTO -o /tmp/Sierra.iso
    • mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso
    •  

 



#2
MSoK

MSoK

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,082 posts
  • Gender:Male
  • Location:Birmingham (UK)

 

I found on the Internet what follows, it was planned for Virtualbox. I made a light adaptation.

Tested with VMware workstation 10 and WMware fusion 8. It is OK
 

Creating a bootable macOS Sierra ISO :

 

 

  • Open Terminal, then run the following commands one at a time:
    • hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
    • hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
    • hdiutil attach /tmp/Sierra.cdr.dmg -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/
    • 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
    • hdiutil detach /Volumes/install_app
    • hdiutil detach /Volumes/OS\ X\ Base\ System/
    • hdiutil convert /tmp/Sierra.cdr.dmg -format UDTO -o /tmp/Sierra.iso
    • mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso
    •  

 

Glaude,

 

Just for information, Fusion 8.x does not need an iso it can install directly from the App Store download, for workstation shela's script can create an iso for any of the App Store download versions of OS X and macOS, see link below:

 

http://www.insanelym...i-56/?p=2279523



#3
btaroli

btaroli

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

FWIW the instructions posted worked great! the script linked from the other post is nicely packaged, but the resize step always fails with invalid parameter.



#4
zapinguete

zapinguete

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Thank you Glaude, thank you so very much for making my life a bit fun, I use your method and change it a bit to make a bootable ISO for Yosemite and it works :)

here is my little mod thanks to you. At the time I was using VMware with Mavericks and downloaded Yosemite from the App store and then your magic to produce the ISO Hoo Hoo Hoorrayyy :)

Code:

  • hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
  • hdiutil create -o /tmp/Yosemite.cdr -size 7316m -layout SPUD -fs HFS+J
  • hdiutil attach /tmp/Yosemite.cdr.dmg -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/
  • 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
  • hdiutil detach /Volumes/install_app
  • hdiutil detach /Volumes/OS\ X\ Base\ System/
  • hdiutil convert /tmp/Yosemite.cdr.dmg -format UDTO -o /tmp/Yosemite.iso
  • mv /tmp/Yosemite.iso.cdr ~/Desktop/Yosemite.iso


#5
aci

aci

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Script of 'shela' has an error in the resize calculation. Fix this error by adding '-size 7316m' in the script:

  # Create sparse image with a Single Partition UDIF
  info "Creating sparse image..."
  hdiutil create -o "${TEMP_DIR}/osx" -size 7316m -type SPARSE -layout SPUD -fs HFS+J
  if [[ $? -ne 0 ]]; then
    error "Could not create sparse image."
    exit 1
  fi

Fix the error by commenting out this portion with the wrong calculation (if uncommented up to 'echo "Size= ${size}b"', this echoes the wrongly calculated value for the resize):

  # Resize sparse image
  #info "Resizing sparse image..."
  #local size
  #size=$(hdiutil resize -limits "${SPARSE_IMAGE}" \
  #       | tail -n 1 \
  #       | awk '{ print $1 }')
  #echo "Size= ${size}b"
  #hdiutil resize -size "${size}b" "${SPARSE_IMAGE}"
  #if [[ $? -ne 0 ]]; then
  #  error "Could not resize sparse iamge."
  #  exit 1
  #fi

The adjusted script:

Attached File  create_iso.txt   8.31KB   639 downloads

 

Adjust the .txt file similar to the explanation of the original script:

http://www.insanelym...i-56/?p=2279523

 

The script now correctly generates a Sierra .iso!



#6
darkstar252

darkstar252

    InsanelyMac Protégé

  • Members
  • Pip
  • 8 posts

Sorry but this include the final step to install clover on the hard disk and boots up in the PC with clover or it's only an iso dvd for Mac's?



#7
MarionB

MarionB

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Worked perfectly for me. Installing on VMWare ESX 6 on my XServe2,1 as we speak.  :)  Thank you!



#8
cool_recep

cool_recep

    InsanelyMac Protégé

  • Donators
  • 50 posts

Tested and working with 10.12.4.



#9
pippox0

pippox0

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 575 posts
  • Gender:Male
Yeah, i would like to give a try ...

sent from my iPhone





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy