Skip to content

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.

Quick answer

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.
Hardware#nvidia-smi#ubuntu#dkms#secure-boot#driver#pcie

What this failure is

The nvidia-smi utility exited after querying NVML and finding zero initialized NVIDIA GPU devices bound to the kernel driver.

Live diagnosis, no signup

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

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.

SymptomPossible explanation
No devices were foundKernel 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 dmesgKernel 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

  1. 1Run lspci -nn | grep -i nvidia to confirm the OS sees the physical devices.
  2. 2Run dmesg -T | grep -iE 'NVRM|nvidia|secureboot' to locate probe or signature errors.
  3. 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.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Searchable error signature

search key
$ 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 failed

Use 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 logs

No 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

snippet
lspci -nn | grep -i nvidia
uname -r && dkms status
dmesg -T | grep -iE 'NVRM|nvidia|secureboot|Xid' | tail -n 30

This 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 / StackRecommendationNotes
Missing from lspciInspect BMC, power, and PCIe busSoftware driver reinstalls will not restore an unenumerated PCIe device.
Present in lspci, absent in nvidia-smiInspect dmesg NVRM / Secure Boot / open moduleFix kernel headers, MOK signing, or nvidia-open module match.

With the fix vs without the fix

DimensionWith the fixWithout the fix
First triage steplspci + dmesg separationBlindly purging and reinstalling NVIDIA packages
Blackwell / Hopper supportVerified open vs proprietary module selectionModule 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 extension

Frequently 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?
The newly booted kernel either lacks matching linux-headers for DKMS to build nvidia.ko, or Secure Boot rejected the newly built unsigned module.
Can Xid 79 cause No devices were found?
Yes. After a GPU falls off the PCIe bus (Xid 79), subsequent nvidia-smi queries may report No devices were found until power/PCIe reachability is restored.

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.