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

Docs

Hermitbox docs29 pages

Hermitbox Shared Folders and Clipboard Sharing

Set up Hermitbox shared folders for macOS and Linux VMs: where folders appear, the Linux mount and fstab lines, and how clipboard sharing works per guest.

Updated 6 min read

On this page

This page shows you how to set up Hermitbox shared folders, where they appear inside macOS and Linux guests, and how clipboard sharing works for each type of guest.

Add Hermitbox shared folders to a VM

You can add folders from the inspector or from the VM's own window. The VM can be shut down or running.

  1. Select the VM on the shelf.
  2. In the inspector, go to the Shared Folders section. If you're in a VM window, click Sharing in the toolbar instead.
  3. Click Add Folder… and choose a folder in the Share panel.

You can also drag folders from Finder onto the list ("Drop folders here to share them.").

Hermitbox inspector Shared Folders section with Documents and Downloads, Downloads marked Read only
Shared folders, one of them read-only.

Each shared folder in the list has these controls:

ControlWhat it does
Read only checkboxShares the folder without write access
Make Read Only / Allow WritingSwitches between read-only and read-write
Show in FinderShows the folder on your Mac
Stop SharingRemoves the folder from the VM

If a shared folder has been moved or deleted on your Mac, Hermitbox flags it as missing in the list.

When folder changes take effect

Hermitbox gives each VM one virtio-fs share, and every folder you add goes into that share.

  • The VM started with at least one shared folder: adding and removing folders applies live.
  • The VM started with no shared folders: you see "Changes apply the next time it starts." Shut the VM down and start it again.

If you plan to share folders with a VM, add at least one before you start it. Folders you add later can then apply without stopping the VM.

Find shared folders in a macOS guest

Shared folders appear in My Shared Files in macOS 13 or later guests, at /Volumes/My Shared Files.

If that volume is missing and Hermitbox Guest is installed in the VM, Hermitbox Guest mounts the folders at ~/Hermitbox Shared instead. Choose Open Shared Folders from the Hermitbox Guest menu bar item in the VM to open them.

Mount shared folders in a Linux guest

Linux needs a mount command before it can see the folders. In the inspector's Shared Folders section, or the Sharing popover in the VM window, open the Mount in Linux disclosure. It has two copyable commands. With either one, each folder appears under /mnt/mac.

Mount now

Run this in a terminal inside the Linux VM. It creates /mnt/mac and mounts the share there until the VM shuts down:

bash
sudo mkdir -p /mnt/mac && sudo mount -t virtiofs hermitbox /mnt/mac

To unmount it again:

bash
sudo umount /mnt/mac

Mount at every start

The Mount at every start command appends this line to /etc/fstab, then mounts the share:

text
hermitbox /mnt/mac virtiofs rw,nofail 0 0

Copy the command from Mount in Linux and run it once. It appends, so running it a second time adds a duplicate line. The nofail option lets Linux keep booting if the share isn't there.

To undo it, delete that line from /etc/fstab with a text editor (for example sudo nano /etc/fstab), then run sudo umount /mnt/mac.

VMs created with Ready in a Minute already have the fstab line, so they don't need this step. See Linux ready in a minute.

Install Hermitbox Guest in a macOS VM

Hermitbox Guest is a small helper that runs inside macOS VMs. macOS guests need it for clipboard sharing. It also switches the VM between Light and Dark to match your Mac, and reports the VM's IP address and macOS version to Hermitbox. It needs macOS 13 or later in the guest.

  1. Start the macOS VM and sign in.
  2. Find the read-only disk named Hermitbox Guest on the VM's desktop and double-click to install.
  3. When asked "Install Hermitbox Guest?", click Install.

Hermitbox Guest then opens at login and adds a menu bar item inside the VM. That menu shows:

  • Connected to Hermitbox or Waiting for Hermitbox…
  • Clipboard Shared with Mac or Clipboard Not Shared
  • Match Mac Appearance, Keep Clock in Sync…, Open Shared Folders, Open at Login and Quit Hermitbox Guest

Once it's connected, the inspector shows a line such as "Hermitbox Guest 1.0 · 192.168.64.5 · macOS 15.2 (24C101)". If the inspector says "Install Hermitbox Guest from the disk on the VM's desktop to share the clipboard and match your Mac's appearance.", it isn't installed yet.

Inside the VM, macOS may ask for two things:

  • Automation (System Events): lets Hermitbox Guest switch between Light and Dark. Without it, the appearance isn't matched.
  • An administrator password, once: only if you choose Keep Clock in Sync…, which sets the VM's clock to your Mac's after it resumes.

Hermitbox Guest updates itself from the disk when Hermitbox ships a newer build. To remove it, choose Quit Hermitbox Guest from its menu, then move it from the VM's Applications folder to the Trash.

Clipboard sharing in macOS guests

With Hermitbox Guest installed, the clipboard works live in both directions.

What gets shared:

  • Plain text, rich text (RTF) and HTML
  • Images (PNG and TIFF)
  • Copied files (files only, not folders)
  • Up to about 48 MB per clipboard

Copies made in the VM reach your Mac only while that VM's window is the active window. So copy in the VM while its window is in front, then switch to your Mac app and paste.

To move a folder or anything over about 48 MB, use a shared folder. You can't drag files between your Mac and a VM window.

Clipboard sharing in Linux guests

Linux guests need spice-vdagent installed inside Linux. Hermitbox tells you when it's missing: "Needs spice-vdagent in Linux."

  1. Select the Linux VM and go to the inspector's Linux section.
  2. Open Set Up in Linux to see the install command for your distribution, and run it in a terminal in the VM.
  3. Make sure Clipboard sharing is on.
  4. Shut the VM down and start it again. A clipboard change in a Linux VM takes effect the next time it starts.

Most desktop installs already include spice-vdagent. Ready in a Minute VMs get it during first-boot setup when the distribution provides it.

What is never shared

  • Password-manager items: clipboard items your Mac marks as concealed or transient (the way password managers mark copied passwords) are never sent to a VM.
  • Background VM clipboards: a VM's clipboard reaches your Mac only while that VM's window is the active window.
  • Folders on the clipboard, and anything over about 48 MB.

Turn clipboard or folder sharing off

Clipboard sharing is a per-VM setting, on by default for new macOS and Linux VMs. You can change it in any of these places:

WhereLabel
VM window ▸ Sharing popoverClipboard
Inspector ▸ Linux (Linux VMs)Clipboard sharing
VM Settings ▸ SharingShare the clipboard

For Linux VMs, the change applies the next time the VM starts.

To stop sharing a folder, click Stop Sharing next to it. To keep the folder visible in the VM without letting the VM change it, use Make Read Only instead.

Hermitbox Sharing popover for Fedora 41: Network, the Clipboard switch on, and one shared folder, Documents
Network, clipboard and shared folders in one popover.

Troubleshooting

ProblemLikely causeFix
A newly added folder doesn't appear in the VMThe VM started with no shared foldersShut the VM down and start it again
/mnt/mac is empty in LinuxThe share isn't mountedRun the Mount now command, or use Mount at every start
Shared folders are missing in a macOS guestMy Shared Files didn't mountInstall Hermitbox Guest and use Open Shared Folders (~/Hermitbox Shared)
Clipboard does nothing in a macOS VMHermitbox Guest isn't installed or isn't connectedInstall it from the desktop disk and check that its menu says Connected to Hermitbox
Clipboard does nothing in Linuxspice-vdagent is missing, or the VM hasn't been started again since the changeInstall it using Set Up in Linux, then shut down and start the VM
A copy made in the VM doesn't reach the MacThe VM window wasn't activeBring the VM window to the front, copy again, then switch apps
A copied password doesn't paste in the VMPassword managers mark copies as concealedType it in the VM
A large file or a folder won't pasteOver about 48 MB, or it's a folderUse a shared folder
Suspend is unavailable: "Turn off clipboard sharing to suspend this VM on this version of macOS."On some macOS versions, a Linux VM with clipboard sharing can't be suspendedTurn off Clipboard sharing (applies at next start), or shut down instead of suspending

For more copy-and-paste fixes, see Copy and Paste Not Working in a Mac VM.

Every app.
One purchase.