Intune and Jamf Enrollment in a macOS VM: Resets and ADE
Test Intune or Jamf enrollment on a macOS VM, why ADE needs a serial registered in your Apple account, and how to reset with snapshots instead of reinstalling.
GuideUpdated 7 min read
On this page
You want to enroll a macOS VM into Intune or Jamf, wipe it and do it again. Forum threads say enrollment works in one VM app but not another, that you can't spoof a serial on Apple silicon so ADE can't be tested, and that a normal wipe or reset takes an hour or doesn't work.
We make Hermitbox, so weigh our view accordingly. Hermitbox covers the clean-slate part (fresh macOS VM, snapshot, restore). It doesn't cover the MDM side, and this page says where that line is.
Why enrollment tests in VMs are awkward
The MDM has to recognize the VM as a device. Microsoft says Intune supports virtual macOS machines for testing purposes only. Intune needs the VM's hardware model and serial number, and enrollment fails if you don't provide them. For VMs on Apple silicon hardware, the same page says no changes are required. Intune lists Parallels Desktop, VMware Fusion and Apple silicon VMs. It doesn't name Hermitbox or UTM, and neither do we claim Intune accepts them.
A badly configured VM gets a specific message. The Company Portal can show "It looks like you're using a virtual machine" and ask you to make sure it's fully configured, including serial number and hardware model. Microsoft's troubleshooting page also lists enrollment restrictions that require a corporate-owned device or a registered serial number, and a device that is still assigned to someone else in Intune as causes. See Microsoft's macOS VM enrollment troubleshooting.
ADE depends on your Apple account. ADE assigns devices through Apple School Manager or Apple Business, so the device's serial number has to be registered there. Apple's Automated Device Enrollment documentation covers the flow. A VM with a made-up serial isn't in your organization's account, so the Setup Assistant flow has nothing to match. That fits one macsysadmin reply saying you can't test ADE this way. Another reply says UTM lets you set up automated device enrollment for the VM. The replies disagree and we haven't verified either.
Wiping a VM like a Mac is slow or unreliable. An Intune admin thread from August 2023 says enrollment worked in UTM, but a normal wipe or reset did not, so they reinstalled. Restoring a snapshot gets you back to a never-set-up state without an erase or a reinstall.
Repeat enrollments can look like one machine. Parallels' knowledge base says Intune may detect later enrollments from the same host Mac as the same machine. We have no equivalent notes for other VM apps. Stale device records are a likely cause of "it worked once, then stopped".
What Hermitbox covers and what it doesn't
| Need | Hermitbox | Notes |
|---|---|---|
| Fresh macOS VM from Apple's restore image | Yes | Latest, a chosen version from macOS 13 on, or an .ipsw file |
| Snapshot at a clean state, restore later | Yes | APFS clones, instant, no extra space until the VM changes |
| Throwaway runs that discard changes | Yes | Run Without Saving Changes |
| Intune or Jamf enrollment inside the VM | Not tested | Try one manual enrollment first |
| Setting a custom serial or hardware model | No | No serial field in VM Settings |
| ADE (Setup Assistant) flow | Not supported | Use a real Mac registered in your Apple account |
Table as of November 2026. macOS VMs in Hermitbox need an Apple silicon Mac and macOS 14 Sonoma or later on the host.
Set up a clean-slate loop
For the full walkthrough, see Create a macOS virtual machine.
- Choose File ▸ New VM… (⌘N) and pick the macOS card.
- Choose Latest macOS, or Choose a Version… for older releases. A version newer than your Mac can run shows "Needs a newer macOS on this Mac or Apple's device support files."
- On Name and Size, accept the recommendation or set Cores, Memory and Disk. The minimums for macOS are 4 GB of memory and 64 GB of disk.
- Click Create and wait. The install ends at macOS Setup Assistant.
- Take a first snapshot with Machine ▸ Take Snapshot (⇧⌘S) or the Snapshots tab in the inspector. Rename it (⋯ ▸ Rename…) to something like "Fresh install".
- Finish Setup Assistant, create the admin account and apply anything every test needs. Take a second snapshot, for example "Base, not enrolled", before any MDM touches the VM.
- Enroll with whatever user-initiated method your MDM supports, and run your test.
- To go back, open the Snapshots tab, choose ⋯ ▸ Restore… on "Base, not enrolled" and confirm. Snapshot the current state first is on by default. Turn it off if you don't need a copy of the enrolled state.
Throwaway runs for repeat tests
Run Without Saving Changes (⌥⌘R, or Option-click the ▶ on a box) starts a throwaway copy of a VM. When you close it, Hermitbox asks "Stop and Discard Changes?" and everything that changed is thrown away. Disposable runs can't take snapshots or suspend, and they count toward the limit of two running macOS VMs.
One base VM per macOS version
Clone (⌘D) makes an instant APFS copy with a new id and MAC address. The VM must be shut down or suspended, and clones don't carry snapshots or saved state. Keep one clean base VM per macOS version and clone from it before first enrollment. See Snapshots, clones, templates and throwaway runs.
Clean up the server side too
A restore puts the VM's files back. It doesn't touch your MDM. Before enrolling again from a restored snapshot:
- Delete the old device record in Intune or Jamf. Microsoft's troubleshooting page describes cleaning up a stale device record from the admin center.
- Check that the user isn't blocked by a device limit or an enrollment restriction.
- Note whether the MDM reports the restored VM as the same device or a duplicate. We haven't tested this with Hermitbox VMs.
Script the reset
Hermitbox includes a hermitbox command-line tool. Install it from Settings ▸ Advanced ▸ Command line tool. It can't create VMs, but it can snapshot, restore and start them:
hermitbox snapshot create "macOS Test" "Base, not enrolled"
hermitbox snapshot restore "macOS Test" "Base, not enrolled"
hermitbox start "macOS Test"Run the create line once, while the VM is in its clean state. Each restore is followed by start. Our documentation doesn't cover restoring a snapshot while the VM is running, so shut the VM down first (hermitbox stop "macOS Test"). That whole stop, restore, start sequence is untested on our side for MDM work, so try it by hand once.
snapshot restore always snapshots the current state first, so old snapshots build up. Remove them with hermitbox snapshot delete NAME SNAPSHOT. See Automate Hermitbox.
Pick a test setup
| You need to test | Use |
|---|---|
| Profiles, policies and app installs after enrollment | A macOS VM your MDM accepts, reset from a snapshot |
| The same policy on several macOS versions | One VM per version, each from its own restore image |
| Repeated user-initiated enrollment | A clean snapshot or a throwaway run, plus deleting the old device record |
| The ADE flow in Setup Assistant | A real Mac whose serial is in your Apple account |
| Enrollment where Intune needs a settable serial or hardware model | A VM app Microsoft documents for this, such as Parallels Desktop or VMware Fusion |
Forum replies also mention UTM and a Tart plus Packer workflow for Jamf Pro test VMs. We haven't tested those, so check them against your own MDM.
Checklist before you try again
- The VM runs on an Apple silicon Mac with macOS 14 or later.
- You restored a snapshot taken before any MDM enrollment.
- The old device record is gone from your MDM console.
- Your MDM vendor allows VMs for testing (Microsoft documents this for Intune; ask Jamf about its side).
- You aren't testing ADE in a VM.
If nothing works
Contact your MDM vendor (Microsoft Intune support or Jamf support) if enrollment is refused, since only they can see why the device was rejected. For snapshot or restore problems in Hermitbox, use the MacSuite support page. Include the exact error text, the macOS version in the VM, the Hermitbox version, timestamps and the steps you tried.
Subject: macOS VM enrollment fails after restoring a snapshot
Host: Apple silicon Mac, macOS [version]
VM: macOS [version], created in Hermitbox [version]
MDM: [Intune or Jamf], enrollment type: user-initiated
Steps: created VM, took a snapshot before enrollment, enrolled once
(worked / failed), restored the snapshot, enrolled again.
Exact error text: [paste it here]
Time of failure: [date and time with time zone]
Already tried: deleted the old device record, [other steps]
Question: is this VM supported for enrollment, and which identifiers does the MDM read?Common questions
Can I spoof a serial number for ADE in a VM?
Not in Hermitbox: VM Settings has no serial number field. ADE also needs the serial to be registered in your Apple account, so a made-up one wouldn't match anyway.
Does Intune officially support macOS VMs?
For testing only. Microsoft says not to use VMs as official devices for employees or students. See Microsoft's enrollment page for the supported VM apps.
Is a snapshot restore faster than wiping the VM?
A restore involves no erase or reinstall, so it skips the slow part. We haven't timed it, so we won't give a number.
Will the MDM treat a restored VM as a new device?
We don't know. Hermitbox doesn't document what an MDM reads from the VM, so check your console after the first re-enrollment.
For ADE, use a real Mac
If ADE is what you're testing, use a spare Mac registered in your Apple account and reset it between runs. For everything after enrollment, a restorable VM is a reasonable fit if your MDM accepts it. Hermitbox is part of MacSuite, and each MacSuite app runs for 7 days without a key.