Is it possible to use virtiofs to mount guest directory on the host?

Nils Kattenbeck <[email protected]> Thu, 10 Apr 2025 18:57:13 +0200
Newsgroups dev.linux.lists.virtio-fs
Message-ID <CAKkJDRfz=yb5U=Gu=evx5SW=ih6_5KTKQoqO=tfCEdVX2HEuVw@mail.gmail.com>
Hello,

This may sound like a weird inquiry but is it possible to run
virtiofsd inside the guest
and mount the exposed directory on the host?

Our goal is to replace SSHFS with a more modern/lightweight/performant
alternative
as SSHFS which is pretty much in bugfix-only mode and not actively
developed any further.
As our primary use-case is local development based on VMs virtiofs
would be a great fit.

If this is not (currently) possible, how hard would it be to adapt it to do so?
Or is this simply impossible? I would also appreciate pointers to
alternative, lightweight solutions.

Take care,
Nils