VZErrorDomain Code=1 "The virtual machine failed to start"
Fix VZErrorDomain Code=1 "The virtual machine failed to start" (Internal Virtualization error): GUI login, two-VM limit, same user, and host/guest versions.
TroubleshootingUpdated 6 min read
On this page
You tried to start a VM and got this:
Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}
Error Domain=VZErrorDomain Code=6 "The maximum suppThe second line is cut off in the report we worked from. It is the Code=6 "maximum supported number of active virtual machines" error, covered in Fix 2.
Why it happens
VZErrorDomain is the error domain of Apple's Virtualization framework, the layer that tools such as Tart, UTM, VirtualBuddy and Hermitbox use to boot VMs. Apple documents the internal error case only as "An internal error occurred." So the message tells you the failure happened below the app, not why.
Causes reported for this exact message, most common first:
- No logged-in desktop session. Reports on Tart's issue tracker (three threads, the latest from October 2025) describe headless Mac minis and EC2
mac2.metalhosts with no GUI login. VMs created on Sonoma started, but Sequoia and Tahoe images failed. The suspect is a prompt only a desktop session can show, such as Local Network. This is a suspicion, not a confirmed root cause. - Too many macOS VMs. Apple allows only two macOS VMs at a time, and the failure can show up as Code=6 on the same host.
- Wrong user. The reports say starting the VM as the user who created it fixed it. We don't know the mechanism.
- Host and guest mismatch. One person saw the error after upgrading a host from macOS 13 to 14.
- Unrelated Code=1 cases. People on Apple's developer forum report the same Code=1 text when a Linux kernel image was in the wrong (compressed) format, and Code=1 "Installation failed" while installing macOS. If you boot a Linux kernel directly, check the image format.
Fixes, most likely first
Fix 1: Log in to the GUI once and approve prompts
Symptom: the VM starts when you sit at the Mac, but fails over SSH or on a machine nobody has logged in to.
- Open the Mac's desktop. Attach a display, or use Screen Sharing if it is already enabled.
- Log in as the user that will run the VM and stay logged in.
- Start the VM from that session.
- Approve any macOS permission prompt that appears.
- If you suspect Local Network, open System Settings, search for "Local Network", and make sure your VM tool is switched on. Not every app has an entry there.
- Retry from SSH or your automation while the desktop session is still logged in.
Fix 2: Keep macOS VMs at two or fewer
Symptom: the error appears when you start a second or third macOS VM, or Code=6 appears alongside Code=1.
Apple's license limits macOS guests to two at a time, and Linux VMs don't count. Our guide on why you can only run two macOS VMs at once has the detail.
- List running VMs in your tool. A VM can keep running with no window, so don't go by what you see on screen.
- Count installers and throwaway runs as well. In Hermitbox, both count toward the two.
- Shut one down, then start the one you want.
- If nothing is running and Code=6 still appears, restart the Mac. A developer on Apple's forums reports a kernel slot not being released after a guest-initiated shutdown, so the limit looks hit with no VM running. That is one report, and Apple had not resolved it in what we found.
Fix 3: Start the VM as the user who created it
Symptom: the VM works from one account and fails from another, or from a CI service account.
Log in as the account that created the VM and start it there. Reports say this fixed it. If it works, create the VM under the account that will run it from now on.
Fix 4: Compare host and guest versions
Symptom: older guests boot and newer ones fail, or it broke right after a host upgrade.
Update the host to the latest macOS it supports. A guest image newer than the host can fail to start. As a test, try an older guest image in the same session. If the old one starts and the new one doesn't, suspect the version gap. If the new one starts from the desktop but not over SSH, go back to Fix 1.
Quick reference
| Situation | Likely cause | First thing to try |
|---|---|---|
| Works at the desk, fails over SSH | No GUI session or unapproved prompt | Fix 1 |
| Fails on the third VM, or with Code=6 | Two-macOS-VM limit | Fix 2 |
| Works for one account only | Different user than the creator | Fix 3 |
| Fails after a host upgrade or only with new images | Host/guest version gap | Fix 4 |
| Linux kernel boot fails | Kernel image format | Use an uncompressed kernel |
Checklist before you try again
- Someone is logged in to the desktop as the user who will run the VM.
- You started the VM once from that session and approved every prompt.
- At most two macOS VMs are running, counting installers and throwaway runs.
- The VM is started by the user who created it.
- The host macOS is at least as new as the guest image requires.
- There is free disk space for the VM.
What Hermitbox covers
Hermitbox uses the same Virtualization framework, but we have no documented case of this Code=1 message in it, and it doesn't solve the headless case. It is a windowed Mac app, so it expects a logged-in desktop. Our notes don't say whether macOS shows a Local Network prompt for it, so we can't claim it avoids that.
It does name the neighboring problems in plain words:
- "Two macOS VMs Are Already Running": "macOS allows only two macOS VMs at a time. Shut one down, then try again." The Running filter in the sidebar shows which are active.
- "These Settings Won't Work": lower cores or memory in VM Settings > Hardware.
- "Needs a newer macOS on this Mac or Apple's device support files": the host is too old for that image.
Once Hermitbox is open, a VM can run without a window. Turn on Keep running when its window closes in VM Settings > General, or run hermitbox start NAME --headless. The CLI opens Hermitbox in the background if needed, but it can't create VMs. See automating Hermitbox, the troubleshooting page and the Hermitbox page. Hermitbox is part of MacSuite and needs macOS 14 or later; macOS VMs need Apple silicon.
If nothing works
Report it to the developer of your VM tool, and to Apple through Feedback Assistant if you can reproduce it. Apple lists the framework's error codes in its VZError.Code documentation. Include the full error text, the host Mac model and macOS version, the guest macOS version, whether anyone was logged in to the desktop, which user created and started the VM, and how many macOS VMs were running.
Subject: VZErrorDomain Code=1 "The virtual machine failed to start"
Host: <Mac model>, macOS <version>
Guest: macOS <version>
Tool and version: <name and version>
Desktop session logged in when it failed: yes/no
User that created the VM / user that started it: <same or different>
macOS VMs running at the time: <number>
Full error text:
<paste both Code=1 and any Code=6 lines>
Already tried: logged in to the GUI and approved prompts, shut down other VMs, started as the creating user.
Does the same VM start from a desktop session? yes/noCommon questions
Does Code=1 always mean a Local Network prompt is the problem?
No. Code=1 is generic. Local Network is a suspect only in the headless Tart reports, and the other causes above produce the same text.
Can I fix this over SSH alone?
Probably not if the cause is a desktop-only prompt. Log in at the desktop once, approve the prompt, then retry remotely. The reports describe that as the working route.
Is the two-VM limit a bug?
No. Apple's license sets it for macOS guests, and Linux VMs don't count toward it.
Why does Code=6 appear when nothing seems to be running?
A leftover headless VM is the usual reason, so check for VMs without windows. One developer also reports a slot not being freed after a guest shutdown. A host restart clears the count in that case.