Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Check if Your GPU Server Sees the NVIDIA GPU

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Verifying that your server operating system correctly detects and communicates with its NVIDIA GPUs is the foundational step for any high-performance computing, AI training, or rendering workload. This process confirms that the physical hardware is seated correctly, powered on, and recognized by the kernel without requiring complex driver installations first. If the OS cannot see the chip, no amount of software configuration will make it usable.

What You'll Need

  • A server with installed NVIDIA GPUs
  • Access to the command line (SSH or local terminal)
  • Root or sudo privileges
  • Basic familiarity with Linux commands

Step-by-Step

  1. Connect to the Server: Open your terminal and establish an SSH connection to your server using a user account with administrative privileges. If you are working locally, open the terminal application directly.
  2. Run the lspci Command: Type sudo lspci | grep -i nvidia and press Enter. This command queries the PCI bus for all devices and filters the output for lines containing "NVIDIA." If the GPU is physically present and detected by the motherboard, it will appear here. Look for entries like "3D controller" or "VGA compatible controller" associated with NVIDIA Corporation.
  3. Check Kernel Logs: If the previous step returns nothing, check the system boot logs by running dmesg | grep -i nvidia. This reveals if the kernel attempted to load drivers during startup. Errors here often indicate hardware failure or secure boot conflicts.
  4. Verify PCIe Link Status: Run lspci -vvv -s <bus_id>, replacing <bus_id> with the specific ID found in step two (e.g., 01:00.0). Scroll down to the "LnkSta" section. Ensure the link speed and width are not zero. A status of "x8 x8" or "x16 x16" indicates a healthy physical connection.
  5. Install Official Drivers (If Detected): Once the OS sees the hardware via lspci, install the appropriate NVIDIA proprietary drivers. On Ubuntu/Debian systems, use sudo apt install nvidia-driver-535 (adjust version as needed). On RHEL/CentOS, use the repository provided by NVIDIA or the distribution's copr repos.
  6. Confirm with nvidia-smi: After installing drivers, run nvidia-smi. This tool provides a summary table of GPU usage, memory, temperature, and driver version. If this command executes successfully and lists your GPUs, the server fully sees and can utilize the hardware.

Common Mistakes

One frequent error is assuming that seeing the device in lspci means it is ready for compute tasks. lspci only confirms physical presence; nvidia-smi confirms functional readiness. Another mistake is ignoring power requirements. Many data center GPUs require external PCIe power cables that must be plugged in from the PSU, not just rely on the slot’s power delivery. Additionally, users often forget to disable Secure Boot in the BIOS, which prevents unsigned NVIDIA kernels modules from loading, causing detection failures despite correct hardware installation.

Tips

Always ensure your server firmware (BIOS/UEFI) is up to date before troubleshooting GPU issues, as older firmware may have bugs related to PCIe enumeration. When checking lspci, pay attention to the "Class" code; it should read "Display controller" or "3D controller." If it shows "Unknown," the driver is missing entirely. For multi-GPU setups, verify that each card is assigned a unique PCI address to avoid resource conflicts. Finally, keep a record of your GPU serial numbers found in nvidia-smi for future inventory management.

Troubleshooting

If lspci does not list the GPU, the issue is likely hardware-related. Reseat the card firmly in the PCIe slot. Check that all auxiliary power connectors are securely attached. Try moving the GPU to a different slot to rule out a faulty motherboard lane. If lspci sees the card but nvidia-smi fails with "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver," the driver installation is corrupted or mismatched with the kernel version. Reinstall the drivers using the official installer script from NVIDIA’s website, ensuring you match the exact kernel version running on your server. If you encounter "No devices were detected," ensure that the Nouveau open-source driver is blacklisted, as it often conflicts with proprietary NVIDIA drivers.

Frequently Asked Questions

Why does lspci show the GPU but nvidia-smi says no devices?

This indicates that the hardware is detected at the system level, but the proprietary NVIDIA kernel module is either not loaded, incorrectly installed, or blocked by Secure Boot. Reinstalling the driver and disabling Secure Boot usually resolves this.

Can I use open-source drivers instead?

While the Nouveau driver exists, it offers limited performance and compatibility for modern NVIDIA GPUs, especially for CUDA workloads. The proprietary driver is required for most professional and AI applications.

What if my GPU is listed as "Unknown" in lspci?

This means the operating system recognizes a device at that PCI address but lacks the specific driver database entry to identify it. Installing the latest NVIDIA drivers typically resolves this identification issue.

Does Secure Boot affect GPU detection?

Yes. Secure Boot prevents the loading of unsigned kernel modules. Since many NVIDIA drivers are not signed by Microsoft or major Linux distributions, Secure Boot must be disabled in the BIOS/UEFI settings for the driver to load successfully.

How do I check if multiple GPUs are detected?

Run lspci | grep -i nvidia again. Each distinct GPU should appear on a separate line with a unique Bus ID. Alternatively, nvidia-smi -L will list every accessible GPU with its UUID and name.

What should I do if the server freezes after inserting the GPU?

This suggests a power supply issue or a short circuit. Immediately power off the server. Check that the PSU has sufficient wattage for the GPU and that all power cables are fully seated. Test the GPU in another known-good system to isolate the fault.