-
First, download MacOS Mojave installer, or the MacOS Catalina installer (or the installer you wish to turn into an ISO) from the Mac App Store (direct links to most installers can be found in this article).
-
When the “Install MacOS Mojave.app” or “Install MacOS Catalina.app” application is fully downloaded and within the /Applications folder, proceed
-
Next, open the Terminal application
-
Create a disk image (DMG) large enough to hold the bootable installer. For Catalina or below, 8500 MB is enough but newer versions may require a larger disk image size.
1hdiutil create -o /tmp/<macOS name> -size 8500m -volname <macOS name> -layout SPUD -fs HFS+JNote that the names mentioned here are temporary and can be renamed if needed.
-
Mount the freshly created disk image (DMG). The createinstallmedia expects it (just like with an USB flash device):
1hdiutil attach /tmp/<macOS name>.dmg -noverify -mountpoint /Volumes/macOS -
Next, like with a regular USB flash media, run the createinstallmedia command to create the installation media inside the mounted disk image:
1sudo /Applications/Install macOS <macOS name>.app/Contents/Resources/createinstallmedia --volume /Volumes/<macOS name> --nointeraction -
When createinstallmedia has finished, next you can unmount the volume you just created:
1hdiutil detach /volumes/Install macOS <macOS name> -
Now we convert the DMG disk image file to an ISO disk image file (technically a CDR file but it’s the same as an iso):
1hdiutil convert /tmp/<macOS name>.dmg -format UDTO -o ~/Desktop/<macOS name>.cdr -
After the conversion is completed, you can decide to keep or delete the original disk image (macOS.dmg). If necessary, rename the CDR file to ISO to be able to use it in VMware Fusion or VirtualBox.
1mv ~/Desktop/<macOS name>.cdr ~/Desktop/<macOS name>.iso
scripts
create_iso_catalina.sh
|
|
create_iso_mojave.sh
|
|
Installing Mac OS X in VMWare Workstation on Windows
- Download and install VMWare Workstation. But to do that, you need to disable Hyper-V first.
- Download VMWare unlocker and run windows/install.cmd script. It allows to choose Mac OS X system during VM creation later on.
- Convert Mac OS X image (Mountain Lion in my case) from .dmg to .iso (using dmg2img).
- Create VM for Mac OS X and choose created Mac OS X .iso file in new VM settings -> hardware -> CD/DVD (SATA) -> Use ISO image file
- Run Virtual Machine and install Mac OS X (described in mentioned article).
- Install VMWare tools (also described in mentioned article).
Once Mac OS X is installed and running I updated Mountain Lion to Mavericks. That was easy and went smoothly. Additionally I recommend to do following:
- Enable shared folders (they are located in /Volumes/VMWare Shared Folders/NAME_OF_FOLDER)
- Install TotalFinder
- Install iTerm 2
- Install Witch
- Install SublimeText 3
- Install Xcode (not only for iOS development, it contains e.g. gcc compiler)
Reference
Create a macOS bootable ISO from the installer
How to Convert a MacOS Installer to ISO
How to Download a Full Size MacOS Mojave Installer
Installing Mac OS X in VMWare Workstation on Windows 8
How to install Apple macOS in VMware Workstation on Windows
OS_X_El_Capitan by techrechard
USB.Flash.Install.OS.X.El.Capitan.10.11.6.w9.dmg
VMware 10 安装Mac OS X 10.9 Mavericks