by anta40 · 3y ago · 0 comments
How easy is it to setup directory sharing? Reading https://docs.getutm.app/guest-support/sharing/directory... seems a bit more difficult than VirtualBox
My use case is relatively simple: build some tiny OSes (into ISO image) on Linux VM, then run the ISO on macOS's qemu
What took me a bit to figure out is that this does not mount a single folder, but a virtual parent folder to which you can add and remove directories without changing the mount. This even works while the VM is running.
For example, mounting
share /mnt/host virtiofs rw,nofail 0 0
in the guest and then sharing ~/Downloads
in UTM will share the Downloads folder as /mnt/host/Downloads
When using the QEMU backend, VirtFS is used instead, which does not use such a parent folder and requires restarting the VM to change shares iirc.