Re: Is it possible to use virtiofs to mount guest directory on the host?
Jingbo Xu <[email protected]> Fri, 11 Apr 2025 09:28:17 +0800
| Newsgroups | dev.linux.lists.virtio-fs |
|---|---|
| Message-ID | <[email protected]> |
On 4/11/25 12:57 AM, Nils Kattenbeck 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? > > 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. Don't know much details on your case. If you run cache=none mode of virtiofs (virtiofsd still runs in host in this case), you can share a directory tree between host and guest. And all modifications done on guest side can be seen from host side. Not sure if this is adequate for your case? -- Thanks, Jingbo