Skip to content

Commit 761b30b

Browse files
committed
chore: add ubuntu package install for drivers
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
1 parent 36b6652 commit 761b30b

File tree

1 file changed

+56
-22
lines changed

1 file changed

+56
-22
lines changed

docs/blog/posts/2025-12-01-nvidia-gpu-setup.md

Lines changed: 56 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,42 +80,76 @@ sudo reboot
8080

8181
Wait a minute or two for the instance to come back up, then SSH back in. You can verify your kernel version with `uname -r` to confirm the upgrade took effect.
8282

83-
Here's where things get real. NVIDIA provides drivers specifically optimized for datacenter GPUs like the H100 and A30. We're using the 580.x branch, which is the current production release for these cards. However, always check [NVIDIA's official driver page](https://www.nvidia.com/Download/index.aspx) for the latest recommendations.
83+
=== "Official NVIDIA Drivers"
8484

85-
Download the driver package.
85+
Here's where things get real. NVIDIA provides drivers specifically optimized for datacenter GPUs like the H100 and A30. We're using the 580.x branch, which is the current production release for these cards. However, always check [NVIDIA's official driver page](https://www.nvidia.com/Download/index.aspx) for the latest recommendations.
8686

87-
```bash
88-
wget https://us.download.nvidia.com/tesla/580.105.08/nvidia-driver-local-repo-ubuntu2404-580.105.08_1.0-1_amd64.deb
89-
```
87+
Download the driver package.
88+
89+
```bash
90+
wget https://us.download.nvidia.com/tesla/580.105.08/nvidia-driver-local-repo-ubuntu2404-580.105.08_1.0-1_amd64.deb
91+
```
9092

91-
Install the local repository package.
93+
Install the local repository package.
9294

93-
```bash
94-
sudo dpkg -i nvidia-driver-local-repo-ubuntu2404-580.105.08_1.0-1_amd64.deb
95-
```
95+
```bash
96+
sudo dpkg -i nvidia-driver-local-repo-ubuntu2404-580.105.08_1.0-1_amd64.deb
97+
```
9698

97-
Copy the GPG keyring to your system's trusted keys.
99+
Copy the GPG keyring to your system's trusted keys.
98100

99-
```bash
100-
sudo cp /var/nvidia-driver-local-repo-ubuntu2404-580.105.08/nvidia-driver-local-207F658F-keyring.gpg /usr/share/keyrings/
101-
```
101+
```bash
102+
sudo cp /var/nvidia-driver-local-repo-ubuntu2404-580.105.08/nvidia-driver-local-207F658F-keyring.gpg /usr/share/keyrings/
103+
```
102104

103-
Update your package lists and install the CUDA drivers.
105+
Update your package lists and install the CUDA drivers.
104106

105-
```bash
106-
sudo apt update
107-
sudo apt install -y cuda-drivers-580
108-
```
107+
```bash
108+
sudo apt update
109+
sudo apt install -y cuda-drivers-580
110+
```
111+
112+
!!! note "Alternative: Open-Source NVIDIA Drivers"
113+
114+
If you prefer the open-source kernel modules (which NVIDIA now provides for datacenter GPUs), you can install those instead:
115+
116+
```bash
117+
sudo apt install -y nvidia-open-580
118+
```
119+
120+
The open drivers provide identical functionality for compute workloads and are fully supported on H100/A30 hardware. The choice between proprietary and open modules is largely philosophical at this point, both work.
121+
122+
=== "Distro Drivers"
123+
124+
Ubuntu includes NVIDIA drivers in its default repositories. While these may not always be the absolute latest, they are tested and integrated with the distro's kernel.
109125

110-
!!! note "Alternative: Open-Source NVIDIA Drivers"
126+
Install the driver package common package.
111127

112-
If you prefer the open-source kernel modules (which NVIDIA now provides for datacenter GPUs), you can install those instead:
128+
```bash
129+
sudo apt install -y ubuntu-drivers-common
130+
```
131+
132+
Use the `ubuntu-drivers` tool to automatically identify and install the recommended NVIDIA driver for your GPU.
113133

114134
```bash
115-
sudo apt install -y nvidia-open-580
135+
sudo ubuntu-drivers autoinstall
116136
```
117137

118-
The open drivers provide identical functionality for compute workloads and are fully supported on H100/A30 hardware. The choice between proprietary and open modules is largely philosophical at this point, both work.
138+
!!! note "Alternative: Open-Source NVIDIA Drivers"
139+
140+
If you want to install a specific version of the open-source NVIDIA drivers, you can do so with:
141+
142+
```bash
143+
sudo ubuntu-drivers list --gpgpu
144+
```
145+
146+
Then install the desired version, for example:
147+
148+
```bash
149+
sudo ubuntu-drivers install --gpgpu nvidia:580-server
150+
```
151+
152+
Refer to the [Ubuntu documentation](https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/) for more details.
119153

120154
Once again, reboot to load the NVIDIA drivers.
121155

0 commit comments

Comments
 (0)