Share a Mac Folder With an Ubuntu VM Without VMware Tools
Share a Mac folder with an Ubuntu VM on Apple silicon without VMware Tools: add the folder in Hermitbox, mount it with virtiofs, and keep it across reboots.
Updated 5 min read
On this page
You have an Ubuntu VM on an Apple silicon Mac, open-vm-tools says it is installed and running, and you still can't reach any file outside the VM. Maybe you even tried mounting a tools ISO. This page gets a Mac folder into the VM in a few minutes.
Why VMware Tools doesn't help here
VMware Tools and open-vm-tools are guest add-ons for VMware's own hypervisors. They talk to VMware's virtual devices. A VM that runs on Apple's Virtualization framework, as Hermitbox VMs do, has no such device, so the tools package can report "running" and still share nothing.
On Apple's framework, folders are shared over virtio-fs. Linux has a virtio-fs driver built in, so there is nothing to install: you mount the share by its tag, hermitbox. The tools ISO that VMware ships is also not an Ubuntu installer or a data disk, so mounting it won't produce a shared folder either.
Before you start
- An Apple silicon Mac on macOS 14 Sonoma or later, and an arm64 Ubuntu VM in Hermitbox.
- The VM can be running or stopped. The note after the sharing steps explains when a change takes effect.
- Hermitbox is part of MacSuite and runs for 7 days without a key if you want to try it first.
Share the folder from Hermitbox
- Select the Ubuntu VM in the library and open the inspector (View ▸ Show Inspector, ⌃⌘I). Alternatively, open the VM's window and click Sharing in the toolbar.
- In Shared Folders, click Add Folder… and pick the folder in the Share panel. You can also drag a folder from Finder onto the list ("Drop folders here to share them.").
- Tick Read only if the VM should not change your files. You can change this later with Make Read Only or Allow Writing.
If the VM started with no shared folders, the new folder applies the next time it starts ("Changes apply the next time it starts."). If it started with at least one folder, adding or removing folders applies live.
Hermitbox gives each VM one virtio-fs share. Every folder you add appears under that single mount point.
Mount the shared folder in Ubuntu
Open a terminal in the VM. The Mount in Linux disclosure under Shared Folders shows the same commands, ready to copy.
Mount now (lasts until the VM restarts):
sudo mkdir -p /mnt/mac && sudo mount -t virtiofs hermitbox /mnt/macThis creates /mnt/mac and mounts the Hermitbox share there. Check it:
ls /mnt/macYou should see each folder you shared. To undo the mount, run sudo umount /mnt/mac.
Mount it at every start
Add this line to /etc/fstab:
hermitbox /mnt/mac virtiofs rw,nofail 0 0One way to append it and mount in the same go:
echo 'hermitbox /mnt/mac virtiofs rw,nofail 0 0' | sudo tee -a /etc/fstab && sudo mount -aThe nofail option lets Ubuntu finish booting even if the share isn't available. To undo, delete that line with sudo nano /etc/fstab.
Why it might still fail
| Symptom | Likely cause | Fix |
|---|---|---|
/mnt/mac is empty | No folder is shared with this VM | Add one under Shared Folders, then run ls /mnt/mac again |
| Mount fails right after adding the first folder | The VM started with no shared folders | Restart the VM, then mount again |
| A folder is flagged in the list | The Mac folder was moved or deleted | Choose Stop Sharing, then add it again |
| Can't write or delete files | Read only is on | Choose Allow Writing on that folder |
| Mount is gone after a reboot | No fstab line | Add the line above |
| A folder you expect isn't there | It was added to a different VM | Shared folders are set per VM; check this VM's inspector |
The mount command says the tag is unknown
This usually means the VM has no share device yet, which happens when it booted with zero shared folders. Shut the VM down, add a folder, start it again and retry the mount.
The share works but files look wrong
Everything under /mnt/mac is a live view of your Mac folders. Deleting a file there deletes it on the Mac, unless Read only is on. If you want a safe test, share a copy of the folder first.
Checklist before you try again
- The folder is listed under Shared Folders for this VM, not another one.
- The VM has been restarted since the first folder was added.
- You mounted with the tag
hermitbox, typevirtiofs, at/mnt/mac. - Read only is off if you need to write.
- The fstab line is present if you want the mount after a reboot.
Limits to know
- One virtio-fs share per VM, so every folder lives under
/mnt/mac. - Hermitbox has no drag and drop of files between the Mac and the VM window. Use a shared folder.
- This page covers Linux guests. In macOS guests, shared folders appear in My Shared Files instead.
- Hermitbox runs arm64 Linux. It does not run Intel (x86-64) guests.
If nothing works
Contact MacSuite support through the support page. Include the Hermitbox version, the Ubuntu version (lsb_release -a), the exact output of the mount command, and whether the VM was started before or after you added the folder.
Subject: Hermitbox shared folder won't mount in Ubuntu VM
Hermitbox version: (from Hermitbox > About)
macOS version:
Guest: Ubuntu (version), arm64
Folder added under Shared Folders: yes/no, Read only on/off
VM restarted after adding the folder: yes/no
Command run: sudo mount -t virtiofs hermitbox /mnt/mac
Output:
(paste the exact error here)Common questions
Can I install VMware Tools in a Hermitbox VM anyway?
There is no reason to. It targets VMware's hypervisors and won't add folder sharing to a VM on Apple's framework.
Why is the share tag called hermitbox?
That is the name Hermitbox gives the single virtio-fs device, and the mount command refers to it by that tag.
Can I share more than one folder?
Yes. Add as many as you like under Shared Folders; each appears as a subfolder of /mnt/mac.
Do I need extra steps for the clipboard?
Clipboard sharing is separate and needs spice-vdagent in Linux. See Share folders and the clipboard.