An Azure service that is used to provision Windows and Linux virtual machines.
Hi Dennis,
Thanks for the detailed error output that helps a lot.
The Installation failed. Exit code 0 text from the NvidiaGpuDriverLinux extension is generic; the actual cause is logged inside the VM. Based on your configuration (Standard_NC4as_T4_v3, Ubuntu Server 24.04, West US 2), here are the most likely causes and how to resolve them.
- Secure Boot / Trusted Launch (most common on Ubuntu 24.04) Ubuntu 24.04 Gen2 images are deployed as Trusted Launch VMs with Secure Boot enabled by default. The GPU driver extension does not support Secure Boot all boot components must be signed by a trusted publisher, and the unsigned NVIDIA kernel module is rejected, causing the install to fail (often silently). Secure Boot and vTPM should be disabled for the extension path, because the process can hang or fail when they're enabled.
Disable Secure Boot on the VM (VM > Configuration / Security type), reboot, then re‑add the extension. This is the single most common difference between a deployment that "worked before" and one that now fails.
- NVIDIA package signing key rotation (known issue on NC‑series Linux) There is a known issue where the public signing keys NVIDIA uses for its apt/CUDA repositories were rotated, and the extension fails to download/install the driver as a result. This affects all NC‑series sizes, including
Standard_NC4as_T4_v3. If Secure Boot is already off, refresh the signing key inside the guest and re‑run the extension:
- OS / driver support matrix On
NCasT4_v3, the extension installs CUDA drivers by default. The extension's supported‑distro matrix lists Ubuntu 20.04 LTS for CUDA, while 22.04/24.04 are aligned to the GRID path. If you need the driver on 24.04 specifically, the reliable route is the manual install documented for N‑series Linux.
Diagnostics to confirm root cause
Confirm the GPU is visible to the VM
A line like nvidia: module verification failed: signature and/or required key missing confirms the Secure Boot cause.
Recommended fix path
- Disable Secure Boot (and vTPM) on the VM > reboot.
- Remove and re‑add the
NvidiaGpuDriverLinuxextension. - If it still fails, refresh the NVIDIA signing key (above) and retry, or install the driver manually per the N‑series Linux guide and validate with
nvidia-smi.
Reference: NVIDIA GPU Driver Extension for Linux and N‑series GPU driver setup for Linux