UTM
UTM copied to clipboard
Unable to mount shared drives on MacOS
BEFORE SUBMITTING YOUR ISSUE, PLEASE LOOK AT THE PINNED ISSUES AND USE THE SEARCH FUNCTION TO MAKE SURE IT IS NOT ALREADY REPORTED. ALWAYS COMMENT ON AN EXISTING ISSUE INSTEAD OF MAKING A NEW ONE.
Describe the issue
I have recently upgraded my installation of UTM on MacOS 14.1 to the most recent version. Since then, I am unable to mount shared disks in my MacOS VM using the instructions shown at https://docs.getutm.app/guest-support/macos. Here is an excerpt from my terminal session:
Last login: Tue Nov 7 18:19:09 on console ventura@venturas-Virtual-Machine ~ % sudo mount_virtiofs share /Users/ventura/host_shared Password: mount_virtiofs: fs_tag share not found ventura@venturas-Virtual-Machine ~ %
Configuration
- UTM Version: 4.4.4
- macOS Version: 14.1 (both host and guest)
- Mac Chip (Intel, M1, ...): M2
I will attach my configuration.
@opabecker the new update auto mounts your shared directories in a volume called "My Shared Files".
On your guest macOS, go to Finder -> Computer -> My Shared Files -> all your shared directories
@cazendium Thanks!
@opabecker the new update auto mounts your shared directories in a volume called "My Shared Files".
On your guest macOS, go to Finder -> Computer -> My Shared Files -> all your shared directories
I'm in Finder -> Computer; all I see are Macintosh HD and Network. Any advice?
UTM 4.4.5, MacOS 14.2 guest and host.
UTM 4.4.5, macOS 13.6.3 guest and host also has no /Volumes/My Shared Files
You can manually mount the shared folders with:
mkdir -m 777 -p <PATH>
mount_virtiofs com.apple.virtio-fs.automount <PATH>
Kudos to edigaryev from the issue https://github.com/cirruslabs/tart/issues/687
You can manually mount the shared folders with:
mkdir -m 777 -p <PATH> mount_virtiofs com.apple.virtio-fs.automount <PATH>Kudos to edigaryev from the issue cirruslabs/tart#687
Confirmed MacOS 14.2. Appreciate you bringing it over from the other repository.
I tried:
mkdir -m 777 -p [path to desired location in home folder] mount_virtiofs com.apple.virtio-fs.automount [path used above]
But got this:
mount_virtiofs: fs_tag com.apple.virtio-fs.automount not found
What else is needed to get shared folders working in UTM ?
EDIT: Also, the guest VM can't see shared folders on the host. EDIT 2: Found this in UTM docs:
VirtioFS Requires virtiofs drivers and is currently only supported by the Apple backend running Linux.
So, I'm stumped as I can't get SPICE WebDAV working either.
[UTM v4.4.5 in MacOS 9.2.2 guest on macOS 14.2 host.]
mkdir -m 777 -p <PATH> mount_virtiofs com.apple.virtio-fs.automount <PATH>
i am receiving mount_virtiofs: fs_tag com.apple.virtio-fs.automount not found
any idea @simbados @section83
https://github.com/utmapp/UTM/issues/6078
@kokoskiwi did you set up directory sharing in the config of your vm?
Also the newest Version of MacOS fixed the bug concerning the manual mount. So setting up the shared directory in your vm settings should be enough and you should be able to access the mounted files under /Volumes/My Shared Files