Skip to content

Instantly share code, notes, and snippets.

@igorcosta
Forked from mislav/windows-on-mac.md
Created April 13, 2023 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorcosta/084c496133696c2077bfe3c330c4d8c6 to your computer and use it in GitHub Desktop.
Save igorcosta/084c496133696c2077bfe3c330c4d8c6 to your computer and use it in GitHub Desktop.
Install Windows 11 in a virtual machine on macOS with an M1 CPU

Based on https://docs.getutm.app/guides/windows/

  1. Get UTM for Mac - the App Store version is offered merely as a way to support the developers, since it's paid, but has the same features as the free build;

  2. Obtain scripts that bootstrap an arm64 Windows 11 22H2 (I've chosen Windows Home edition and not Pro);

  3. brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw;

  4. cd into the directory extracted in step 1 and bash uup_download_macos.sh - this will produce an ISO;

  5. In the UTM app, create a new “Virtualize” machine and mount the ISO file from the previous step;

  6. Check “Install drivers and SPICE tools”;

  7. Boot the VM and go through the Windows installer;

  8. Boot the installed OS and finish the SPICE tools installer that should pop up by itself, then reboot the OS;

  9. Windows should now be ready to use, but there might not be network connection. DNS resolution seems busted. Two different workarounds that I've successfully tried were:

    • Shut down the VM and change its network settings from “Shared” to “Bridged”; or
    • Open “Network & internet” settings in the guest OS and set static IPv4 addresses for Google DNS: 8.8.8.8 and 8.8.4.4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment