When you download any operating system to install on a computer, it is always a good idea to download the OS from a reputable source, namely Apple for macOS and Microsoft for Windows. This is to avoid malware in these files. The operating system is the foundation of any computer. Therefore, it has to be as clean as possible.
Microsoft offers the ISO file of Windows so you can create a bootable USB drive from it. The ISO format is a flexible format that can be used for other purposes. Another use is to mount it as if it were a physical CD so you can install Windows, or any OS, as a guest OS on a virtual machine created by VMWare, VirtualBox, or Parallel.
Apple, as usual, does things its own way by not offering its macOS files in the ISO format. When you download macOS Sequoia for example from the Apple App Store, it is is the .app format which is similar to ISO, but unfortunately does not have the flexibility of the ISO format. Therefore, when you want to install Sequoia inside a VMWare virtual machine, you have to convert the .app file to an .iso file. Again, Apple doe not make this conversion simple. Fortunately, it is possible to do so without the need to use a third-party program may inject malware into the resultant file during the creation process. If you don't mind doing some command line work in macOS Terminal, this can be done.
- Download the "Install macOS Sequoia.app" from Apple using the App Store. As said, this ensures the file is free of malware.
- Copy the file called “Install macOS Sequoia.app” installer from the Applications folder into your Desktop.
- Open Terminal.
- Create a dmg container on the desktop the size of 20GB named “Sequoia.dmg” by entering this command. You can copy and paste the command into the Terminal.
hdiutil create -o ~/Desktop/Sequoia -size 20000m -volname Sequoia -layout SPUD -fs HFS+J - Mount the Sequoia.dmg container into your device.
hdiutil attach ~/Desktop/Sequoia.dmg -noverify -mountpoint /Volumes/Sequoia - Create a bootable macOS Sequoia installer into the created dmg container.
sudo ~/Desktop/Install\ macOS\ Sequoia.app/Contents/Resources/createinstallmedia --volume /Volumes/Sequoia --nointeraction - Detach the created bootable dmg container.
hdiutil detach /Volumes/Install\ macOS\ Sequoia - Convert dmg to cdr container.
hdiutil convert ~/Desktop/Sequoia.dmg -format UDTO -o ~/Desktop/Sequoia.cdr - Convert cdr to the bootable iso image.
mv ~/Desktop/Sequoia.cdr ~/Desktop/Sequoia.iso