How to Run a Virtual Machine on a Mac (Apple Silicon & Intel)
What your Mac can run in a virtual machine, how much memory and CPU to give one, and step-by-step setup for your first macOS or Linux VM on a Mac.
GuideUpdated 12 min read
On this page
To run a virtual machine (VM) on a Mac, you install a VM app (macOS doesn't include one), create a VM from an installer or disk image, and start it in a window. On an Apple silicon Mac, a VM runs ARM (arm64) systems: macOS (up to two VMs at once), ARM Linux, and Windows 11 on Arm in apps that support Windows. As a starting point, give a VM at most half your Mac's memory and one fewer core than your Mac has.
What a virtual machine is, and what a Mac can run in one
A virtual machine is a complete computer simulated in software. It runs its own operating system (the "guest") on your Mac (the "host"). Its disk is a large file or package on your Mac, and it gets the share of memory and processor cores that you choose. The guest can't see your Mac's files unless you share a folder with it. A crash or bad update inside the guest doesn't touch macOS on your Mac.
People usually run a VM for one of these jobs:
- testing an app on older macOS versions
- running Linux tools or servers
- trying software you don't trust
- running Windows programs
macOS has no built-in VM app. It does include Apple's Virtualization framework, which apps such as Hermitbox and UTM use to run VMs. Apple's Virtualization Framework, Explained covers how that layer works.
Apple silicon vs Intel: which systems work
Your Mac's processor decides what a VM can run. To check which one you have, choose Apple menu ▸ About This Mac. A Chip line (Apple M1, M2 and so on) means Apple silicon. A Processor line that names Intel means an Intel Mac.
| Guest system | Apple silicon Mac | Intel Mac |
|---|---|---|
| macOS | Yes, up to two macOS VMs at a time | Not with Apple's Virtualization framework |
| ARM (arm64) Linux | Yes | Only by emulation |
| Intel (x86-64) Linux | Only by emulation, which is slower. Single x86-64 programs can run inside an ARM Linux VM with Rosetta | Yes |
| Windows | Windows 11 on Arm, in apps that support Windows | x86-64 Windows, in apps that support it |
What this means in practice:
- Match the architecture. On Apple silicon, download the ARM64 (aarch64) edition of a Linux distribution. An x86-64 ISO won't boot in a native VM. It needs an app that emulates an Intel processor, which is slower.
- Rosetta runs programs, not whole systems. If you need one x86-64 Linux tool, run it inside an ARM Linux VM with Rosetta. Run x86-64 Linux Programs on Apple Silicon with Rosetta shows how.
- Apple limits you to two macOS VMs at a time. Linux VMs don't count toward the limit. Why you can only run two macOS VMs at once explains why.
- On Intel Macs, Hermitbox can't help much. It's built around Apple silicon: its macOS VMs need Apple silicon, and every Linux image in its gallery is arm64. Compare the other options in Best Virtual Machine Software for Mac. If you're considering VirtualBox, see Does VirtualBox Work on Apple Silicon Macs?
How much memory, CPU and disk to give a VM
Hermitbox uses these rules to size a new VM. They make a sensible starting point in any VM app:
- Memory: at most half your Mac's RAM, and always leave at least 2 GB for macOS.
- Cores: at most one fewer than your Mac has. A VM on an 8-core Mac should get 7 at most.
- Disk: no more than your free space minus 10 GB.
| Your Mac's memory | Most a VM should get | macOS VM | Linux VM |
|---|---|---|---|
| 8 GB | 4 GB | 4 GB (the minimum) | 4 GB |
| 16 GB | 8 GB | 8 GB | 4 GB |
| 32 GB | 16 GB | 8 GB, more for heavy work | 4 GB |
Minimums and suggested sizes:
| Guest | Minimum memory | Minimum disk | Suggested |
|---|---|---|---|
| macOS | 4 GB | 64 GB | 4 cores, 8 GB, 80 GB |
| Linux | 1 GB | 16 GB | 2 cores, 4 GB, 32 GB |
If you run two VMs at once, add their memory together and keep the total within what your Mac can spare.
A large disk number doesn't mean that much space is used right away. Hermitbox disks are sparse, so an 80 GB disk only uses as much space as the guest has written. You still need extra room beyond that. Hermitbox keeps downloaded macOS restore images and Linux installers for reuse, and suspending a VM needs free space of about its memory plus 2 GB.
You can change cores, memory and disk later in VM Settings ▸ Hardware while the VM is shut down. Disks can only grow. After you grow one, extend the partition inside the VM to use the new space.
Which virtual machine app to use on a Mac
We make Hermitbox, so weigh our view accordingly; we've tried to be fair to every app here. Prices and details are as of November 2026.
| App | Strongest at | Price model | Main trade-off |
|---|---|---|---|
| Parallels Desktop | Windows 11 on Apple silicon, Coherence mode, drag and drop between Mac and VM | Yearly subscription (Standard, Pro, Business) | Standard edition is capped at 8 GB of VM memory and 4 virtual CPUs |
| UTM | Windows, Linux, macOS and older systems, including emulated ones | Free (the paid Mac App Store copy supports the project) | Emulated systems are slower. On the Apple Virtualization backend, snapshots and disposable runs need macOS 27 |
| Hermitbox | macOS test machines and Linux, with snapshots, clones, throwaway runs, a CLI and Shortcuts | Part of MacSuite, $349 one-time | Windows 11 on Arm only, no USB device passthrough, NAT networking only |
How to choose:
- Pick Parallels Desktop if you need Windows apps every day. Parallels describes itself as the only Microsoft-authorized way to run Windows 11 on Apple silicon. It also routes USB devices to the VM and supports DirectX 11. The Pro edition adds the
prlctlcommand-line tool and developer features such as Vagrant support. - Pick UTM if you want a free app, or you need Windows, Intel or older systems through emulation. It also has a
utmctlCLI, AppleScript support, USB passthrough and a gallery of prebuilt VMs. - Pick Hermitbox if you mainly run macOS versions and Linux on Apple silicon. You get APFS snapshots, Linux servers ready in about a minute, automation, and a menu bar item for VMs running in the background. It's a one-time purchase, with no 4-core or 8 GB cap.
VMware Fusion is another Mac VM app. As of November 2026 we couldn't confirm its pricing or license terms from an official source, so check Broadcom's VMware site before you choose it. VMware Fusion Alternatives and UTM vs Parallels compare the apps in more depth.
The steps below use Hermitbox, which needs macOS 14 Sonoma or later on your Mac.
Create a macOS VM step by step
Before you start, check two things:
- You have an Apple silicon Mac.
- Fewer than two macOS VMs are running.
Hermitbox runs macOS 13 and later as guests.
- In Hermitbox, choose File ▸ New VM… (⌘N, Command-N), or click + in the toolbar.
- Select the macOS card and click Continue.
- Under How would you like to install macOS?, choose one option:
- Latest macOS (marked Recommended) gets the newest version your Mac supports from Apple.
- Choose a Version… lists older releases, with the newest build of each major version.
- Use an IPSW File… uses a restore image you already have. You can also drop an
.ipswfile on the sheet.
- Click Continue.
- On Name and Size, type a Name and check the Cores, Memory and Disk sliders. If you moved a slider, Use Recommended restores the size fitted to your Mac.
- Click Create. Hermitbox downloads the image, checks it and installs macOS.
- When the VM starts in macOS Setup Assistant, complete it in the VM window as you would on a new Mac.
- In the VM, double-click the Hermitbox Guest disk on the desktop and click Install. Hermitbox Guest shares the clipboard with your Mac and follows your Mac's Light or Dark appearance.


Hermitbox's own estimate is about 10 minutes for a macOS VM. The download is most of that time.
If the download is interrupted, it resumes after you quit and reopen Hermitbox. If the install fails, Hermitbox keeps the downloaded image, so Try Again doesn't download it again.
You may see "Needs a newer macOS on this Mac or Apple's device support files." That means the version is newer than your Mac's macOS. Pick an older version, or update your Mac first.
To type in the VM, click inside it. While the VM has the keyboard, ⌘ shortcuts and ⌘Tab go to the guest. To give the keyboard back to your Mac, press and release ⌃⌥ (Control-Option).
For more on versions and the download cache, see Create a macOS virtual machine and How to Create a macOS Virtual Machine on Your Mac.
Create a Linux VM in about a minute
The fastest route skips the installer. Hermitbox's Ready in a Minute option downloads the vendor's ARM cloud image and verifies its checksum. On first boot it sets up your user, password and SSH keys.
- Choose File ▸ New VM… (⌘N), select Linux and click Continue.
- Under Ready in a Minute, pick Ubuntu Server 26.04 LTS, Debian 13 or Fedora Cloud 45, then click Continue.
- On Name and Size, check the name and sizes. User defaults to your Mac's short user name.
- Set a Password. It's optional if you have SSH public keys in
~/.ssh(files namedid_*.pub). Otherwise it's required. - Turn on Allow SSH with this Mac's key(s) if you want to log in with your SSH key.
- Turn on Add a desktop only if you want a graphical desktop. It installs on first start, so that first start takes a few minutes longer.
- Click Create.
- Start the VM: double-click its box, or select it and press ⌘R (Command-R).
- Wait until the inspector's Connect section shows an IP Address.
- Choose Open SSH ▸ Open in Terminal. To paste the command yourself instead, choose Copy SSH Command.
You can also install Linux from an installer ISO. The Installers gallery on the same screen offers these arm64 distributions:
- Ubuntu Desktop
- Ubuntu Server
- Fedora Workstation
- Debian
- Kali
- Alpine
- Rocky Linux
- openSUSE
Hermitbox checks gallery downloads against the vendor's checksum list. Other ISO File… and From URL… take any other arm64 ISO, but Hermitbox doesn't checksum those.
When setup finishes and the VM reboots, Hermitbox asks Finished Installing?. Click Eject and Start so the VM starts from its own disk.
If Rosetta is installed on your Mac, Hermitbox turns it on for new Linux VMs so they can run x86-64 Linux programs. Ready in a Minute VMs are set up for Rosetta automatically. ISO installs need a few commands inside Linux, which the inspector shows under Set Up in Linux.
Linux ready in a minute and How to Run Linux on a Mac cover Linux VMs in more detail.
Share files and the clipboard with the VM
Hermitbox doesn't support dragging files between Finder and a VM window. Use shared folders to move files, and clipboard sharing for quick copies.
Shared folders
- Select the VM. In the inspector, open Shared Folders, or click Sharing in the VM window's toolbar.
- Click Add Folder…, or drop a folder from Finder onto the list.
- If the VM shouldn't be able to change the folder, tick Read only.
Where the folders show up depends on the guest:
- macOS guests: shared folders appear in My Shared Files (needs macOS 13 or later in the VM).
- Ready in a Minute Linux VMs: they're already mounted under
/mnt/mac. - Linux VMs installed from an ISO: run this command inside Linux to mount them:
sudo mkdir -p /mnt/mac && sudo mount -t virtiofs hermitbox /mnt/macThis creates /mnt/mac and mounts your shared folders there until the VM shuts down. To unmount them, run sudo umount /mnt/mac. To mount them at every start, use the copyable "Mount at every start" command in Hermitbox, which adds the mount to /etc/fstab.
If the VM started with no shared folders, any folder you add applies the next time it starts.
Clipboard
Clipboard sharing is on by default for new macOS and Linux VMs.
- macOS guests need Hermitbox Guest installed. Text, rich text, images and copied files (not folders) go both ways, up to about 48 MB. Copying from the VM to your Mac works only while that VM's window is the active window. Items that password managers mark as concealed are never shared.
- Linux guests need
spice-vdagent. Most desktop installs already include it. For others, Hermitbox shows the install command for your distribution under Set Up in Linux. After you install it, restart the VM.
If paste still fails, see Copy and Paste Not Working in a Mac VM.
Use snapshots to undo mistakes
A snapshot saves the VM's state, so you can roll back after a bad update or a risky install.
In Hermitbox, snapshots are APFS clones. They're instant and take no space until the VM changes. On a disk that isn't APFS they're full copies, and Hermitbox asks before taking one. The default library folder is on your startup disk, which uses APFS.
To take a snapshot and roll back:
- Select the VM and choose Machine ▸ Take Snapshot (⇧⌘S, Shift-Command-S), or click Take Snapshot in the VM window. If the VM is running, it pauses briefly.
- To roll back, open the inspector's Snapshots tab, click the snapshot's ⋯ menu and choose Restore….
- Leave Snapshot the current state first on, so you can return to where you were.
To take snapshots automatically, tick Before each start in the Snapshots tab and choose how many to keep (1 to 20; the default is 3). This needs an APFS disk.
For one-off experiments, choose Machine ▸ Run Without Saving Changes (⌥⌘R, Option-Command-R). The VM runs as a throwaway copy with a "Disposable" badge. Everything that changed is discarded when it stops. Snapshots, clones, templates and throwaway runs covers these options in more detail.
If it doesn't work
| What you see | Why | Fix |
|---|---|---|
| "Two macOS VMs Are Already Running" | Apple allows two macOS VMs at a time, and throwaway runs count | Shut one down with Machine ▸ Shut Down (⌘., Command-Period), then try again. Linux VMs don't count. |
| "This macOS Can't Run Here Yet" | The restore image is newer than your Mac's macOS | Update your Mac, or pick an older release under Choose a Version…. |
| "These Settings Won't Work" | The VM asks for more cores or memory than this Mac can give | Shut the VM down. Open VM Settings… (⌥⌘,) ▸ Hardware and lower Cores or Memory. |
| "Disk Full" or "Not Enough Space to Suspend" | The disk that holds your VMs is nearly full | Free up space. Or open Downloads in the sidebar and click Remove Unused… to delete images no VM uses. |
| Mac shortcuts do nothing | The VM has the keyboard | Press and release ⌃⌥ (Control-Option). |
| Copy and paste doesn't work between Mac and VM | Hermitbox Guest isn't installed (macOS), spice-vdagent is missing (Linux), or clipboard sharing is off | Install the missing piece in the VM, check the Clipboard switch under Sharing, then restart a Linux VM. |
Troubleshooting lists every message Hermitbox can show.
FAQ
Can I run Windows in a VM on an Apple silicon Mac? Yes, in an app that supports Windows. Parallels Desktop runs Windows 11 on Apple silicon, and UTM also runs Windows. Hermitbox runs Windows 11 on Arm from your own ISO, since version 1.2.0.
Does a running VM slow down my Mac? A running VM can use up to the cores and memory you gave it. Pause (⌘P, Command-P) freezes it in memory. Suspend saves its state to disk and stops it, and the next start picks up where you left off. In Hermitbox, the When Idle setting in the inspector can pause or suspend a VM automatically. Running VMs also pause when your Mac sleeps.
Is a VM a safe place to test risky software? A VM can't read your Mac's files unless you share a folder, so turn off shared folders and clipboard sharing before you test untrusted software. The VM still reaches the internet through your Mac's network. Use a throwaway run or a snapshot so you can discard whatever the software changed.
Hermitbox is part of MacSuite; you can try it free for 7 days.