Skip to content

Commit a04ee3f

Browse files
add enroot config and ibvervs-utils to image build
1 parent 91299b4 commit a04ee3f

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ deployment_groups:
6565
- hold
6666
- "{{ item }}"
6767
loop: "{{ nvidia_packages_to_hold }}"
68-
68+
# An unlimited stack size resulted in PMIx errors during
69+
# NCCL testing. Setting the stack size to 8192 resolves these failures
70+
# and is an intentional change.
6971
- type: data
7072
destination: /etc/security/limits.d/99-unlimited.conf
7173
content: |
@@ -75,6 +77,14 @@ deployment_groups:
7577
* - nofile 1048576
7678
* - cpu unlimited
7779
* - rtprio unlimited
80+
- type: data
81+
destination: /etc/enroot/enroot.conf
82+
content: |
83+
ENROOT_CONFIG_PATH ${HOME}/.enroot
84+
ENROOT_RUNTIME_PATH /mnt/localssd/${UID}/enroot/runtime
85+
ENROOT_CACHE_PATH /mnt/localssd/${UID}/enroot/cache
86+
ENROOT_DATA_PATH /mnt/localssd/${UID}/enroot/data
87+
ENROOT_TEMP_PATH /mnt/localssd/${UID}/enroot
7888
- type: ansible-local
7989
destination: update_settings.yml
8090
content: |
@@ -185,6 +195,19 @@ deployment_groups:
185195
name: nvidia-persistenced.service
186196
state: stopped
187197
enabled: false
198+
- type: ansible-local
199+
destination: install_ibverbs_utils.yml
200+
content: |
201+
---
202+
- name: Install ibverbs-utils
203+
hosts: all
204+
become: true
205+
tasks:
206+
- name: Install Linux Modules Extra
207+
ansible.builtin.package:
208+
name:
209+
- ibverbs-utils
210+
state: present
188211
# The script below is intended to bypass the packer script that fails on Ubuntu 24.04 images
189212
# Once Ubuntu 24.04 no longer sets ${HOSTNAME} to the FQDN, this can be removed
190213
- type: shell

0 commit comments

Comments
 (0)