Hi All, On 04/06/2026 18:41, Sergey Bugaev wrote:
Accessing the host's files from a Hurd VM. You can do so over TCP/IP today. Spin up a 9P server on the host (I used diod [1]), and set up 9pfs in the Hurd VM, this makes it possible to read (for now, no writing) host files from the VM. You could use this to build, on the Hurd, a project whose source code is (being edited) on the host. I tried this just now, and ran into the missing 9P2000.L implementation of readdir in 9pfs. So I went ahead and implemented that, and now it totally works, I can build my project, whose source directory resides on the host, from the Hurd VM.
You can also do almost the same with the Hurd nfsv3 client that I completed last year. That only supports udp protocol but is perfectly adequate in the scenario described above. The performance is poor when writing files which would be slightly improved with support for tcp which would reduce the number of 'sync' operations on the server. I use it regularly for mounting my edited source code files from a Linux host where the majority of the writes within Hurd occur on non-nfs file systems.
Mike.
