Thanks to visit codestin.com
Credit goes to github.com

Skip to content

eve-k + pillar: Fix mount points for Nvidia#5284

Merged
OhmSpectator merged 2 commits into
lf-edge:masterfrom
rene:fix-k-nvidia
Oct 6, 2025
Merged

eve-k + pillar: Fix mount points for Nvidia#5284
OhmSpectator merged 2 commits into
lf-edge:masterfrom
rene:fix-k-nvidia

Conversation

@rene

@rene rene commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

Description

The /etc/cdi and /opt/vendor directories should also be visible (mounted) for all pillar variants + eve-k in order to get access to Nvidia libraries + CDI yaml files. These mount points were missing for:

  1. pkg/kube/build.yml
  2. pkg/pillar/build-k.yml
  3. pkg/pillar/build-k-dev.yml
  4. pkg/pillar/build-dev.yml
  5. pkg/pillar/build-rstats.yml

How to test and validate this PR

These mount points are not in current use for the versions that they were added by this PR. So I don't think we need a strict validation at this moment. However, it can still be checked by building the different combinations for EVE + nvidia, for instance:

  1. make ZARCH=arm64 PLATFORM=nvidia-jp6 DEV=1 ...
  2. make ZARCH=arm64 HV=k PLATFORM=nvidia-jp6 ...

Then, by entering inside the containers (pillar and kube) and checking if the Nvidia files are there. For instance:

0f6354fb-bebc-449c-ad4f-072913e4d77f:~# eve enter pillar
[pillar] root@0f6354fb-bebc-449c-ad4f-072913e4d77f:/$ ls /opt/vendor/nvidia/
bin/          dist/         etc/          eve-platform  init.d/
[pillar] root@0f6354fb-bebc-449c-ad4f-072913e4d77f:/$ cat /opt/vendor/nvidia/eve-platform 
nvidia-jp6
[pillar] root@0f6354fb-bebc-449c-ad4f-072913e4d77f:/$ find /opt/vendor/nvidia/
....

Changelog notes

Add Nvidia mount points for eve-k and pkg/pillar dev. variants.

PR Backports

These mount points were not in use by eve-k for previous versions, so there is no need to backport.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR
  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

rene added 2 commits October 6, 2025 13:50
The /etc/cdi and /opt/vendor directories should also be visible (mounted)
on pkg/kube and pkg/pillar for kubevirt variant.

Signed-off-by: Renê de Souza Pinto <[email protected]>
The /etc/cdi and /opt/vendor directories should also be visible (mounted)
for build-dev.yml and build-rstats.yml on pillar as well.

Signed-off-by: Renê de Souza Pinto <[email protected]>

@OhmSpectator OhmSpectator 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.

Fine. But why wasn’t it caught earlier? I have some doubts about how the KubeVirt variant is being tested.

@rene

rene commented Oct 6, 2025

Copy link
Copy Markdown
Contributor Author

Fine. But why wasn’t it caught earlier? I have some doubts about how the KubeVirt variant is being tested.

@OhmSpectator , I think kubevirt is not tested on arm64. These mount points will be really needed only for the eve-k + arm64 + nvidia use case. Perhaps @zedi-pramodh can give more details.

@OhmSpectator OhmSpectator merged commit bbcb780 into lf-edge:master Oct 6, 2025
32 of 33 checks passed
@rene rene deleted the fix-k-nvidia branch November 18, 2025 14:49
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.

2 participants