Skip to content

distro/rhel-10: ami-nvidia: use production branch of nvidia drivers - #2776

Merged
supakeen merged 3 commits into
osbuild:mainfrom
lfauster:ami-nvidia-production-branch
Oct 19, 2026
Merged

supakeen merged 3 commits into
osbuild:mainfrom
lfauster:ami-nvidia-production-branch

Conversation

@lfauster

Copy link
Copy Markdown
Contributor

nvidia provides three branches for their drivers [1]:

  1. New Feature Branch: for early adopters.
    Current version: R615.x
  2. Production Branch: used in production for enterprise/data center
    GPUs, with major releases twice a year.
    Current version: R595.x
  3. Long Term Support Branch, with longer cycle of support.
    Current version: R580.x

The RHEL nvidia AMI targets the production branch, as does the reference AWS Deep Learning AMI.

Lock the package versions of affected packages to the latest available R595
version using wildcards.

[1] https://docs.nvidia.com/datacenter/tesla/drivers/latest/driver-lifecycle.html

@lfauster
lfauster requested a review from ondrejbudai October 19, 2026 07:31
@lfauster
lfauster requested a review from a team as a code owner October 19, 2026 07:31
The kernel module already gets installed via the "nvidia-driver" package.
…tack

nvidia provides three branches for their drivers [1]:
1) New Feature Branch: for early adopters.
   Current version: R615.x
2) Production Branch: used in production for enterprise/data center
   GPUs, with major releases twice a year.
   Current version: R595.x
3) Long Term Support Branch, with longer cycle of support.
   Current version: R580.x

The RHEL nvidia AMI targets the production branch, as does the AWS DLAMI.

Lock the package versions of affected packages to the latest available R595
version using wildcards.

[1] https://docs.nvidia.com/datacenter/tesla/drivers/latest/driver-lifecycle.html
Technically, the used CUDA version must match the installed GPU driver version,
as every GPU driver has a maximum CUDA version it supports.

The image definition now ties the GPU driver to the current production branch,
but the CUDA version is floating and will install the latest available version.

The "cuda-compat" package provides forward compatibility, which allows
newer CUDA versions to work with older drivers [1].

This replicates the behavior of the 'rhel-drivers' tool, which also installs
the latest CUDA version and the compatibility package.

[1] https://docs.nvidia.com/deploy/cuda-compatibility/610/index.html
@lfauster
lfauster force-pushed the ami-nvidia-production-branch branch from ad483fc to 86cf7f1 Compare October 19, 2026 07:43

@supakeen supakeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are we going to manage these versions? It seems we will need to switch them twice per year (or once per year?), does that coincide with the RHEL release cycle (e.g. will we have different versions on each RHEL minor?), it seems they are supported much shorter than a RHEL minor is?

@lfauster

lfauster commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor Author

The version and release cadence is sub-optimal: nothing is synced.
I think ideally there would be a meta package handling this for us. For example something like nvidia-driver-production. Unfortunately we currently don't have that.

Every production branch driver is generally supported for about 1 year. The current one (R595) until March 2027.

Depending on when and also which of the drivers are packaged in the supplementary/extensions repo, I fear we will need to update the version accordingly, until there's a better alternative in place.

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit weird, but I understand the problem and limitations of our solutions.

LGTM.

Comment on lines +1762 to +1765
- "nvidia-driver-3:595*"
- "nvidia-driver-cuda-3:595*"
- "nvidia-fabricmanager-595*"
- "nvidia-persistenced-3:595*"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fully understand the reasoning here but I share Simon's concerns about maintainability. I'm ok merging this if we consider it a workaround until we can figure out a better strategy. Some of the image definition work might make this easier, with layering / configuration components and repositories being defined alongside image types. Currently this ties a built-in image configuration with a very specific content source. In other words, without a repository containing those driver versions, the image can't be built.

This is only a single step beyond our typical scenario: Image configurations list packages (by name) that must exist in the repositories, but somehow this feels like an extra step in the wrong direction.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as I said during stand up if we have no other option then we must do this but I'd really prefer if we could avoid it both from 'fail to build' and a support perspective.

@supakeen
supakeen added this pull request to the merge queue Oct 19, 2026
Merged via the queue into osbuild:main with commit abccc71 Oct 19, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants