UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Unable to mount shared drives on MacOS

Open opabecker opened this issue 2 years ago • 13 comments
trafficstars

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 avatar Nov 07 '23 23:11 opabecker

config.plist.zip

opabecker avatar Nov 07 '23 23:11 opabecker

system.log.txt

opabecker avatar Nov 07 '23 23:11 opabecker

@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 avatar Nov 12 '23 00:11 cazendium

@cazendium Thanks!

LeonSolisPedro avatar Nov 12 '23 18:11 LeonSolisPedro

@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.

nodeOfCode avatar Dec 13 '23 02:12 nodeOfCode

UTM 4.4.5, macOS 13.6.3 guest and host also has no /Volumes/My Shared Files

rectalogic avatar Dec 17 '23 16:12 rectalogic

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

simbados avatar Dec 19 '23 12:12 simbados

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.

nodeOfCode avatar Dec 19 '23 14:12 nodeOfCode

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.]

section83 avatar Jan 07 '24 04:01 section83

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 avatar Feb 08 '24 17:02 kokoskiwi

@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

simbados avatar Feb 08 '24 18:02 simbados