Skip to content

Commit

Permalink
fix: dur
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Dec 11, 2024
1 parent 4032500 commit f6dbf11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ build {
"sudo dasel put string --parser toml --file /etc/crio/crio.conf --selector 'crio.runtime.allowed_devices.[]' --multiple /dev/nvidia-uvm-tools",
"sudo dasel put string --parser toml --file /etc/crio/crio.conf --selector 'crio.runtime.allowed_devices.[]' --multiple /dev/vga_arbiter",

"sudo dasel put string --parser toml --selector 'crio.runtime.default_runtime' --file /etc/crio/crio.conf 'nvidia'",
# some pods do not work with sysbox-runc such as those with host networking
"sudo dasel put string --parser toml --selector 'crio.runtime.default_runtime' --file /etc/crio/crio.conf 'runc'",
"sudo dasel put object --parser toml --selector 'crio.runtime.runtimes.nvidia' --file /etc/crio/crio.conf --type string 'runtime_path=/usr/bin/nvidia-container-runtime'",

"curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list",
Expand All @@ -466,6 +467,7 @@ build {
"sudo nvidia-ctk runtime configure --runtime=crio --set-as-default --config=/etc/crio/crio.conf.d/99-nvidia.conf",

"sudo dasel delete --parser toml --selector 'nvidia-container-runtime.runtimes' --file /etc/nvidia-container-runtime/config.toml",
# pods which specify nvidia runtime will use sysbox-runc
"sudo dasel put string --parser toml --selector 'nvidia-container-runtime.runtimes.[]' --file /etc/nvidia-container-runtime/config.toml 'sysbox-runc'",

"sudo systemctl restart crio"
Expand Down

0 comments on commit f6dbf11

Please sign in to comment.