Skip to content

Commit 9282549

Browse files
committed
Packages: add sshfs
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]>
1 parent a4538bf commit 9282549

3 files changed

+4
-0
lines changed

mkosi.arch.default.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Packages=
1717
iniparser
1818
inetutils
1919
iproute2
20+
iputils
2021
jq
2122
kmod
2223
libtraceevent
@@ -29,6 +30,7 @@ Packages=
2930
numactl
3031
pciutils
3132
openssh
33+
sshfs
3234
perl
3335
procps-ng
3436
python

mkosi.fedora.default.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Packages=
33
openssh-clients
44
openssh-server
5+
fuse-sshfs
56
httpd
67
ndctl
78
daxctl

mkosi.ubuntu.default.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Packages=
33
ndctl
44
openssh-client
5+
sshfs
56
lsof
67
strace
78
ltrace

0 commit comments

Comments
 (0)