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.
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
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.
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.
Update the system
Run the package updates and reboot so the latest kernel is active before installing drivers.
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.
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.
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.
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).
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.
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:
FAQ
Frequently asked questions
Which Linux should I use?
A long-term-support server release supported by your GPU vendor and AI frameworks. Ubuntu Server LTS and enterprise Linux distributions are common.
A GPU is missing in lspci. What now?
Power off, reseat the card and its power cables, and check the BIOS slot settings. If it is still missing, contact support with the BMC hardware log.
Keep learning
Related guides
Before a GPU or storage server arrives, check the rack depth, floor load, power circuits, UPS capacity and cooling so it runs at full load from day one.
Read more →Use a Storage Server as a CCTV Archive (NFS or iSCSI)Extend recorders or a video management system with a large storage server: share the RAID array over NFS or iSCSI on a dedicated VLAN, connect the recorders and check retention.
Read more →First Setup of a New Server: Rack, Power and BMC Remote ManagementUnbox, rack and power a new server, then set up its BMC (baseboard management controller) so you can power it on, watch the console and get alerts from anywhere, before installing any operating system.
Read more →Stuck on a step?
Ask Navijin technical support or an authorised partner for help with your configuration.