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

German Maglione <[email protected]> Tue, 13 May 2025 10:54:02 +0200
Newsgroups dev.linux.lists.virtio-fs
Message-ID <CAJh=p+7j2aMiEgi3D4Vj8tUJTsAdZS92B+DpAJ9EgiUwacbPTQ@mail.gmail.com>
Hi,

On Thu, Apr 10, 2025 at 7:07 PM Nils Kattenbeck <[email protected]> wrote:
>
> 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?


No, is not possible, we have an open RFE[0] for it, sadly we don't
have time to work on it, but we are open to contributions.
This could be implemented using https://wiki.qemu.org/Features/VirtioVhostUser

[0] https://gitlab.com/virtio-fs/virtiofsd/-/issues/73

>
> 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
>


-- 
German