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

Bind mount a directory located on Mac #11401

Closed
utam0k opened this issue Sep 2, 2021 · 16 comments
Closed

Bind mount a directory located on Mac #11401

utam0k opened this issue Sep 2, 2021 · 16 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@utam0k
Copy link
Member

utam0k commented Sep 2, 2021

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

Description
Maybe this is perhaps not a conversation to be had in this repository.
I think podman is a very big alternative to Docker Desktop. One feature I'm currently missing is the ability to share files with the Mac side. I know that this is difficult because we use qemu, but I would be very happy if you would consider making this a reality. Is this worthy of consideration?

Reference

@openshift-ci openshift-ci bot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 2, 2021
@mheon
Copy link
Member

mheon commented Sep 2, 2021

This is definitely under discussion - it's something we'd like to do, but also a large and complex feature, so we need to figure out a good approach before we start.

@utam0k
Copy link
Member Author

utam0k commented Sep 2, 2021

@mheon Thanks for your reply. So this is being considered. That's excellent news for me. Is it being considered somewhere where everyone can see it? I'd like to see the discussion and progress if possible.

@anthr76
Copy link

anthr76 commented Sep 2, 2021

sshfs may be a option here?

@mheon
Copy link
Member

mheon commented Sep 2, 2021

@TomSweeneyRedHat When's the next community cabal? Seems like a good topic for discussion.

@georgettica
Copy link

hey! I just had a discussion with the team and I tried to use podman to replace docker-desktop..

I was able to pull and run stateless containers / mount files while in --privileged and that the file is in /etc

if /Users/<username> mapping will be discuss as an option it would be very beneficial

@afbjorklund
Copy link
Contributor

afbjorklund commented Sep 5, 2021

Also reported as Issue #8016

@afbjorklund
Copy link
Contributor

I know that this is difficult because we use qemu

QEMU has built-in file sharing (using 9p protocol), sample implementation in #11454

Like reverse sshfs, it is probably too slow for real-life use cases. But it is something ?

Normal sshfs is fast, since most files are on the VM and you only open the ones you edit.

There is an implementation of the mount command for it (sshfs) available in #11423

@mheon
Copy link
Member

mheon commented Sep 7, 2021

Update: The next community cabal is next Thursday, September 16th at 10:00 a.m. EDT (UTC-4). We'll be discussing, among other topics, the architecture and next steps for volume mounts for podman machine

@utam0k
Copy link
Member Author

utam0k commented Sep 7, 2021

@mheon Thanks for the information. I'm looking forward to it. Should I close this issue? Or should I keep it for tracking purposes?

@mheon
Copy link
Member

mheon commented Sep 7, 2021

I'll close in favor of the existing #8016 - we can continue to track there.

@mheon mheon closed this as completed Sep 7, 2021
@afbjorklund
Copy link
Contributor

The other story is slightly more generic, since it talks about providing a solution for any remote connection (which would most likely based on sshfs) but this use case (Mac) only needs something to work locally (which means that it can use something like virtfs)

No reason why both features could not be covered by the other issue, though.

@pierreyves-lebrun
Copy link

The other story is slightly more generic, since it talks about providing a solution for any remote connection (which would most likely based on sshfs) but this use case (Mac) only needs something to work locally (which means that it can use something like virtfs)

No reason why both features could not be covered by the other issue, though.

I agree with that, sshfs would be quite sexy for dealing with remote hosts

@heyvito
Copy link

heyvito commented Sep 9, 2021

I know that's a big stretch, but has anyone researched whether we can run ELFs "natively" using Hypervisor.framework on macOS? To be simple, reductive, and absurd, it would be a matter of providing basic runtime requirements like ld, a glibc and so, intercepting syscalls we don't have on macOS, and somewhat translating it to have the same result as we would have on linux. 🤔
We wouldn't even need to load a kernel there, I believe that just mapping the ELF to the VM's memory and setting registers as needed would suffice, but I'm really rusty on those topics TBH.

@afbjorklund
Copy link
Contributor

afbjorklund commented Sep 9, 2021

I know that's a big stretch, but has anyone researched whether we can run ELFs "natively" using Hypervisor.framework

That sounds more like WSL1 for Windows (which was abandoned), but if you are interested in that you can check out noah

@heyvito
Copy link

heyvito commented Sep 9, 2021

I know that's a big stretch, but has anyone researched whether we can run ELFs "natively" using Hypervisor.framework

That sounds more like WSL1 for Windows (which was abandoned), but if you are interested in that you can check out noah

Whoa! Noah is indeed what I was looking for. Wonder why they abandoned it. 🤔
Will take a look and fiddle around to see what we can get from it. 🙌🏻

Thank you, @afbjorklund!

@afbjorklund
Copy link
Contributor

afbjorklund commented Sep 9, 2021

Wonder why they abandoned it. 🤔

It's harder to do syscall translation and process isolation, than to emulate the old system - with all the warts and all.

But it can be done, as seen in the FreeBSD linuxulator and the SmartOS lx-branded zones. If one really wants to...

It's totally off-topic in this issue, though. 😊

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

7 participants