Hands-on tutorial

Tutorials · Servers & Storage

How to Install Linux and GPU Drivers on an AI Server

Prepare a GPU server for AI work: install a long-term-support Linux release, check that every GPU is detected, install the GPU vendor's driver and container support, and confirm with a quick test.

Intermediate40 min9 steps

Before you start

  • BMC remote console with virtual media
  • An installation image of a long-term-support Linux server release (for example Ubuntu Server LTS)
  • Internet or a local package mirror

Step by step

  1. Check BIOS settings

    In the BIOS, enable the options your GPU vendor recommends for large GPU memory (often called Above 4G Decoding and Resizable BAR) and set the PCIe slots to their full generation.

  2. Install the operating system

    Boot the installation image through virtual media, install on the mirrored boot drives, enable SSH and create an administrator account with a key.

  3. Update the system

    Run the package updates and reboot so the latest kernel is active before installing drivers.

  4. Check the GPUs are detected

    Run lspci | grep -i -E 'vga|3d|display' and confirm every installed GPU appears. A missing card usually means a seating, power-cable or BIOS issue.

  5. Install the GPU driver

    Install the driver from your GPU vendor or the distribution's driver tool (on Ubuntu: sudo ubuntu-drivers install), then reboot.

  6. Verify the driver

    Run the vendor's monitoring tool (for NVIDIA cards: nvidia-smi). Every GPU should be listed with its memory, temperature and power limit.

  7. Add container support

    Install a container engine and the GPU vendor's container toolkit, then test with a GPU-enabled container (for example docker run --rm --gpus all <image> nvidia-smi).

  8. Watch temperatures under load

    Run a short training or benchmark job and watch GPU temperature, power and fan speed from the vendor tool and the BMC sensors.

  9. Save the baseline

    Record the OS, kernel, driver and toolkit versions. Pin the driver version so routine updates do not change it unexpectedly.

Pro tips

  • Update drivers on a test server first.
  • Keep the BMC on the management VLAN and SSH on the admin VLAN.
  • Use containers so each project brings its own framework versions.

Last reviewed: