Jump to content

HOW TO: Create a bootable High Sierra ISO for VMware

10.13 High Sierra VMware VirtualBox bootable iso

  • Please log in to reply
12 replies to this topic

#1
Deli Dumrul

Deli Dumrul

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

For Public Beta Version

I found this script from agentsim who is GitHubGist user. It Works for me on Windows 10 Workstation 12.5.7

# Generate a BaseSystem.dmg with High Sierra Beta Installer Packages
hdiutil attach /Applications/Install\ macOS\ High\ Sierra\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg

# Restore the High Sierra Beta Installer's BaseSystem.dmg into file system and place custom BaseSystem.dmg into the root
hdiutil create -o /tmp/HighSierra.cdr -size 8965m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ High\ Sierra\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp /tmp/BaseSystem.dmg /Volumes/OS\ X\ Base\ System
rm /tmp/BaseSystem.dmg

hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierraPublicBeta.iso
rm /tmp/HighSierra.cdr.dmg


#2
Shiggitay

Shiggitay

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

I followed this guide and I ended up with a 9.4 GB ISO.... I know it's meant for VMWare etc installations, but how would I cut down on all the extras like printer drivers and languages? I'm trying to make a DVD burnable/bootable ISO. I'm currently trying to dd a USB stick I made as one of my attempts to ISO, but it's going to be too large for a standard single layer 4.7 GB DVD-R.

 

Thanks in advance.



#3
Deli Dumrul

Deli Dumrul

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

This method is simple and it is working.

 

For new High Sierra Release;

 

hdiutil create -o /tmp/HighSierra.cdr -size 5130m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso

 

Rewrite my mistake, thanks @Guyver



#4
Guyver

Guyver

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

iso works great thx

 

 

one thing:

 

mv ~/Desktop/HighSierra.iso.cd ~/Desktop/HighSierra.iso

must be 

mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso



#5
AzJazz

AzJazz

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts

This method is simple and it is working.

 

For new High Sierra Release;

 

hdiutil create -o /tmp/HighSierra.cdr -size 5130m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso
mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso

Update: This worked for me, too (after modifying the last "mv" command).

 

My previous installation issue was not relevant, as I was installing the High Sierra update while in a Mountan Lion VM. When I discovered a pre-packaged High Sierra VMWare VM on the web and did the recent High Sierra update with that, the InstallESD.dmg was created properly, and the createinstallmedia command worked fine.

 

Thanks, Deli Dumrul and Guyver!



#6
milligator

milligator

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
  • Gender:Male

I tried to create iso file from Mac OS 10.13.1 and ended up with the following error.

Making disk bootable...

Copying boot files...

Failed to copy kernelcache, “prelinkedkernel” couldn’t be copied to “.IABootFiles”.

Done.

what can cause the problem?

Size of the downloaded file:5,208,823,747 bytes (5.2 GB on disk)

I am using 10.12 on VmWare. Can I update my running OS X 10.12 with just double clicking the downloaded file?



#7
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,414 posts
  • Gender:Male

Increase the size to 5530m in the script



#8
Guyver

Guyver

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Admins-Mac:~ admin$ hdiutil create -o /tmp/HighSierra.cdr -size 5530m -layout SPUD -fs HFS+J

 

.......................................................................................................................

created: /tmp/HighSierra.cdr.dmg

Admins-Mac:~ admin$ 

Admins-Mac:~ admin$ hdiutil attach /tmp/HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build

/dev/disk1          Apple_partition_scheme         

/dev/disk1s1        Apple_partition_map            

/dev/disk1s2        Apple_HFS                      /Volumes/install_build

Admins-Mac:~ admin$ sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build

Password:

Ready to start.

To continue we need to erase the volume at /Volumes/install_build.

If you wish to continue type (Y) then press return: y

Erasing Disk: 0%... 10%... 20%... 30%...100%...

Copying installer files to disk...

Copy complete.

Making disk bootable...

Copying boot files...

Copy complete.

Done.

Admins-Mac:~ admin$ mv /tmp/HighSierra.cdr.dmg ~/Desktop/InstallSystem.dmg

Admins-Mac:~ admin$ hdiutil detach /Volumes/Install\ macOS\ High\ Sierra

"disk1" unmounted.

"disk1" ejected.

Admins-Mac:~ admin$ hdiutil convert ~/Desktop/InstallSystem.dmg -format UDTO -o ~/Desktop/HighSierra.iso

Reading Driver Descriptor Map (DDM : 0)…

Reading Apple (Apple_partition_map : 1)…

Reading  (Apple_Free : 2)…

Reading disk image (Apple_HFS : 3)…

.............................................................................................................................................................................................

Elapsed Time:  2m 28.870s

Speed: 37.1Mbytes/sec

Savings: 0.0%

created: /Users/admin/Desktop/HighSierra.iso.cdr

Admins-Mac:~ admin$ mv ~/Desktop/HighSierra.iso.cdr ~/Desktop/HighSierra.iso

Admins-Mac:~ admin$ 

 
 
Works perfect ! thx again,  ISO of 5.40 GB (5.798.625.280 bytes)


#9
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,414 posts
  • Gender:Male

I just pulled that number out of thin air, the important thing is that it is big enough to hold all the files, otherwise, no go...



#10
STLVNUB

STLVNUB

    InsanelyMac Legend

  • Coders
  • 1,414 posts
  • Gender:Male

@chris1111

I think you put wrong script here. This one don't work.

 

edit: by work I mean boot



#11
chris1111

chris1111

    Packager

  • Donators
  • 4,500 posts
  • Gender:Male
  • Location:Montreal Canada
  • Interests:Mac OS X Packaging / scripts

@chris1111

I think you put wrong script here. This one don't work.

Ok great to know  :)  Thanks I dont have VM for test  :angel:

I am going to install  a VM for testing beefore



#12
woggletog

woggletog

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

I have created ISO files using both scripts but neither ISO appears to be bootable.  I get:

 

PXE-E53: No boot filename received

PXE-M0F: Exiting Intel PXE ROM

Operating System not found

 

The VM appears to be OK (the CD drive is first in the boot order) as it boots a Windows ISO without any problem.

 

I am trying to create the ISO from a Sierra VM.

 

This is using Workstation 14 Pro.



#13
woggletog

woggletog

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

Sorry - my mistake.  By using the latest unlocker (211) and tweaking VMWare it boots OK.  There is a good video on You-Tube.







Also tagged with one or more of these keywords: 10.13, High Sierra, VMware, VirtualBox, bootable iso

  Topic Stats Last Post Info

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

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