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

Packages: add sshfs #126

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Packages: add sshfs #126

merged 1 commit into from
Mar 10, 2025

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Mar 10, 2025

This allows the guest to mount any host directory "out of the box" with zero qemu or kernel feature to enable. Thanks to dpipe and "reverse sshfs", this does not require any additional ssh configuration either:

https://blog.dhampir.no/content/reverse-sshfs-mounts-fs-push

dpipe /usr/lib/openssh/sftp-server = ssh CLIENT sshfs :/mnt/host/path /mnt/client/path -o slave

This Just Works out of the box.

Just for the record, virtiofs and 9P are the most popular and likely much faster alternatives but sshfs is "good enough" in most cases. virtiofs seems to clash with what we already do ("NUMA distance missing" error, etc.) and 9P is rumoured to be quite slow too.

Also add "ping" and friends on Arch Linux.

This allows the guest to mount any host directory "out of the box" with
zero qemu or kernel feature to enable.  Thanks to `dpipe` and "reverse
sshfs", this does not require any additional ssh configuration either:

https://blog.dhampir.no/content/reverse-sshfs-mounts-fs-push
```
dpipe /usr/lib/openssh/sftp-server = ssh CLIENT sshfs :/mnt/host/path /mnt/client/path -o slave
```

This Just Works out of the box.

Just for the record, virtiofs and 9P are the most popular and likely
much faster alternatives but sshfs is "good enough" in most
cases. virtiofs seems to clash with what we already do ("NUMA distance
missing" error, etc.) and 9P is rumoured to be quite slow too.

Also add "ping" and friends on Arch Linux.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review March 10, 2025 23:35
@marc-hb marc-hb requested a review from stellarhopper as a code owner March 10, 2025 23:35
@marc-hb marc-hb merged commit 9282549 into pmem:main Mar 10, 2025
2 checks passed
@marc-hb marc-hb deleted the sshfs branch March 10, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant