Copy and Paste Not Working in a Mac VM? Fix It
Fix copy and paste between your Mac and a VM: turn on clipboard sharing, install Hermitbox Guest or spice-vdagent, and learn what never crosses over.
TroubleshootingUpdated 7 min read
On this page
When copy and paste doesn't work between your Mac and a virtual machine in Hermitbox, there are two usual causes. In a macOS VM, Hermitbox Guest isn't installed: open the Hermitbox Guest disk on the VM's desktop and install it. In a Linux VM, spice-vdagent isn't installed, or the VM hasn't been shut down and started again since you installed it or turned clipboard sharing on.
Copy and paste not working in a virtual machine: find the cause
| What you see | Likely cause | Fix |
|---|---|---|
| Nothing crosses in either direction (any VM) | Clipboard sharing is off for this VM | Turn on the clipboard switch |
| Nothing crosses in either direction (macOS VM) | Hermitbox Guest isn't installed or isn't connected | Install it from the disk on the VM's desktop |
| Nothing crosses in either direction (Linux VM) | spice-vdagent is missing, or the VM hasn't started fresh since you set it up | Install it, then shut down and start the VM |
| Mac to VM works, VM to Mac doesn't | The VM's window wasn't the active window when you copied | Copy inside the VM with its window in front |
| Paste does nothing inside Linux | Wrong shortcut for Linux | Use Ctrl+V, or Ctrl+Shift+V in a terminal |
| One item won't cross, everything else does | It's a password, a folder or too large | Expected. Use a shared folder for files |
First check: is clipboard sharing on for this VM?
Symptom: nothing crosses between the Mac and the VM, in either direction.
Why: clipboard sharing is a per-VM switch. It is on by default for new macOS and Linux VMs, so if it's off, it was turned off at some point. One common reason: on some macOS versions, a Linux VM with clipboard sharing on can't be suspended, and Hermitbox tells you "Turn off clipboard sharing to suspend this VM on this version of macOS." If you turned it off for that, it stays off.
Fix: turn the switch on in any of these places:
- In the VM window, click Sharing in the toolbar and turn on Clipboard.
- In the library window's inspector, under Linux, turn on Clipboard sharing (Linux VMs).
- Choose Machine ▸ VM Settings… (⌥⌘,, Option-Command-Comma), open Sharing, turn on Share the clipboard and click Save.
In a Linux VM the change takes effect the next time the VM starts, so shut it down and start it again (see the Linux section).


macOS VM: install Hermitbox Guest and check that it's connected
Symptom: clipboard sharing is on, but nothing crosses to or from a macOS VM.
Why: in a macOS VM, the clipboard is shared through Hermitbox Guest, a small helper that runs inside the VM. Without it, nothing on the VM side sends or receives. The clipboard switch's caption says "Needs Hermitbox Guest in the VM.", and the inspector shows "Install Hermitbox Guest from the disk on the VM's desktop to share the clipboard and match your Mac's appearance." while it's missing.
Fix:
- Start the macOS VM and log in.
- On the VM's desktop, open the read-only Hermitbox Guest disk and double-click Hermitbox Guest.
- When asked "Install Hermitbox Guest?", click Install.
- In the VM's menu bar, click the Hermitbox Guest icon. It should say Connected to Hermitbox.
- Make sure Open at Login is checked in that menu, so the helper runs every time the VM starts.
To confirm from the Mac side, select the VM in the library. Once the helper is connected, the inspector shows a line such as "Hermitbox Guest 1.0 · 192.168.64.5 · macOS 15.2 (24C101)".
If the menu says "Waiting for Hermitbox…": the helper is installed but hasn't connected. Choose Quit Hermitbox Guest from its menu, then open it again from the Applications folder inside the VM. If it still waits, shut down the VM (Machine ▸ Shut Down, ⌘., Command-Period) and start it again (⌘R, Command-R).
If the menu says "Clipboard Not Shared": the helper is connected, but the clipboard isn't being shared with this VM. Check the clipboard switch as described in the first section.
To set up a new macOS VM from scratch, see how to create a macOS virtual machine.
Linux VM: install spice-vdagent, then shut down and start again
Symptom: clipboard sharing is on, but nothing crosses to or from a Linux VM.
Why: in Linux, the clipboard is shared through spice-vdagent, a standard Linux package. Hermitbox can't share anything until it is installed and running in the guest. Most desktop installs already include it; server and minimal installs may not. Linux also only picks up clipboard sharing when the VM starts.
Fix:
Select the VM in the library. In the inspector's Linux section, open Set Up in Linux for clipboard sharing. Hermitbox shows the install command for your distribution.
Run that command in a terminal inside the VM. For the two most common families it looks like this.
Debian and Ubuntu (installs the package with apt):
bash sudo apt install spice-vdagentFedora (installs the package with dnf):
bash sudo dnf install spice-vdagentTo undo either one later, run the same command with
removein place ofinstall.Shut down the VM with Machine ▸ Shut Down (⌘.).
Start it again with Machine ▸ Start (⌘R).
If you restart from inside Linux instead, the VM stops rather than restarting (a limit of Apple's Virtualization framework). That's normal: start it again from Hermitbox.
To check that the agent is running after the restart, open a terminal in the VM and run:
pgrep -a spice-vdagentThis lists any running spice-vdagent processes. If it prints nothing, the agent isn't running, so check that the package installed without errors.
VMs made with Ready in a Minute install spice-vdagent on first boot where the distribution provides it. These start as server systems, so if the clipboard doesn't work in one, check the first section and the text-only case below. See Linux ready in a minute for the setup options.
For a full Ubuntu walkthrough, see how to run an Ubuntu VM on a Mac.
Use the guest's own copy and paste keys
Symptom: you copied on the Mac, but the paste shortcut inside the VM does nothing.
Why: when you click into a VM, it takes the keyboard, and ⌘ shortcuts go to the VM instead of the Mac. Linux apps don't use ⌘ for copy and paste.
Fix:
- macOS VM: click inside the VM, then use ⌘C and ⌘V as usual.
- Linux VM: click inside the VM, then use Ctrl+C and Ctrl+V in most apps, or Ctrl+Shift+C and Ctrl+Shift+V in most terminal apps.
- Back on the Mac: if the VM still has the keyboard, press and release ⌃⌥ (Control-Option) to release it. Hermitbox shows "Keyboard released · Click the VM to capture it". Then switch to your Mac app and paste with ⌘V.
Setups where the clipboard can't be shared
Some Linux VMs have no clipboard for Hermitbox to connect to:
- Linux without a desktop.
spice-vdagentshares the clipboard of a graphical desktop session. A server VM with only a text login has none. Two workarounds:- Connect over SSH from a Mac terminal, where normal Mac copy and paste works. In the inspector's Connect section, choose Open SSH ▸ Open in Terminal.
- For text you need to type at a login prompt, open the serial console with Machine ▸ Show Console, where ⌘V pastes into the VM. If it says "No Serial Console", click Attach Serial Console and restart the VM. A VM with a serial console attached can't be suspended.
- Linux where
spice-vdagentisn't packaged. Clipboard sharing can't work there. Use SSH or a shared folder. - Files to or from Linux. Copying files through the clipboard works with macOS VMs only. For Linux, use a shared folder.
Why some items never cross over
Symptom: most things copy fine, but one particular item never arrives.
Why: these limits are deliberate:
- Passwords and other sensitive items. Password managers mark what they copy as concealed or transient, and Hermitbox never sends those items to a VM. A password copied on the Mac won't paste inside the VM, so type it there instead.
- Folders. With macOS VMs, copied files cross over, but folders don't. Compress the folder into a single file first, or use a shared folder.
- Large items. With macOS VMs, a clipboard larger than about 48 MB isn't shared. Move big files and images through a shared folder.
- Other kinds of data. With macOS VMs, Hermitbox shares plain text, rich text (RTF), HTML, images (PNG and TIFF) and files. If the app you copied from offers its data only in another format, it may not arrive.


Copying from the VM: keep its window in front
Symptom: copying from the Mac into the VM works, but copying from the VM to the Mac doesn't.
Why: a VM's clipboard is applied on the Mac only while that VM's window is the active window, so a VM you aren't looking at can't replace what's on your Mac's clipboard. Anything copied inside the VM while another window was in front doesn't reach the Mac, and a VM running in the background without a window can't put anything there at all.
Fix:
- Click the VM's window so it's the active window. If the VM runs in the background, reopen its window from the Hermitbox menu bar icon.
- Copy inside the VM.
- Switch to your Mac app and paste with ⌘V.
When to contact us
If the clipboard still doesn't work after these checks, contact us rather than Apple: clipboard sharing runs between Hermitbox and the helper or agent inside the VM. Write to MacSuite support and include:
- Your Hermitbox version and your Mac's macOS version.
- The guest system and version, and how you created the VM (Apple restore image, ISO installer, Ready in a Minute, or import).
- For a macOS VM: what the Hermitbox Guest menu shows ("Connected to Hermitbox" or "Waiting for Hermitbox…") and the Hermitbox Guest line in the inspector.
- For a Linux VM: the output of
pgrep -a spice-vdagent, and whether you shut down and started the VM after installing it. - Which direction fails (Mac to VM, VM to Mac, or both) and what you were copying.
For other error messages, see Troubleshooting Hermitbox.