Repository navigation
Conversation
Local-driver volumes with driver_opts type=nfs failed with ENODEV
("no such device") because the guest kernel was built from allnoconfig
with no remote network filesystem. Add CONFIG_NETWORK_FILESYSTEMS plus
the NFSv3/NFSv4/NFSv4.1 client so mount(2) registers the nfs type and
the already-complete user-space mount path works. NFSv2, pNFS, Kerberos
and NFS swap stay off.
Also document type=nfs support in docs/features.md (and cifs as a known
gap) and add a deterministic e2e.sh check that the engine offers the nfs
filesystem type without needing a server.
5 tasks
Closed
Owner
|
@meutex thank you for this pull request. Before we can review and merge it, its commits need to be signed and show as Verified on GitHub. Right now they are not. To fix it:
We only merge pull requests where every commit is verified. Once that shows, we will pick it up. |
meutex
force-pushed
the
meutex/issue-1794955932-add-nfs-support-to-kiri-s-guest-engine-s
branch
from
November 21, 2026 03:55
d6bda18 to
f9ac31c
Compare
Owner
|
Shipped in #961 β thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes and why
A Compose named volume backed by an NFS export (
driver: local,driver_opts: {type: nfs, device: ":/export", o: "addr=β¦,nfsvers=4,β¦"}) is created and then fails to start withfailed to mount local volume β¦ no such device. That errno is ENODEV from the guest's mount(2) call, which is what the kernel returns when the requested filesystem type is not registered. Kiri's user space already builds the mount fields correctly; the guest kernel is a deliberately minimal allnoconfig with no remote network filesystem, so "nfs" is unknown to it.This adds the NFS client to
guest/kernel/kiri.config:CONFIG_NETWORK_FILESYSTEMS=yβ the menu gate; without itfs/nfs/Kconfigis not parsed and the options below are silently dropped.CONFIG_NFS_FS=y,CONFIG_NFS_V3=y,CONFIG_NFS_V4=y,CONFIG_NFS_V4_1=yβ NFSv3 and NFSv4 (minorversion 4.0 and 4.1) mount; NFSv2, pNFS, Kerberos (sec=krb5*) and NFS swap stay off.It also adds one e2e check that the running guest registers the
nfsfilesystem type. The check needs no NFS server and cannot hang, and--rmcleans up after itself.docs/features.mdnow lists NFS-backed local volumes under Storage and notes thattype=cifsvolumes still do not mount, since the kernel has no CIFS client.Cost, which is the part I could not answer:
cargo xtask kernelwas not run in this environment, so there is no before/after kernel size and no measurement of the new initcalls' effect on boot. The added code is one filesystem plus its protocol modules, built in, so it is not free; the numbers need to come from a realcargo xtask kernelrun before this goes anywhere.No Rust dependency or bundled tool version changes, so
scripts/ci/notices.shis not expected to produce a NOTICE diff. If that turns out to be wrong, the NOTICE change belongs in this PR.This is opened against meutex/kiri, not upstream. #494 has no maintainer reply yet and CONTRIBUTING.md asks for an agreed approach before code larger than a small fix, so it should only be sent upstream after that reply, with the gap below closed.
Fixes #494
How you tested it
Not built and not run. The environment is Linux only and I could not produce a guest kernel, a host daemon or a VM, so the only command actually executed here was a grep over the workflow files while checking what CI runs:
Still to run before this is sendable, with output pasted back here:
cargo xtask kernel(DOCKER_CONTEXT=kirito build it inside Kiri) β must boot, and must give the vmlinux size before and after.cargo xtask guestandcargo xtask hostβ must build.cargo fmt,cargo clippy,cargo testβ none of these were run.tests/e2e.shagainst a runningkiri daemonβ including the newnfs-filesystemcheck.python3 scripts/i18n-check.pyandpython3 scripts/ui-test.pyβ the window is not touched, so parity should stay green with no new line intests/ui/parity-allow.txt, but that is an expectation, not a result.Tested on: nothing. No platform was exercised; the sandbox is Linux only and cannot start the macOS VM path where the failure was reported.
How you found it
AI tools used to write this change: None.
Checklist
cargo fmt,cargo clippyand the tests pass β none of the three were run in this environment; see the list above for what is outstanding.