@@ -82,25 +82,16 @@ sudo reboot
82
82
83
83
With Secure Boot enabled, all Linux kernel modules are required to be signed by the key trusted by the system.
84
84
85
- 1 . Find latest NVIDIA driver version compatible with Azure
86
-
87
- ```
88
- sudo apt-get update
89
- ```
85
+ 1 . Install pre-built Azure Linux kernel based NVIDIA modules and drivers
90
86
91
- ```
92
- NVIDIA_DRIVER_VERSION=$(sudo apt-cache search 'linux-modules-nvidia-[0-9]+-azure$' | awk '{print $1}' | sort | tail -n 1 | head -n 1 | awk -F"-" '{print $4}')
93
- ```
94
-
95
- 2 . Install pre-built Azure Linux kernel based NVIDIA modules and driver
96
-
97
- ```
98
- sudo apt install -y linux-modules-nvidia-${NVIDIA_DRIVER_VERSION}-azure nvidia-driver-${NVIDIA_DRIVER_VERSION}
87
+ ``` bash
88
+ sudo apt-get update
89
+ sudo apt install -y linux-modules-nvidia-525-azure nvidia-driver-525
99
90
```
100
91
101
- 3 . Change preference of NVIDIA packages to prefer NVIDIA repository
92
+ 2 . Change preference of NVIDIA packages to prefer NVIDIA repository
102
93
103
- ```
94
+ ``` bash
104
95
sudo tee /etc/apt/preferences.d/cuda-repository-pin-600 > /dev/null << EOL
105
96
Package: nsight-compute
106
97
Pin: origin *ubuntu.com*
@@ -120,13 +111,13 @@ With Secure Boot enabled, all Linux kernel modules are required to be signed by
120
111
EOL
121
112
` ` `
122
113
123
- 4 . Add CUDA repository
114
+ 3 . Add CUDA repository
124
115
125
- ```
116
+ ` ` ` bash
126
117
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distro /$arch /3bf863cc.pub
127
118
` ` `
128
119
129
- ```
120
+ ` ` ` bash
130
121
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/$distro /$arch / /"
131
122
` ` `
132
123
@@ -141,62 +132,45 @@ With Secure Boot enabled, all Linux kernel modules are required to be signed by
141
132
142
133
If ` add-apt-repository` command is not found, run ` sudo apt-get install software-properties-common` to install it.
143
134
144
- 5 . Install the kernel headers and development packages, and remove outdated signing key
135
+ 4 . Install kernel headers and development packages, and remove outdated signing key
145
136
146
- ```
137
+ ` ` ` bash
147
138
sudo apt-get install linux-headers-$( uname -r)
148
139
sudo apt-key del 7fa2af80
149
140
` ` `
150
141
151
- 6 . Install the new cuda-keyring package
142
+ 5 . Install the new cuda-keyring package
152
143
153
- ```
144
+ ` ` ` bash
154
145
wget https://developer.download.nvidia.com/compute/cuda/repos/$distro /$arch /cuda-keyring_1.1-1_all.deb
155
146
sudo dpkg -i cuda-keyring_1.1-1_all.deb
156
147
` ` `
157
148
158
149
Note: When prompt on different versions of cuda-keyring, select `Y or I : install the package maintainer' s version` to proceed.
159
-
160
- 7 . Update the APT repository cache
161
-
162
- ```
163
- sudo apt-get update
164
- ```
165
150
166
- 8 . Install CUDA toolkit and driver
151
+ 6. Update APT repository cache and install NVIDIA GPUDirect Storage
167
152
168
- ```
169
- sudo apt-get install -y cuda
153
+ ```bash
154
+ sudo apt-get update
170
155
sudo apt-get install -y nvidia-gds
171
156
```
172
157
173
158
Note that during the installation you will be prompted for password when configuring secure boot, a password of your choice needs to be provided and then proceed.
174
159
175
160

176
161
177
- 9 . Reboot the VM
162
+ 7 . Reboot the VM
178
163
179
- ```
164
+ ```bash
180
165
sudo reboot
181
166
```
182
167
183
- 10 . Verify the installation
184
-
185
- a. Verify NVIDIA driver is installed and loaded
168
+ 8. Verify NVIDIA drivers are installed and loaded
186
169
187
- ```
188
- dpkg -l | grep -i nvidia
189
- nvidia-smi
190
- ```
191
-
192
- b. Verify CUDA toolkit is installed and loaded
193
-
194
- ```
195
- dpkg -l | grep -i cuda
196
- export PATH=/usr/local/cuda/bin:$PATH
197
- export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
198
- nvcc --version
199
- ```
170
+ ```bash
171
+ dpkg -l | grep -i nvidia
172
+ nvidia-smi
173
+ ```
200
174
201
175
202
176
### CentOS or Red Hat Enterprise Linux
0 commit comments