utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.19k stars 1.34k forks source link

Unable to mount shared drives on MacOS #5875

Open opabecker opened 1 year ago

opabecker commented 1 year ago

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

I will attach my configuration.

opabecker commented 1 year ago

config.plist.zip

opabecker commented 1 year ago

system.log.txt

cazendium commented 1 year ago

@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

LeonSolisPedro commented 1 year ago

@cazendium Thanks!

nodeOfCode commented 11 months ago

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

rectalogic commented 11 months ago

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

simbados commented 11 months ago

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

nodeOfCode commented 11 months ago

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.

section83 commented 10 months ago

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

kokoskiwi commented 9 months ago

mkdir -m 777 -p mount_virtiofs com.apple.virtio-fs.automount

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

simbados commented 9 months ago

@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

dineshravichandiran commented 2 months ago

Hi ,

Error : dinesh@ubuntu-desktop:~$ sudo mkdir /mnt/shared

[sudo] password for dinesh:

dinesh@ubuntu-desktop:~$ sudo mount -t virtiofs share /mnt/shared

mount: /mnt/shared: wrong fs type, bad option, bad superblock on share, missing codepage or helper program, or other error.

Please help me I am using the latest Mac Os of 15.0 recently updated and Ubuntu version installed is (Ubuntu 22.04.5 LTS) -Jammy Jellyfish , I am not able to run this command "sudo mount -t virtiofs share /mnt/shared “ in my Macbook pro M1 Pro chip , I tried all the way but not helped me here so please help me here.

Thanks in advance

Awais16 commented 1 month ago

@dineshravichandiran were you able to solve it? I am also facing same error on M2 14.6.1 and VM with Alma 9.4.

arianvp commented 2 weeks ago

For me the button for sharing directories is completely disabled when booting a MacOS VM