lima-vm / lima

Linux virtual machines, with a focus on running containers
https://lima-vm.io/
Apache License 2.0
15.39k stars 604 forks source link

Alternative to sshfs #487

Closed JakubJecminek closed 2 years ago

JakubJecminek commented 2 years ago

Hello, after upgrade to Mac Os X Monterey and brew upgrade I have problem with lima that is caused by sshfs being disabled. This is because sshfs depends on macfuse which is no longer under open source license:

When you try to (re)install sshfs, homebrew will give you following error:

brew install sshfs
Error: sshfs has been disabled because it requires closed-source macFUSE!

Is there alternative to sshfs that would support same functionality and that is compatible with lima?

afbjorklund commented 2 years ago

Support for qemu virtfs is available (uses 9p to mount), but yet not merged into qemu master (for Mac).

If qemu is patched, or once the patches land upstream, it would be possible to mount using that instead...

Similar to podman:

But see also:

afbjorklund commented 2 years ago

@JakubJecminek : pardon my ignorance, but I thought that sshfs was only needed on the Linux VM ?

And that the host would use sftp to serve the files, at least that is how it is implemented on Linux afaik

AkihiroSuda commented 2 years ago

sshfs is solely used inside the guest, not on the host. You do NOT need to install sshfs on the host.

JakubJecminek commented 2 years ago

Ohh ok thank you. Sorry for the wrong question :) And thank you very much for this great project.

dmahurin commented 2 years ago

Perhaps this will work for some still needing sshfs.

It is a shell script that provides a basic sshfs command line interface, but mounts files with ssh tunneled webdav and mount_webdav.

https://github.com/dmahurin/sshfs-dav/