Skip to content

fix: azurelinux configure GRID vGPU licensing#8106

Merged
miz060 merged 5 commits intomainfrom
mitchzhu/fix-grid-license
Mar 18, 2026
Merged

fix: azurelinux configure GRID vGPU licensing#8106
miz060 merged 5 commits intomainfrom
mitchzhu/fix-grid-license

Conversation

@miz060
Copy link
Copy Markdown
Member

@miz060 miz060 commented Mar 17, 2026

What this PR does / why we need it:
I’ve added the Azure Linux NVIDIA vGPU driver installation path to AgentBaker (#7986). The driver installs and works as expected, but vGPU licensing was not being configured. This change adds the missing setup so vGPU licensing is properly configured. Verified via extra GRID test scenario using AgentBaker E2E, similar to ScenarioUbuntu2404GRID: https://msazure.visualstudio.com/CloudNativeCompute/_build/results?buildId=157022962&view=results

Which issue(s) this PR fixes:

Fixes #

miz060 added 3 commits March 17, 2026 02:13
Set gridd config and restart its systemd service so that the daemon can
acquire a license.

Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
Copilot AI review requested due to automatic review settings March 17, 2026 03:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Linux provisioning to configure NVIDIA GRID vGPU licensing on Mariner/AzureLinux and regenerates the corresponding CustomData snapshot test fixtures used by pkg/agent.

Changes:

  • Add Mariner/AzureLinux-only logic in configGPUDrivers() to set FeatureType=1 in /etc/nvidia/gridd.conf and (re)enable/(re)start nvidia-gridd when NVIDIA_GPU_DRIVER_TYPE=grid.
  • Regenerate multiple pkg/agent/testdata/**/CustomData files to reflect the updated provisioning payload.
  • No functional code changes outside the GPU provisioning path; remaining diffs are snapshot updates.

Reviewed changes

Copilot reviewed 32 out of 72 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
parts/linux/cloud-init/artifacts/cse_config.sh Adds GRID vGPU licensing configuration/restart for nvidia-gridd on Mariner/AzureLinux during GPU driver setup.
pkg/agent/testdata/MarinerV2+Kata/CustomData Regenerated CustomData fixture.
pkg/agent/testdata/MarinerV2+CustomCloud/CustomData Regenerated CustomData fixture.
pkg/agent/testdata/CustomizedImage/CustomData Regenerated CustomData fixture.
pkg/agent/testdata/AzureLinuxV3+Kata/CustomData Regenerated CustomData fixture.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread parts/linux/cloud-init/artifacts/cse_config.sh Outdated
# GRID vGPU licensing: configure and restart nvidia-gridd after device nodes exist
if [ "$NVIDIA_GPU_DRIVER_TYPE" = "grid" ]; then
sed -i -e '/^FeatureType=/d' -e '$ a FeatureType=1' /etc/nvidia/gridd.conf
systemctl enable nvidia-gridd.service
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we have systemctlEnableAndStart which you can use

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Got it. Updated to use systemctlEnableAndStart as suggested.

Comment thread parts/linux/cloud-init/artifacts/cse_config.sh Outdated
Copilot AI review requested due to automatic review settings March 17, 2026 19:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Linux CSE GPU driver configuration to properly bring up NVIDIA GRID vGPU licensing on Azure Linux/Mariner by starting the nvidia-gridd systemd service after GPU device nodes are available, and refreshes the generated CustomData snapshots accordingly.

Changes:

  • Start/enable nvidia-gridd during GPU driver configuration for Mariner/Azure Linux when NVIDIA_GPU_DRIVER_TYPE=grid.
  • Regenerate/update multiple pkg/agent/testdata/**/CustomData snapshot files to reflect the script change.

Reviewed changes

Copilot reviewed 32 out of 72 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
parts/linux/cloud-init/artifacts/cse_config.sh Adds a nvidia-gridd start/enable step for GRID driver type on Mariner/Azure Linux.
pkg/agent/testdata/MarinerV2+Kata/CustomData Updated generated CustomData snapshot (gzip/base64 payload changed).
pkg/agent/testdata/MarinerV2+CustomCloud/CustomData Updated generated CustomData snapshot (gzip/base64 payload changed).
pkg/agent/testdata/CustomizedImage/CustomData Updated generated CustomData snapshot (gzip/base64 payload changed).
pkg/agent/testdata/AzureLinuxV3+Kata/CustomData Updated generated CustomData snapshot (gzip/base64 payload changed).

You can also share your feedback on Copilot code review. Take the survey.

Comment thread parts/linux/cloud-init/artifacts/cse_config.sh
@miz060 miz060 merged commit 4a8fd7e into main Mar 18, 2026
31 of 33 checks passed
@miz060 miz060 deleted the mitchzhu/fix-grid-license branch March 18, 2026 01:05
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.

5 participants