agent: expose NVIDIA IMEX channels in nspawn#435
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add support for exposing imex into the nspawn environment
agent: expose NVIDIA IMEX channels in nspawn
Jul 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the agent’s NVIDIA device handling so that NVIDIA IMEX channel device nodes (/dev/nvidia-caps-imex-channels/*) are discovered on the host and automatically exposed into systemd-nspawn machines (via Bind= and DeviceAllow=), enabling multi-node NVLink workloads to access configured IMEX channels.
Changes:
- Extend NVIDIA device discovery to include IMEX channel devices under
/dev/nvidia-caps-imex-channels/*. - Add targeted tests to verify both discovery and nspawn rendering include the IMEX device nodes.
- Update nspawn documentation to mention IMEX channel exposure as part of NVIDIA GPU support.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pkg/agent/phases/rootfs/nspawn_render_test.go | Adds a rendering test to assert IMEX device paths appear in Bind= and DeviceAllow= outputs. |
| pkg/agent/goalstates/nvidia.go | Updates NVIDIA device discovery to include IMEX channels and refactors discovery to support test injection. |
| pkg/agent/goalstates/nvidia_test.go | Adds a unit test ensuring IMEX channel devices are returned by discovery. |
| docs/content/reference/agent/nspawn.md | Documents IMEX channel devices as part of NVIDIA GPU exposure in nspawn. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bcho
approved these changes
Jul 13, 2026
…-exposing-imex # Conflicts: # pkg/agent/phases/rootfs/nspawn_render_test.go
…vices-support' into copilot/agent-support-exposing-imex
cchildress
approved these changes
Jul 14, 2026
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.
NVIDIA IMEX channel devices were not visible inside nspawn machines, preventing multi-node NVLink workloads from accessing configured channels.
/dev/nvidia-caps-imex-channels/*with other NVIDIA devices.Bind=andDeviceAllow=entries.