Copy File macOS to Mac VM UTM File Sharing
In this article
To copy files from macOS to a Mac virtual machine running in UTM, the most reliable method is to use the built-in SPICE guest agent and shared folder feature, or to fall back on a network transfer if the guest tools are unavailable. This article explains the setup steps, the alternatives, and how to troubleshoot common issues.
Understanding UTM's File Sharing Options
UTM is a free, open-source virtualization app for macOS that runs Windows, Linux, and macOS guests. For file sharing between the host macOS and a macOS guest, UTM offers two primary mechanisms:
- SPICE WebDAV shared folder: This is the recommended method. UTM exposes a folder from the host to the guest using the SPICE protocol, and the guest mounts it as a network drive.
- Network file sharing: You can also use standard protocols like SMB or SSH to transfer files between the host and guest, regardless of UTM's guest tools.
The SPICE method is usually easier and faster for drag-and-drop style workflows, but it requires the SPICE guest agent to be installed and running in the macOS guest.
Prerequisites: Installing the SPICE Guest Agent
Before you can use the shared folder feature, the macOS guest must have the SPICE guest agent (also called spice-vdagent) installed. UTM provides this as part of its “Guest Tools” ISO, which you can attach to the VM like a CD/DVD.
- In UTM, open your macOS VM's settings and go to the Drives tab.
- Click New and select Import, then choose the
UTM Guest Tools.isofile (usually located in/Applications/UTM.app/Contents/Resources/). - Start the VM. Inside macOS, open the ISO and run the installer. If macOS blocks it due to security settings, go to System Settings > Privacy & Security and allow the installation.
- After installation, reboot the guest.
Once the guest agent is running, you should see a SPICE icon in the menu bar. If you don't, the agent may not have installed correctly, or the VM's display type might not be set to SPICE (see below).
Setting Up a Shared Folder
With the guest agent installed, you can now share a folder from your Mac host:
- In UTM, open the VM settings and go to Sharing.
- Enable Shared Directory.
- Click Browse and select the folder you want to share (e.g.,
~/Documents/VMShare). - Choose a name for the share (this is how it will appear in the guest).
- Start the VM. The shared folder should appear on the macOS guest's desktop or in the Finder sidebar under Locations.
If it doesn't appear automatically, you can manually connect to it in the guest by opening Finder and pressing Cmd+K, then entering spice:// or davfs:// (depending on the UTM version). The exact URL is usually shown in the UTM window title bar when the VM is running.
Alternative Methods: Network Transfers
If the SPICE shared folder isn't working (for instance, if the guest agent fails to install), you can fall back on network-based file sharing. This works because both the host and guest can communicate over a virtual network.
- SSH (for macOS guests): Enable Remote Login in the guest's System Settings > Sharing. Then from the host, use
scporrsyncto copy files. For example:scp file.txt user@guest-ip:~/. - SMB (for Windows/Linux guests): On a macOS guest, you can also enable File Sharing and connect from the host via SMB. On the host, use
Finder > Go > Connect to Serverand entersmb://guest-ip.
To find the guest's IP address, look at the UTM window's title bar (it shows the assigned IP) or run ipconfig getifaddr en0 in the guest's Terminal.
Common Problems and Fixes
Users often encounter a few recurring issues when setting up file sharing with UTM:
- Shared folder doesn't appear: Ensure the SPICE guest agent is running. In the guest, open Activity Monitor and look for
spice-vdagent. If it's not there, reinstall the Guest Tools and reboot. - Drag and drop doesn't work: UTM does not support drag-and-drop between host and guest by default. Use the shared folder or network transfer instead.
- Shared folder is read-only: Check the folder permissions on the host. Make sure the host user has read/write access to the folder you're sharing.
- VM display is not SPICE: In UTM settings, under Display, ensure the Display Type is set to SPICE (not VGA or virtio). The guest agent relies on SPICE for clipboard and folder sharing.
Comparing UTM to Other Virtualization Tools
UTM's file sharing is similar to what you get with Parallels Desktop or VMware Fusion, but with some differences:
- Parallels has seamless drag-and-drop and a shared folders feature that works out of the box, but it's paid software.
- VMware Fusion also offers shared folders, but it's now free for personal use, though the setup is slightly more involved.
- UTM is free and open-source, but its file sharing relies on SPICE, which can be less polished on macOS guests compared to the proprietary tools.
For most users, UTM's shared folder works well once the guest agent is installed. If you need a more seamless experience, you might consider the paid alternatives.
Cost and Performance Considerations
UTM itself is free, but you may need to install macOS guest tools that are also free. The performance of file sharing depends on the network and disk I/O. SPICE shared folders are generally fast for small to medium files, but for very large files (multiple GB), a network transfer over SMB or SSH might be more efficient.
Keep in mind that macOS guests may be slower than native hardware due to virtualization overhead. File sharing adds a small amount of overhead, but it's usually negligible for everyday use.
Frequently Asked Questions
How do I install the SPICE guest agent on macOS in UTM? Attach the UTM Guest Tools ISO to the VM, then run the installer inside the guest. You may need to allow it in System Settings > Privacy & Security. After installation, reboot the VM.
Why is my shared folder not showing up? First, ensure the SPICE guest agent is running (look for spice-vdagent in Activity Monitor). Then check that the VM's display type is set to SPICE in UTM settings. If it's still not visible, try manually connecting via Cmd+K in Finder and entering spice://.
Can I use drag-and-drop to copy files to a UTM VM? No, UTM does not support drag-and-drop between the host and guest. You must use the shared folder or network transfer methods described above.
Is UTM safe to use for running macOS VMs? Yes, UTM is a reputable open-source project. However, running macOS on non-Apple hardware may violate Apple's EULA, but on a Mac host it's generally acceptable for development and testing.
How do I share a folder from the guest back to the host? The shared folder is bidirectional. Any changes made in the shared folder on the guest are reflected on the host and vice versa, as long as the folder is mounted in the guest.
What if I can't install the guest agent? If the guest agent fails to install, use SSH or SMB network sharing instead. Enable Remote Login or File Sharing in the guest's System Settings, then connect from the host using Finder or the command line.