Steps to create a macOS virtual machine
From blinkenwiki
- Create 32 GB ramdisk.
- Copy ‘Install macOS Mojave.app’ to ramdisk.
- File->New…
- Choose Install Windows or another OS from a DVD or image file. Continue.
- Click ‘Choose Manually’ and drop install image on installation assistant. Continue.
- Warning about creating a bootable image file. Continue.
- . Change location to ramdisk. Save.
- Change name to ‘macOS Mojave’. Change location to ramdisk. Choose ‘Customize settings before installation.’ Create.
- Change Memory to 8192 MB. Close. Continue.
- Warning about camera access. Ignore. Continue.
- Wait for VM to boot.
- Install OS
- Choose Language: English. Next.
- Choose Install macOS. Continue.
- Agree.
- Choose Macintosh HD. Install.
- VM will reboot, and briefly show text console. QUICKLY! Pause VM.
- Stop VM. Remove disk ‘macOS image file.hdd’ and file.
- Remove ‘Install macOS Mojave.app’.
- NB: Removing these files ensures the fill 32GB in the ramdisk is available to the VM.
- Start VM.
- Wait for macOS to install.