Skip to content
86% off$349 $48.86code BF2026

Guides

Try Risky Software Safely in a Throwaway Mac VM

Use a macOS virtual machine as a sandbox: test unknown apps and betas in a run that discards every change, or roll back with a snapshot afterwards.

Use caseUpdated 10 min read

On this page

To try an unknown app, an installer, a macOS beta or a risky configuration change without touching your Mac, use a macOS or Linux virtual machine as a sandbox and throw the changes away afterwards. In Hermitbox, select a VM and choose Machine ▸ Run Without Saving Changes (⌥⌘R, Option-Command-R). When that run stops, everything that changed inside the VM is discarded. If the test spans several sessions or a Linux guest has to restart, take a snapshot first (⇧⌘S, Shift-Command-S) and restore it when you're done.

A VM is only as sealed as you set it up to be. Shared folders and the clipboard connect it to your Mac, and the network stays on. This page covers both patterns, how to tighten the VM before you run anything, and what a VM can't protect you from.

You need macOS 14 Sonoma or later. macOS VMs need a Mac with Apple silicon. On Apple silicon, Linux VMs run arm64 distributions.

When a throwaway VM is the right tool

Good fits:

  • An installer or app from a source you don't fully trust. You see what it installs, which permissions it asks for and what it leaves behind, then you discard all of it.
  • A macOS beta, or an older macOS version to check your own app against. See how to install a macOS beta in a VM and how to test your Mac app on older macOS versions.
  • Configuration changes that are painful to undo by hand: system extensions, launch agents, shell profile edits, or anything that needs System Integrity Protection turned off. A macOS VM can start in Recovery (Machine ▸ Start in Recovery), and Hermitbox shows the steps for turning SIP off there. Turn SIP off only inside the VM, never on your own Mac.
  • Linux scripts and curl | sh style installers you want to watch before you run them on a real machine.

Poor fits:

  • Software that needs your real hardware. Hermitbox has no 3D or GPU acceleration settings, no USB device passthrough and no multiple displays.
  • Windows software. Hermitbox runs Windows 11 on Arm VMs, but this page's steps are for macOS and Linux guests. Windows VMs have no shared folders or clipboard sharing, and snapshots work only while the VM is stopped.
  • Live malware analysis. Studying known malware calls for a dedicated, network-isolated lab. The setup on this page is not that.

macOS has no built-in VM app. The closest built-in option is a separate user account (open System Settings and search for "Users & Groups"). It keeps the software away from your own account's files and settings, but it still runs on your real Mac, and anything you give an administrator password can install system-wide components. If you'd rather use a different VM app, our roundup of virtual machine software for Mac compares the options.

Set up a sandbox macOS VM and lock it down

Do this once, before you run anything you don't trust. A disposable run or a template copy starts from the VM's current state, so whatever you set here carries over.

  1. Create a VM: a macOS VM (choose Choose a Version… in the New VM assistant for an older release) or a Linux VM.
  2. Finish the operating system's setup with a local account. Don't sign in to your Apple Account or any other personal account in a test VM.
  3. Install only what every test needs, such as developer tools.
  4. Apply the isolation settings below.
  5. Shut the VM down with Machine ▸ Shut Down (⌘., Command-Period).

Remove shared folders

Shared folders are folders on your Mac. Anything the VM writes, deletes or encrypts in them happens to your real files, and neither a disposable run nor a snapshot restore undoes it.

  1. Select the VM and open the Shared Folders section of the inspector.
  2. For each folder, choose Stop Sharing.

If you need to pass an installer in, share one folder that holds only that file and tick Read only. Read-only still means the VM can read everything in that folder. Make these changes while the VM is shut down, because some changes on a running VM only apply at its next start. Details are in Share folders and the clipboard.

Turn off clipboard sharing

Clipboard sharing is on by default for new macOS and Linux VMs. Turn it off in VM Settings ▸ Sharing ▸ Share the clipboard. You can also use the Clipboard switch in the VM window's Sharing popover, or Clipboard sharing in the inspector's Linux section.

  • macOS guests share the clipboard only through Hermitbox Guest, the helper on the disk that appears on the VM's desktop. If you never install it in the test VM, there is no clipboard link.
  • Linux guests: the change takes effect the next time the VM starts.

Hermitbox never passes clipboard items that password managers mark as concealed or transient. Anything else you copy on the Mac while sharing is on can reach the VM.

Leave the microphone off

VM Settings ▸ Sound ▸ Microphone is off by default. Keep it that way in a test VM.

Know what the network can reach

Every VM is connected through Apple's NAT ("Shared with this Mac (NAT)"). Hermitbox has no bridged mode, so the VM doesn't appear on your network as a device of its own. NAT doesn't stop the VM from making outgoing connections, though. It reaches the internet, and you should treat anything your Mac can reach as reachable from the VM too.

As of November 2026, the released version of Hermitbox has no setting to unplug a VM's network. Your options:

  • Disconnect inside the guest. In a macOS VM, open System Settings in the VM, search for "Network" and make its Ethernet service inactive. In a Linux VM, find the interface name, then take it down:

    bash
    ip -br link

    Lists the network interfaces and their state.

    bash
    sudo ip link set INTERFACE down

    Disconnects that interface (replace INTERFACE with the name from the first command). Undo with sudo ip link set INTERFACE up.

    Software with administrator or root rights can switch the network back on, so treat this as a speed bump, not a wall.

  • Disconnect the Mac. Turn off Wi-Fi or unplug Ethernet for the length of the test. The VM's traffic goes through your Mac, so it's cut off too, along with everything else on your Mac.

Download what you need before you disconnect.

Run Without Saving Changes: everything is discarded when it stops

Run Without Saving Changes starts a throwaway copy of the VM. Your VM stays as it was. The window shows a Disposable badge ("Changes are discarded when it stops") and an amber border, so you always know which kind of run you're in.

  1. Select the VM on the shelf.
  2. Choose Machine ▸ Run Without Saving Changes (⌥⌘R), or hold Option and click the ▶ button on its box.
  3. Install and test whatever you came to test.
  4. Close the VM window. Hermitbox asks Stop and Discard Changes? with the message "Everything that changed in “NAME” since it started is thrown away." Confirm to end the run.

To keep a record of what the installer did, choose File ▸ Start Recording (⌃⌘R, Control-Command-R) during the run. Hermitbox records only the VM's screen to a .mov file on your Desktop (or the Save to folder in Hermitbox's Settings ▸ Capture), so the recording survives the discard. Capturing needs Screen Recording permission for Hermitbox, which macOS asks for the first time.

Limits to plan around:

  • One sitting only. A disposable run can't be suspended, and Take Snapshot isn't available during it ("Changes in this run aren't kept").
  • Linux restarts end the run. When a Linux guest restarts itself, the VM stops, and a disposable run's changes are discarded with it. For Linux software that needs a restart, use a snapshot instead.
  • It counts as a macOS VM. A disposable run of a macOS VM counts toward Apple's limit of two macOS VMs at a time (why the limit exists).
  • Temporary files. The throwaway copy lives in ~/Library/Caches/Hermitbox/Disposable and is deleted when the run stops. Leftovers from a crash are removed the next time Hermitbox opens.

From Terminal, with the hermitbox command-line tool installed (Settings ▸ Advanced ▸ Command line tool):

bash
hermitbox start "Test Mac" --disposable

Starts a disposable run of the VM named "Test Mac". It can't be combined with --headless, and hermitbox:// links can't start disposable runs.

Snapshots: try, then roll back

Use a snapshot when the test needs Suspend, more than one session, or a Linux restart, or when you might want to keep the result.

  1. Shut the VM down for the cleanest restore point. You can also snapshot a running VM: it pauses briefly, and the snapshot is marked "Includes running state".
  2. Choose Machine ▸ Take Snapshot (⇧⌘S), or click Take Snapshot in the VM window's toolbar.
  3. Give it a name you'll recognize: in the inspector's Snapshots tab, open the snapshot's ⋯ menu and choose Rename….
  4. Run your test. Restart, suspend and come back tomorrow as often as you need.
  5. To roll back, shut the VM down, open the Snapshots tab, and choose Restore… from the snapshot's ⋯ menu.
  6. Hermitbox asks Restore “SNAPSHOT”? with Snapshot the current state first turned on. Leave it on if you want to inspect the changed system later. Turn it off if you just want the changes gone.

If you kept the changed state and no longer need it, choose Delete… from its ⋯ menu. Hermitbox says how much space that frees, and it can't be undone.

On an APFS disk, snapshots are instant and take no space until the VM changes. Hermitbox's default library folder is on your startup disk, which is APFS. On a non-APFS disk, each snapshot is a full copy, and Hermitbox asks first ("A Snapshot Makes a Full Copy").

For a test VM you use often, turn on Before each start in the Snapshots tab and set Keep (1 to 20, default 3). Hermitbox then takes a snapshot automatically every time the VM starts, marked "Taken automatically before a start". This needs an APFS disk.

The same steps work from Terminal:

bash
hermitbox snapshot create "Test Mac" "Before installer"

Takes a snapshot of "Test Mac" named "Before installer".

bash
hermitbox snapshot restore "Test Mac" "Before installer"

Restores it. The command always snapshots the current state first, so remove that extra snapshot with hermitbox snapshot delete when you're done.

More detail is in Snapshots, clones, templates and throwaway runs.

Disposable run, snapshot or template copy: which to use

Run Without Saving ChangesSnapshot, then restoreCopy from a template
How changes go awayAutomatically when the run stopsYou choose Restore…You move the copy to the Trash
Spans several sessionsNoYesYes
Survives a Linux guest restarting itselfNoYesYes
SuspendNoYesYes
Keep the result if you like itNoYes, just don't restoreYes, keep the copy
Best forA one-off installer or appBetas, multi-day tests, Linux installers that restartRunning the same clean setup again and again

What a VM doesn't protect against

  • Your shared folders. Writes to a shared folder land on your Mac and stay there.
  • Your clipboard. With sharing on, whatever you copy can reach the VM.
  • The network. Anything the software uploads, and any connection it makes to other machines, happens for real. Discarding the run or restoring a snapshot doesn't call it back.
  • What you type. Passwords and accounts you enter in the VM are exposed to whatever runs there. Use throwaway credentials.
  • Software that behaves differently in a VM. Some programs detect virtualization and act differently, so a clean result in a VM isn't proof of good behavior on real hardware.
  • Flaws in the virtualization layer. Hermitbox uses Apple's Virtualization framework, which is part of macOS. A VM is a strong boundary, not a perfect one. Keep your Mac up to date so you get Apple's security fixes.

A repeatable setup with a template

If you test software regularly, keep one clean, locked-down VM as a template and work in copies of it.

  1. Build and lock down the VM as described in "Set up a sandbox macOS VM and lock it down".
  2. Shut it down (⌘.).
  3. Choose Machine ▸ Use as Template. The box shows a lock badge: "Template · Starting it creates a copy".
  4. To run a test, start the template. Hermitbox creates a copy (named "NAME 2" in the current release) and you work in that. The template itself doesn't change.
  5. Before you run anything, check the copy's shared folders and clipboard settings.
  6. When you're done, select the copy and choose Machine ▸ Move to Trash… (⌘⌫, Command-Delete). Its disk and settings go to the Trash, so empty the Trash to get the space back.

To update the template (for example to install macOS updates), choose Use as Template again to turn it off, start the VM, update it, shut it down and turn Use as Template back on.

For a quick copy without making a template, Machine ▸ Clone (⌘D) makes an instant copy named "NAME copy" with a new identity and MAC address. The VM must be shut down or suspended first.

Common mistakes and fixes

  • "Two macOS VMs Are Already Running." Disposable runs and installers count toward Apple's limit. Shut one macOS VM down, then try again. Linux VMs don't count.
  • Take Snapshot or Suspend is unavailable. Check for the Disposable badge. If you're in a disposable run, end it, take a snapshot of the VM itself, and start a normal run.
  • A Linux disposable run vanished mid-install. The guest restarted itself, which stops the VM and discards the run. Use a snapshot for that installer.
  • The clipboard still works in a Linux VM after you turned it off. The change applies at the next start. Shut the VM down and start it again.
  • Hermitbox warns that a snapshot will be a full copy. The VM is on a non-APFS disk. Choose a folder on an APFS disk with Machine ▸ Move To…. To keep new VMs there too, change Settings ▸ General ▸ Library folder. Existing VMs stay where they are.
  • "Busy." A snapshot, clone or export is still running. Wait for it to finish, then try again.

If you want to test your own app across macOS versions next, follow How to Test Your Mac App on Older macOS Versions. Hermitbox is part of MacSuite; you can try it free for 7 days.

Every app.
One purchase.