nvidia-smi: No devices were found on Ubuntu Linux
Troubleshoot nvidia-smi No devices were found on Ubuntu 22.04 and 24.04: inspect lspci enumeration, Secure Boot DKMS signing, open kernel modules, and Xid 79.
No devices were found means the NVIDIA kernel driver could not bind to any GPU on the PCIe bus. Inspect lspci and dmesg immediately to distinguish physical PCIe absence from Secure Boot unsigned-module rejection or open vs proprietary kernel module mismatch.
- Symptom
$ nvidia-smi No devices were found $ python3 -c "import torch; torch.cuda.current_device()" RuntimeError: No CUDA GPUs are available- Root cause
- Kernel module failed to load/bind (Secure Boot, missing kernel headers, open-kernel mismatch) or GPU is unreachable over PCIe.
- Recommended fix
- Check physical PCIe visibility first using lspci -nn | grep -i nvidia. If GPUs are absent from lspci, inspect BMC/IPMI power, risers, and VM PCIe passthrough.
- How Denpex helps
- Denpex investigates nvidia-smi: No devices were found on Ubuntu Linux using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
The nvidia-smi utility exited after querying NVML and finding zero initialized NVIDIA GPU devices bound to the kernel driver.
Is this what broke your run? Paste your log.
You're reading about nvidia-smi: No devices were found on Ubuntu Linux. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
On Ubuntu 22.04 and 24.04 servers, common triggers are UEFI Secure Boot rejecting an unsigned DKMS nvidia.ko module, missing linux-headers after an automated kernel bump, installing proprietary modules on GPUs requiring nvidia-driver-open, or a hardware PCIe drop (Xid 79).
What you'll observe
- nvidia-smi prints No devices were found
- PyTorch, vLLM, and Kubernetes device plugins report zero GPUs on the host
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| No devices were found | Kernel module failed to load/bind (Secure Boot, missing kernel headers, open-kernel mismatch) or GPU is unreachable over PCIe. |
| NVRM: The NVIDIA probe routine was not called for 1 device(s) or module verification failed in dmesg | Kernel module failed to load/bind (Secure Boot, missing kernel headers, open-kernel mismatch) or GPU is unreachable over PCIe. |
Which systems are affected
- Ubuntu 22.04 / 24.04 GPU servers and workstations
- Ada, Hopper, and Blackwell bare-metal or passthrough VMs
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Verify lspci -nn | grep -i nvidia lists every expected GPU.
- ✓Confirm lsmod | grep nvidia shows nvidia loaded and nvidia-smi -L prints all GPU UUIDs.
Root cause
- Kernel module failed to load/bind (Secure Boot, missing kernel headers, open-kernel mismatch) or GPU is unreachable over PCIe.
The fix and how to prevent it
How to fix it
- Check physical PCIe visibility first using lspci -nn | grep -i nvidia. If GPUs are absent from lspci, inspect BMC/IPMI power, risers, and VM PCIe passthrough.
- Inspect kernel driver messages with dmesg -T | grep -iE 'NVRM|nvidia|secureboot|dkms'.
- If Secure Boot is enabled and blocking unsigned DKMS modules, enroll the MOK key or disable Secure Boot per host security policy, then rebuild DKMS for uname -r.
- Verify whether your GPU architecture requires nvidia-driver-*-open modules (required on Blackwell GPUs) instead of legacy proprietary modules.
Step-by-step remediation
- 1Run lspci -nn | grep -i nvidia to confirm the OS sees the physical devices.
- 2Run dmesg -T | grep -iE 'NVRM|nvidia|secureboot' to locate probe or signature errors.
- 3Fix kernel headers, MOK signing, or open kernel module pairing, then verify nvidia-smi -L.
How to prevent it
- Pin kernel and NVIDIA driver packages on production GPU nodes so kernel updates do not outrun matching headers
- Automate pre-job NVML enumeration checks in Slurm NHC or Kubernetes node readiness
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Searchable error signature
$ nvidia-smi
No devices were found
$ python3 -c "import torch; torch.cuda.current_device()"
RuntimeError: No CUDA GPUs are available
[ 14.829104] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 14.829112] NVRM: This can occur when another driver was loaded and obtained ownership of the NVIDIA device(s).
[ 14.829125] NVRM: RmInitAdapter failed! (0x26:0x56:1584) module verification failedUse this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Checking lspci separates physical PCIe hardware loss from Linux kernel module binding failures so operators do not repeatedly reinstall drivers onto a dropped PCIe card or leave Secure Boot blocking valid drivers.
Code examples
lspci -nn | grep -i nvidia
uname -r && dkms status
dmesg -T | grep -iE 'NVRM|nvidia|secureboot|Xid' | tail -n 30This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.
Best practices by model family
| Model / Stack | Recommendation | Notes |
|---|---|---|
| Missing from lspci | Inspect BMC, power, and PCIe bus | Software driver reinstalls will not restore an unenumerated PCIe device. |
| Present in lspci, absent in nvidia-smi | Inspect dmesg NVRM / Secure Boot / open module | Fix kernel headers, MOK signing, or nvidia-open module match. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| First triage step | lspci + dmesg separation | Blindly purging and reinstalling NVIDIA packages |
| Blackwell / Hopper support | Verified open vs proprietary module selection | Module probe errors on boot |
Diagnostic note
“Blackwell datacenter and RTX 50-series GPUs require NVIDIA open kernel modules. Installing a proprietary-only driver package on those boards completes apt cleanly and fails at boot with No devices were found and an NVRM probe error in dmesg.”
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Why did nvidia-smi stop finding devices right after an Ubuntu kernel update?
Can Xid 79 cause No devices were found?
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.