for use in virtual machines, follow these Terminal-based steps: Extract the App file to move the "Install macOS [Version].app" into your /Applications Create a Temporary DMG
Despite your best efforts, you might encounter some common issues: how to convert pkg to iso