I have downloaded 3 DMGs from Apple (see below for URLs) with the intention of making VMs from them (on a Mac), but I cannot.
Apple has seemingly made these DMGs with the expressed intention of installing them on a Mac, and not making VMs. Even more, Apple seems to have made it intentionally difficult.
The DMG mounts to a package (.pkg) file. The .pkg will not run on any Mac which cannot run the version of macOS which it will install. I also assume it will not run if you are using a Mac which could use that version of Mac OS X but has a later version already installed.
I was able to extract the .app that the .pkg was meant to install, but the app lacked the “InstallESD.dmg” which is needed to actually do the installation. I manually extracted “InstallESD.dmg” and moved it to the ‘/Contents/SharedSupport/’ sub-folder of the app, and then tried to create the VM that way.
The process starts, but when it gets to the point of choosing where to install it, the installation fails with a message:
“This copy of the install OS X El Capitan application can’t be verified. It may have been corrupted or tampered with during downloading.”
The installation will not continue from that point.
(Note: I outlined these steps in greater detail at https://rhymeswithdiploma.com/2019/10/28/dmg-to-virtual-machine/ if you care to know more specifics.)
My question is: How can I make a VM from one of these DMGs?
Please note that I am only asking about running a macOS VM on Mac hardware.
If anyone wants to try this themselves, here are the URLs that I used and the version of Mac OS X that they relate to:
wget --continue --show-progress --progress=bar --output-document=InstallYosemite.dmg \
wget --continue --show-progress --progress=bar --output-document=InstallElCapitan.dmg \
wget --continue --show-progress --progress=bar --output-document=InstallSierra.dmg \