MacOS 27 Virtualisation & Intune Enrolment via Tart

Which macOS Virtualisation platform works with MDM?

I'm testing macOS enrolment on to Microsoft Intune, and found that not all virtualisation applications in are worth your time. I ran into a few road blocks, some bigger than others.

My Hardware / Software

  • Apple macOS Host: Mac Mini M6 (macOS 27.2.1)
  • Virtual macOS Version Tested: macOS 27.2.1

Virtualisation Platforms Tested

  • Parallels Desktop Pro
  • UTM (5.0.7)
  • TART

Not tested:

  • Virtual Box
  • VMware Fusion

What Worked Well?

After testing 3 virtualisation software systems available for macOS, I ended up using Tart, but it was definitely not all smooth sailing. After a few days of troubleshooting the different images available for Tart, I found that the current version of Intune Company Portal with macOS ARM Virtual Machines seem to get blocked by System Integrity Protection, after disabling it, I can proceed with enrolments and then re-enable it since most organisations would be enforcing SIP via a Device Compliance Policy.

Deploying a macOS ARM-based VM on a macOS ARM Host

Following the following instructions to get a ARM based macOS VM on your existing ARM mac.

Pre-requisite: Install Brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. Open your terminal.app and install TART: brew install openai/tools/tart
    1. You may need to add tart to zsh or bash, or open a new terminal session after install
  2. Run the following to create a tart VM with 60GB disk and macOS build/version that matches your host.
tart create --from-ipsw=latest --disk-size 60 vm-test
tart set vm-test --memory 8192 --cpu 4
tart run vm-test
  1. Once the VM boots skip Apple ID Login etc.
  2. Within the VM, check SIP is enabled or disabled csrutil status
  3. If it is disabled, turn off the VM then from your Terminal, run this command: tart run --recovery vm-test
    1. Follow Apple's instructions to Disable System Integrity Protection from Boot, e.g. csrutil disable and enter y then reboot
  4. After you reboot, you can install Intune Company Portal or with:
curl -L -o /tmp/CompanyPortal.pkg "https://go.microsoft.com/fwlink/?linkid=853070"
sudo installer -pkg /tmp/CompanyPortal.pkg -target /
Example command to download and install Intune Company Portal
  1. You can now shutdown the VM then run tart clone vm-test vm-test-clean to clone it.
  2. Power on the VM again with tart run vm-test and continue testing.
  3. Open Intune Company Portal, then re-attempt enrolment. You should be able to get past the MDM Profile installation.
If SIP is enabled, that green tick doesn't appear after installing the MDM profile. It will timeout
  1. After you enroll successfully, if you have SIP CA Policy enforcement enabled, you will need to Reboot and re-enable SIP via csrutil enable
  2. Voila, you're now enrolled, compliant and ready to continue testing.

Additional Things: Enabling SSH, Clipboard Sharing

I also like to install the following into my clean image, which is to enable SSH on the host so I can locally SSH into the host + Host to VM 'Clipboard Sharing' with the Cirrus Guest Agent.

  1. On your VM, Turn on System Settings → General → Sharing → Remote Login , then from the host Mac, SSH to your VM host.
  2. Run the following from terminal to install brew & tart-guest-agent on the VM
sudo -v && /bin/bash -c '
set -e
command -v brew >/dev/null || [ -x /opt/homebrew/bin/brew ] || NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
grep -q "brew shellenv" ~/.zprofile 2>/dev/null || echo "eval \"\$(/opt/homebrew/bin/brew shellenv)\"" >> ~/.zprofile
brew install cirruslabs/cli/tart-guest-agent 2>/dev/null || brew install openai/tools/tart-guest-agent
BIN="$(brew --prefix)/bin/tart-guest-agent"
PL=/Library/LaunchAgents/org.cirruslabs.tart-guest-agent.plist
sudo tee "$PL" >/dev/null <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
  <key>Label</key><string>org.cirruslabs.tart-guest-agent</string>
  <key>ProgramArguments</key><array><string>$BIN</string><string>--run-agent</string></array>
  <key>LimitLoadToSessionType</key><string>Aqua</string>
  <key>RunAtLoad</key><true/>
  <key>KeepAlive</key><true/>
</dict></plist>
EOF
sudo chown root:wheel "$PL" && sudo chmod 644 "$PL"
sudo launchctl bootout gui/$(id -u)/org.cirruslabs.tart-guest-agent 2>/dev/null || true
sudo launchctl bootstrap gui/$(id -u) "$PL"
pgrep -fl tart-guest-agent && echo "✅ tart-guest-agent running"
'
  1. Run the standard post install brew
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
  1. Check the Agent is installed & Copy & Paste:
Cirrus Labs' Guest Agent, it provides Host to VM clipboard sharing

Other Notes:

Tart stores files, IPSW (OS images), etc here:

  • IPSWs are cached here: ~/.tart/cache/IPSWs/
  • VMs are ~/.tart/vms/<vm-name>/

What didn't work well?

  • Parallels Desktop Pro: Intune Company Portal fails to progress after the MDM profile is installed despite it being installed. Intune can see the installation but the Company Portal fails device-side. The issue is also SIP related but Tart is free and getting into recovery on Parallels is slow.
  • UTM (5.0.7): Safari WebKit GPU/Metal fails to render anything and the inbuilt Intune Company Portal relies on, not SIP related.
  • TART : Base image from TART fails Intune Compliance Policies because System Integrity Protection is disabled, this article calls out the fix.

Member discussion