Difference between revisions of "Create macOS 12.0.1 bootable ISO"
m (Aram moved page Create macOS 12.0.1 ISO to Create macOS 12.0.1 bootable ISO without leaving a redirect) |
(→Create the image) |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
hdiutil attach /tmp/macOS-12.0.1.dmg -nobrowse -noverify -mountpoint /Volumes/macOS-12.0.1 | hdiutil attach /tmp/macOS-12.0.1.dmg -nobrowse -noverify -mountpoint /Volumes/macOS-12.0.1 | ||
− | Then format it again, yes, this seems to be required: | + | Then figure out the device (<code>diskutil list</code>) and format it again, yes, this seems to be required: |
diskutil eraseDisk JHFS+ macOS-12.0.1 disk2 | diskutil eraseDisk JHFS+ macOS-12.0.1 disk2 | ||
Line 33: | Line 33: | ||
mv macOS-12.0.1.cdr macOS-12.0.1.iso | mv macOS-12.0.1.cdr macOS-12.0.1.iso | ||
− | No, it can't be done in a single step. After this, you can use this ISO in VMware. | + | No, it can't be done in a single step. After this, you can use this ISO in VMware. Don't forget to clean up: |
+ | |||
+ | rm -r /tmp/macOS-12.0.1.dmg | ||
== References == | == References == | ||
* [https://support.apple.com/en-us/HT201372 How to create a bootable installer for macOS] | * [https://support.apple.com/en-us/HT201372 How to create a bootable installer for macOS] |
Latest revision as of 09:20, 10 November 2021
Introduction
First, we need to download the installer, then we need to create a .dng install media, and then we need to convert that to an ISO image.
Download the installer
softwareupdate --fetch-full-installer --full-installer-version 12.0.1
Create the image
First, create a file-backed volume and mount it:
hdiutil create -o /tmp/macOS-12.0.1 -size 14000m -volname macOS-12.0.1 -layout SPUD -fs HFS+J hdiutil attach /tmp/macOS-12.0.1.dmg -nobrowse -noverify -mountpoint /Volumes/macOS-12.0.1
Then figure out the device (diskutil list
) and format it again, yes, this seems to be required:
diskutil eraseDisk JHFS+ macOS-12.0.1 disk2
Then we can create the bootable image:
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/macOS-12.0.1 --nointeraction
Detach it, notice the different volume name:
hdiutil detach /Volumes/Install\ macOS\ Monterey/
And convert it to ISO:
hdiutil convert /tmp/macOS-12.0.1.dmg -format UDTO -o macOS-12.0.1.cdr mv macOS-12.0.1.cdr macOS-12.0.1.iso
No, it can't be done in a single step. After this, you can use this ISO in VMware. Don't forget to clean up:
rm -r /tmp/macOS-12.0.1.dmg