UTM is a QEMU-based virtualizer for macOS (Apple Silicon and Intel). These notes cover setting up guest tools and file sharing on a Debian-based Linux guest.


Install guest tools (Debian-based guest)

sudo apt install spice-vdagent
sudo apt install qemu-guest-agent

Linux guest file sharing

  1. Create a mount point:
sudo mkdir /mnt/utm
  1. Add the shared folder to /etc/fstab:
share /mnt/utm 9p trans=virtio,version=9p2000.L,rw,_netdev,nofail,auto 0 0

Allow user write permission

The 9p mount is owned by root by default. Use bindfs to re-mount it under your user.

  1. Install bindfs:
sudo apt install bindfs
  1. Create the user mountpoint:
mkdir ~/utm
  1. Add the bind mount to /etc/fstab, mapping the host UID/GID (502/1000) to your user:
/mnt/utm /home/user/utm fuse.bindfs map=502/1000:@20/@1000,x-systemd.requires=/mnt/utm,_netdev,nofail,auto 0 0