Virtualizing macOS Monterey

From Doge Microsystems
Revision as of 23:44, 26 October 2021 by DogeMicrosystems (talk | contribs)
Jump to navigation Jump to search

Looking to virtualize the recently released macOS Monterey? Then this is the guide for you, read on!

Before you start

There are a few requirements before we get started. You will need:

  • An Intel based Apple computer running a recent version of macOS like Catalina or Big Sur that is capable of running, but has not yet been upgraded to Monterey.
  • An Apple computer running a recent of VMware ESXi. Running macOS in a virtual machine on Apple hardware is the only way to adhere to the user agreement. For the purposes of this guide I'll be using a 2013 Mac Pro running VMware ESXi 6.5.0 Update 2 (Build 8294253)
  • An evaluation copy of VMware Workstation Pro for Windows(v15 or later)
  • At least 28GB of free space on your mac

Getting the Monterey installer

  1. On your mac that has not yet been upgraded to Monterey open System Preferences then navigate to Software Update. You should be prompted to download or upgrade to Monterey.
    Monterey guide 1.png
  2. After the download is complete simply close the installer. Do not start the installation process!
    Monterey guide 2.png
    The installer is now located in Applications as /Applications/Install macOS Monterey.app

Creating a bootable disc image

Just like Big Sur the process of creating install media is a bit different than previous macOS releases.

  1. Create a disc image to house the installer. For macOS Monterey 12.0.1 the image must be at least 13685 MB in size.
    hdiutil create -o monterey.dmg -size 13685m -volname macOSMonterey -layout SPUD -fs HFS+J
  2. Attach the volume
    hdiutil attach monterey.dmg -noverify -mountpoint /Volumes/macOSMonterey
  3. Use the createinstallmedia tool inside the Monterey installer to make the disc image into a bootable macOS installer. This process will take a couple minutes.
    sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/macOSMonterey --nointeraction
  4. Detach the volume. Note that the volume name and mount point changed during the process.
    hdiutil detach /Volumes/Install\ macOS\ Monterey
  5. Convert the resulting dmg file to a cdr
    hdiutil convert monterey.dmg -format UDTO -o monterey.cdr
  6. Finally, rename the cdr to iso.
    mv monterey.cdr monterey.iso
    The dmg image can now be used to create a bootable USB stick or simply deleted.
  7. Upload your new bootable ISO image to your datastore in VMware ESXi

Creating the Virtual Machine

  1. In the ESXi console click Create /Register VM
  2. Select Create a new virtual machine then click Next
  3. Select the highest Compatibility possible. In my case ESXi 6.5 virtual machine
  4. Select Mac OS under Guest OS Family
  5. Select the highest supported macOS version possible. In my case Apple Mac OS X 10.12 (64-bit)
  6. Enter a name for the virtual machine then click Next
    Monterey guide 3.png
  7. Select the datastore to use for virtual machine storage then click Next
    Monterey guide 4.png
  8. Make adjustments to the CPU count but be sure to only use two sockets. E.g to have 4 CPU cores you can either choose 4 CPU and 4 Cores per Socket or 2 CPU and 2 cores per socket.
    Monterey guide 5.png
  9. For Memory 2GB is the minimum recommended. The more the better though!
  10. For the Hard Disk 40GB is a good start, adjust to fit your needs.
  11. Select the appropriate Network
  12. Do not change any other settings at this point, they will be changed later. Click Next then Finish
    Monterey guide 6.png
    Monterey guide 7.png
  13. Select your new VM and click Edit
  14. Expand the CD/DVD Drive' section, change the type to Datastore ISO file, select your Monterey ISO file, click Select, then check Connect at power on
  15. Under Video Card change the type to Specify custom settings then change Total video memory to 128
  16. Click Save

Don't power on your new virtual machine just yet! There is one more step before you can install macOS.