Skip to content

Instantly share code, notes, and snippets.

@ba11b0y
Created January 29, 2025 17:04
Show Gist options
  • Save ba11b0y/0db77375fce9d8b85eaef548e06f4827 to your computer and use it in GitHub Desktop.
Save ba11b0y/0db77375fce9d8b85eaef548e06f4827 to your computer and use it in GitHub Desktop.
Setting up a shared directory on UTM
  • Make sure VirtFS is checked in the "Sharing" tab in UTM as shown in the screenshot below.

image

  • 9p and virtio kernel modules should be enabled

lsmod| grep 9p lsmod|grep virtio

If not, then edit kernel modules and add them

sudo vi /etc/initramfs-tools/modules

virtio_pci
virtio_blk
virtio_net
9pnet_virtio

Run sudo update-initramfs -u and reboot!

  • And then run mount -t 9p -o trans=virtio share [mount point] -oversion=9p2000.L to mount the shared directory at the mount point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment