Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable virtfs on macOS host #2184

Closed
tiiiecherle opened this issue Dec 29, 2020 · 15 comments
Closed

Enable virtfs on macOS host #2184

tiiiecherle opened this issue Dec 29, 2020 · 15 comments
Labels
enhancement New feature or request qemu QEMU related
Milestone

Comments

@tiiiecherle
Copy link

Thanks for this really nice project.

It would be nice if virtfs could be enabled in the next build for macOS as it helps a lot sharing folders to linux guests with p9 mounts.

Thanks

@osy osy added enhancement New feature or request qemu QEMU related labels Dec 29, 2020
@osy
Copy link
Contributor

osy commented Dec 29, 2020

Can be implemented once support is in QEMU

@tiiiecherle
Copy link
Author

o.k., thanks ;)

@4ntoine
Copy link

4ntoine commented Oct 7, 2021

Any update on that? Any suggestion on how to share a directory with max performance between host macOS or Linux and guest os Linux (supported by UTM)?

@4ntoine
Copy link

4ntoine commented Oct 7, 2021

Getting "virtfs support is disabled" message for UTM 2.2.4

@4ntoine
Copy link

4ntoine commented Oct 15, 2021

adding to qemu:

-fsdev
local,security_model=none,id=fsdev0,multidevs=remap,path=/tmp/share
-device
virtio-9p-pci,fsdev=fsdev0,mount_tag=host_storage,id=virtio-9p-pci0

Снимок экрана 2021-10-15 в 23 05 32

@4ntoine
Copy link

4ntoine commented Oct 15, 2021

@osy any solution/workaround? Any doc on how to use built-in dirs sharing UTM functionality? Can't find any details in FAQ

@ndp34
Copy link

ndp34 commented Feb 8, 2022

Hi, sadly I have same issue. And It's really important for me.

@amboar
Copy link

amboar commented Jun 7, 2022

I'm on an M1 under Monterey using UTM 3.2.4 (58). Instead of fsdev support is disabled I get qemu-aarch64-softmmu: -virtfs local,path=tmp/share,mount_tag=share,security_model=mapped-xattr: cannot initialize fsdev 'share': failed to open '/tmp/share': Operation not permitted.

@thouseef
Copy link

thouseef commented Jun 27, 2022

I'm on an M1 under Monterey using UTM 3.2.4 (58). Instead of fsdev support is disabled I get qemu-aarch64-softmmu: -virtfs local,path=tmp/share,mount_tag=share,security_model=mapped-xattr: cannot initialize fsdev 'share': failed to open '/tmp/share': Operation not permitted.

I'm also getting the same error on M1 using UTM 3.2.4:
qemu-aarch64-softmmu: -virtfs local,path=/Users/username/workspace,security_model=none,mount_tag=workspace: cannot initialize fsdev 'workspace': failed to open '/Users/username/workspace': Operation not permitted

@zachlatta
Copy link

Hi there, just to chime in. It looks like as of March 2022, virtfs support is included in the Homebrew version of QEMU: Homebrew/homebrew-core@a70f2f6

I wonder if this these patches could be added to the QEMU version included with UTM to enable virtfs?

@Atemu
Copy link

Atemu commented Jul 26, 2022

@zachlatta these shouldn't be necessary as UTM already ships QEMU v7.

@zachlatta
Copy link

zachlatta commented Jul 26, 2022

@Atemu: it looks like Homebrew ships with QEMU v6 with some patches that make it virtfs work, so it's not a matter of Homebrew having a more up to date release, but rather specific patches being included - Homebrew/homebrew-core@a70f2f6#diff-5fe005c786b1e905434aaa353962cc6a58b0a6431e7f9a785076f0ad5f277a3dR54-R108

@osy osy added this to the Future milestone Jul 26, 2022
@Atemu
Copy link

Atemu commented Jul 27, 2022

@zachlatta

# The following patches add 9p support to darwin.  They can
# be deleted when qemu-7 is released.

Homebrew/homebrew-core@a70f2f6#diff-5fe005c786b1e905434aaa353962cc6a58b0a6431e7f9a785076f0ad5f277a3dR54-R55

@zachlatta
Copy link

Ah... I'm sorry. Thank you for the correction!

@elmehdibadaoui
Copy link

Solved ! by an easy steps On UTM

  1. Close the emulator with problem
  2. Select the emulator on UTM interface
  3. On the shared directory (Clear) and Save
  4. Re-choose an Shared directory (in my case Download)
  5. You can now Run your emulator
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qemu QEMU related
Projects
None yet
Development

No branches or pull requests

10 participants