Skip to content

Commit 1d42a4d

Browse files
Merge pull request #4413 from harshthakkar01/image-build
Fix nvidia version mismatch for service images
2 parents fe958ba + d6b50a1 commit 1d42a4d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

examples/machine-learning/build-service-images/common/blueprint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ deployment_groups:
8282
ansible.builtin.apt:
8383
deb: "{{ cuda_repo_filename }}"
8484
state: present
85+
# The following 2 tasks work around a temporary issue with Ubuntu
86+
# packaging of NVIDIA 570 driver series for kernel 6.8.0-1032
87+
# This command ensures that any holds are removed before attempting an upgrade.
88+
# We ignore failures in case the packages were not held.
89+
- name: Unhold NVIDIA driver packages
90+
ansible.builtin.command:
91+
cmd: apt-mark unhold linux-modules-nvidia-570-server-open-gcp linux-modules-nvidia-570-server-open-6.8.0-1032-gcp
92+
become: true
93+
changed_when: false
94+
failed_when: false
95+
- name: Install latest NVIDIA driver metapackage and kernel module
96+
ansible.builtin.apt:
97+
name:
98+
- linux-modules-nvidia-570-server-open-gcp
99+
- linux-modules-nvidia-570-server-open-6.8.0-1032-gcp
100+
state: latest
101+
update_cache: yes
102+
become: true
85103
- name: Reduce NVIDIA repository priority
86104
ansible.builtin.copy:
87105
dest: /etc/apt/preferences.d/cuda-repository-pin-600

0 commit comments

Comments
 (0)