- Sign up for the Beta Program https://beta.apple.com/sp/betaprogram.
- Create a Time Machine Backup (just in case).
- Cmd + Space -> Software Update.
- Where it says "macOS Catalina Beta" click "Upgrade Now".
- Once it has finished downloading and it starts the installer, quit the installer.
You should now have a file called /Applications/Install macOS Catalina Beta.app
.
- Create a disk image:
hdiutil create -o ~/macOS-Catalina-Beta -size 8000m -layout SPUD -fs HFS+J
- Attach the disk image:
hdiutil attach ~/macOS-Catalina-Beta -noverify -mountpoint /Volumes/install_build
* NOTE: There is an additional .dmg
suffix, you must add that.
3. Create the bootable installer in the disk image:
sudo '/Applications/Install macOS Catalina Beta.app/Contents/Resources/createinstallmedia' --volume /Volumes/install_build
- Add the prompt, enter your password.
- Press
Y
thenreturn
when prompted to erase the volume at/Volumes/install_build
.
Now the disk image ~/macOS-Catalina-Beta
will contain the bootable installer.
If you are like me then creating the bootable installer above would gotten rid of the /Volumes/install_build
mount point
and instead mounted it to /Volumes/Install macOS Catalina Beta
. You might see this in the output of the previous command:
Install media now available at "/Volumes/Install macOS Catalina Beta"
This seems to be a real pain to unmount.
The normal way to detach doesn't work:
$ hdiutil detach "/Volumes/Install macOS Catalina Beta"
hdiutil: couldn't unmount "disk4" - Resource busy
You can also try:
$ sudo diskutil unmount '/Volumes/Install macOS Catalina Beta'
Volume Install macOS Catalina Beta on disk4s3 failed to unmount: dissented by PID 3348 (/System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/Resources/diskimages-helper)
Now you can kill that process with kill -9 3348
and try again but when I did that it didn't seem to work.
What did end up working for me is just to restart.
Finally, to convert the disk image to an ISO run:
hdiutil convert ~/macOS-Catalina-Beta -format UDTO -o ~/macOS-Catalina-Beta.iso
It should say:
created: /Users/foo/Desktop/macOS-Catalina-Beta.iso.cdr
Which you can rename to get rid of the unnecessary .cdr
suffix:
mv ~/macOS-Catalina-Beta.iso.cdr ~/macOS-Catalina-Beta.iso
If it still says:
hdiutil: convert failed - Resource temporarily unavailable
Then you still need to get rid of that pesky mount point.
Ignore all of this. Just use https://github.com/AlexanderWillner/runMacOSinVirtualBox/ instead