Run older macOS in a UTM virtual machine for testing
A macOS VM in UTM is a real install of an older macOS that you can reach over SSH. It needs an Apple silicon Mac and close to 50 GB free. I ran macOS 26.6.2 as a guest on a Mac mini with 16 GB of memory running macOS 27.2, using UTM 5.0.8 and its Apple Virtualization backend. That’s the only combination I tested.
What you can and can’t run
Host. UTM’s docs say macOS guests need Apple silicon and a host on macOS 12 or later. They don’t offer macOS guests on Intel hosts.
Oldest guest. UTM’s option is labelled macOS 12+. The Eclectic Light Company’s tests found Big Sur can’t be virtualized this way, and in 2023 found that Monterey guests get stuck at 12.6.1 and can’t update past it. I haven’t tried either.
Newest guest. Plan on a guest no newer than the host. Apple’s API has a check for whether the host supports a restore image. Parallels says a guest newer than the host might not run. I only ran an older guest on a newer host.
How many at once. Two. The macOS 27 licence allows up to two (2) additional copies in VMs on a Mac you own or control, for software development, testing during development, macOS Server, or personal non-commercial use. An Apple engineer on the developer forums says the Virtualization framework enforces the same cap on macOS guests, and that Linux guests don’t count toward it. I never ran two. This isn’t legal advice, so read section 2B of the licence for your version.
Nesting. GitHub’s docs say nested virtualization isn’t supported on its arm64 macOS runners because of Apple’s framework, so you can’t run this VM inside a runner.
What doesn’t work in a VM
Apple’s support article says a VM can sign in to an Apple Account if the host is on macOS Sequoia or later. Messages, FaceTime and most iCloud features then work. These don’t:
- iCloud Backup
- Find My
- Apple Wallet
- Apple Media Services, which covers apps, movies, music and books
Eclectic Light reports that App Store apps won’t run in a VM, apart from Pages, Numbers and Keynote copied from the host, and that iCloud only works in a VM built from the start on Sequoia, not one upgraded to it.
UTM’s docs list what its Apple backend lacks on older macOS:
| Feature | Not available before |
|---|---|
| USB sharing | macOS 27 |
| Snapshots and disposable mode | macOS 27 |
| Clipboard sharing | macOS 15 |
| Dynamic display resolution | macOS 14 |
| Save states | macOS 14 |
For clipboard sharing, the docs say both guest and host need macOS 15. For the others they don’t say whether they mean host or guest, and I didn’t try any of these. I wouldn’t count on rolling an older guest back to a clean snapshot. If you need App Store purchases or StoreKit to behave as they do for customers, I haven’t tested that, and the list above is a reason to doubt it.
Disk space
Check first:
df -h ~| Item | Size on my Mac mini |
|---|---|
macOS 26.6.2 restore image (.ipsw) | 19.8 GB |
The VM, after install and Setup Assistant (du) | 27 GB |
The virtual disk was set to 64 GB, but it used less than that on the host. My laptop had 32 GB free, so I used the mini. Newer images are bigger: the listing I checked had 27.2 at 25.6 GB.
Get the restore image
UTM can download a compatible macOS for you, and its docs recommend that. For a
specific older version, you need the .ipsw yourself.
I found mine on ipsw.me under the device VirtualMac2,1, a
third-party site. UTM’s docs say they can’t vouch for files from sites like it.
The link it gave pointed at Apple’s own download host,
updates.cdn-apple.com, and that’s where the file came from. I didn’t compare a
checksum. The file was UniversalMac_26.6.2_25G83_Restore.ipsw, and it
took about three minutes at around 100 MB/s.
Create the VM
You can do this in UTM’s window: create a new VM, choose Virtualize, then
macOS 12+, and pick your .ipsw. I scripted it instead, because UTM has an
AppleScript interface. Change the path, and run it in Terminal on the host:
osascript <<'EOF'
with timeout of 600 seconds
tell application "UTM"
set vm to make new virtual machine with properties {backend:apple, configuration:{name:"macOS 26 test", os:macOS, memory:4096, cpu cores:4, macRecoveryIpsw:(POSIX file "/path/to/UniversalMac_26.6.2_25G83_Restore.ipsw"), drives:{{guest size:65536}}}}
install vm
return id of vm
end tell
end timeout
EOFThat’s 4 cores, 4 GB of memory and a 64 GB disk. My install took about three minutes.
The first time a script controls UTM, macOS asks whether to allow it. That prompt is the permission working as intended, and someone has to click Allow. This is where most of my hour went, because I was running the script over SSH:
| What I did | What happened |
|---|---|
Ran utmctl over SSH | Error -1743, and UTM’s note that utmctl doesn’t work from SSH sessions |
Ran osascript over SSH, before anyone had clicked Allow | Timed out with -1712. My guess is the prompt was waiting on the Mac’s own screen |
| Clicked Allow on that Mac | The script worked over SSH from then on |
So run one harmless command on the Mac itself first, and click Allow:
osascript -e 'tell application "UTM" to get name of every virtual machine'First boot
Start the VM from UTM’s window the first time. When I tried it by script, start
timed out with -1712 and the VM stayed stopped. It started fine from the window.
I don’t know what was blocking it.
Then click through Setup Assistant by hand and make a local account. This test doesn’t need an Apple Account.
Reach it with SSH keys
Inside the VM, turn on System Settings ▸ General ▸ Sharing ▸ Remote Login.
On the host, find the VM’s address:
arp -a | grep 192.168.64Mine was on 192.168.64, and the .1 address was the host’s side of the bridge,
so the VM was the other one. Your range may differ. arp only lists the VM once
there’s been traffic to it, so if it’s missing, look in the VM’s own Network
settings.
Next, put your public key on the VM. If ls ~/.ssh/*.pub finds nothing, make a key
first with ssh-keygen -t ed25519. Then type this yourself, once, and answer the
prompt for the VM account’s password. Don’t put that password in a script, a file
or a tool’s arguments:
ssh-copy-id YOUR-VM-ACCOUNT@VM-ADDRESSFrom then on, use BatchMode. It refuses to ask for a password, so a success
proves the key is what let you in, and a script fails cleanly rather than hanging
on a prompt:
ssh -o BatchMode=yes YOUR-VM-ACCOUNT@VM-ADDRESS sw_vers -productVersionTo run a test, copy the script over and run it there. The script is in the boundary test page:
scp -q check-aea-limit.sh YOUR-VM-ACCOUNT@VM-ADDRESS:/tmp/
ssh -o BatchMode=yes YOUR-VM-ACCOUNT@VM-ADDRESS 'bash /tmp/check-aea-limit.sh'When you’re done
Remote Login is a way into that VM, so stop the VM when you’ve finished.
You can stop it in UTM’s window. To get the space back, delete the VM there and
remove the .ipsw. If you scripted UTM and won’t again, you can turn off Terminal’s
access in System Settings ▸ Privacy & Security ▸ Automation.
Keep the image if you’ll test that version again.
Sources
- UTM: macOS guest support
- UTM: scripting
- Apple: Installing macOS on a virtual machine
- Apple: Use iCloud on a virtual machine
- macOS 27 Software License Agreement
- Apple Developer Forums: the two-VM limit
- Eclectic Light Company: what you can do with virtualized macOS
- Eclectic Light Company: limitations of macOS VMs, 2023
- Parallels: known limitations of macOS VMs
Checked November 2, 2026.