The Number of Virtual Machines Exceeds the Limit on macOS: Fix
Fix "The number of virtual machines exceeds the limit" on a Mac: why only two macOS VMs run at once, how to free a slot, and what to try when it sticks.
TroubleshootingUpdated 6 min read
On this page
You start a macOS VM and get this: "The number of virtual machines exceeds the limit. The maximum supported number of active virtual machines has been reached." Some apps shorten it to "The number of VMs exceeds the system limit". Often you have one VM open, or none.
In Hermitbox the same limit appears as an alert titled Two macOS VMs Are Already Running: "macOS allows only two macOS VMs at a time. Shut one down, then try again."
Why the limit error appears
Most common first:
- Two macOS VMs really are running. The limit is Apple's, not a Hermitbox setting. Apps built on the framework, such as UTM, Tart and Hermitbox, show the same error.
- A VM is running that you can't see. Closing a VM's window doesn't always stop it. In Hermitbox a VM can keep running with no window, and a throwaway run started with Run Without Saving Changes counts toward the two macOS VMs.
- The count didn't drop after a shutdown. People on the UTM and Tart issue trackers report that a third start fails even after a clean guest shutdown. One Tart report describes it after starting and stopping the same guest a couple of times. We don't know the cause, so treat any explanation as unconfirmed.
- Another VM app may hold a slot. If you also run macOS guests in UTM or Tart, one of them may still be running. We can't say how the count is shared between apps, so rule it out.
Linux guests don't count toward the two macOS slots. Hermitbox words its separate limit for other guests as Too Many VMs Running: "This Mac can't start another VM right now. Shut one down, then try again."
Step-by-step fixes
Fix 1: Shut down or suspend the other macOS VM
Use this when you know two macOS VMs are running.
- In Hermitbox, click Running under Library in the sidebar.
- Select the macOS VM you don't need right now.
- Choose Machine ▸ Shut Down (⌘.).
- Or choose Machine ▸ Suspend to pick up later. Suspend saves the VM's state to disk and stops it, and the next Start resumes it.
- Start the VM you wanted.
Per the Hermitbox documentation, Suspend first checks free space of about the VM's RAM plus 2 GB. If there isn't enough, you get Not Enough Space to Suspend. Disposable runs can't be suspended. They show a Disposable badge and an amber border, and shutting one down asks "Stop and Discard Changes?" because everything that changed since it started is thrown away.
Fix 2: Find the VM you forgot is running
Use this when the library looks idle but the alert persists. By default Hermitbox asks what to do when you close a running VM's window. If you chose Keep Running, ticked Remember my choice, or turned on Keep running when its window closes for that VM, it runs with no window.
- Menu bar. The Hermitbox menu bar item lists VMs with running ones first. Each VM's submenu has Open Window, Shut Down and Suspend.
- Dock badge. The number on the Dock icon is the count of active VMs.
- Command line. If you installed the tool under Settings ▸ Advanced ▸ Command line tool, list your VMs and their states:
hermitbox list
hermitbox stop "VM name"list shows your VMs and states. stop asks the named VM to shut down. Names are case-insensitive and a unique prefix is enough. Add --force only if the guest won't shut down, because that pulls the plug.
You can also quit Hermitbox. With VMs running, Quit offers Suspend All or Shut Down All. A VM is force stopped only if you choose Force Stop and Quit after a guest fails to shut down within 90 seconds.
Fix 3: Force quit a leftover "Virtual Machine Service" process
Use this when every VM is shut down or suspended, Hermitbox shows none running, and the error persists. Whether a leftover process is behind the stuck count is unconfirmed, but it is cheap to check.
- Shut down or suspend every VM, then quit the app that ran them (Hermitbox ▸ Quit Hermitbox). Quit other VM apps such as UTM or Tart too.
- Open Activity Monitor (Spotlight finds it).
- Type
Virtual Machine Servicein the search field. - If a process is listed while no VM runs, select it.
- Click the stop button (X) in the toolbar, then click Force Quit.
- Start your VM again.
If no such process exists, go to Fix 4.
Fix 4: Restart the Mac
Some people on the issue trackers report that a restart clears a count that stayed taken after a clean shutdown. We can't promise it will. It is the last resort because it closes everything else you have open. Suspend or shut down your VMs first, then choose Apple menu ▸ Restart and start one macOS VM.
Cause, symptom and fix at a glance
| Cause | What you see | Fix |
|---|---|---|
| Two macOS VMs running | Alert, and two macOS VMs are running | Fix 1 |
| Window-less or background VM | Library looks idle, menu bar lists a running VM | Fix 2 |
| Disposable run | A Disposable badge on a running VM | Shut it down (Fix 1) |
| Other VM app (UTM, Tart) | Hermitbox shows fewer than two | Quit that app |
| Stuck count after shutdown | Nothing running, error stays | Fix 3, then Fix 4 |
| Too many non-macOS VMs | Too Many VMs Running alert | Shut one down |
Checklist before you try again
- No more than one other macOS VM is running (check Running, the menu bar and
hermitbox list). - No disposable run is open.
- Other VM apps are quit.
- No
Virtual Machine Serviceprocess remains in Activity Monitor when nothing is running. - If all of that is true and the error persists, restart the Mac.
What Hermitbox does and doesn't do here
Hermitbox names the limit in plain words instead of showing a framework error. It also makes running VMs easy to find: the Running filter, the menu bar list, the Dock badge and hermitbox list.
It does not fix a count that stays stuck after a clean shutdown, and we haven't tested for it. The published alert also has only an OK button, so it won't stop another VM for you. The Hermitbox guide covers the limit too. Hermitbox is part of MacSuite, and you can try it free for 7 days.
If nothing works
If the error returns after a restart with only one macOS VM running and no other VM app open, contact Apple Support, since the limit is enforced by macOS. If Hermitbox shows the alert while fewer than two macOS VMs are running, contact MacSuite support. Include:
- Your Mac model and macOS version
- The exact error text and when it appeared
- Which VMs you had started (macOS, Linux, disposable)
- Whether
Virtual Machine Servicewas listed in Activity Monitor - The steps you already tried
Subject: Hermitbox says two macOS VMs are running, but they aren't
Mac model: (your model)
macOS version: (your version)
Hermitbox version: (your version)
Error: "Two macOS VMs Are Already Running"
What I started before the error: (VMs and order)
Running filter / menu bar / hermitbox list show: (what you see)
Virtual Machine Service in Activity Monitor: (yes/no)
Already tried: shut down VMs, force quit process, restartCommon questions
Do Linux VMs count toward the two-VM limit?
No. The two-slot limit is for macOS guests. Other guests have a separate framework limit, and Hermitbox shows Too Many VMs Running if you reach it.
Can I get around the limit?
No. It comes from Apple's Virtualization framework, not from a Hermitbox setting. To work with more than two macOS VMs, suspend or shut down the ones you aren't using.
Does suspending free a slot?
Yes. A suspended VM is stopped, with its state saved to disk. A paused VM is only frozen in memory, so don't count on Pause to free a slot.
Why does it fail with nothing running?
Either a VM is running without a window, or the count didn't release after a shutdown. Work through Fix 2, then Fix 3 and Fix 4. For more alerts, see Hermitbox troubleshooting and Start, pause, suspend and shut down.