Skip to content

Commit

Permalink
fix: manually install nvidia-ctk
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanAbd committed Jul 18, 2024
1 parent cd6063b commit 022bc85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sysbox-eks.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ build {
"sudo dasel put string --parser toml --selector 'crio.runtime.default_runtime' --file /etc/crio/crio.conf 'nvidia'",
"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",
"sudo apt-get update",
"sudo apt-get install -y nvidia-container-toolkit",
"sudo nvidia-ctk runtime configure --runtime=crio --set-as-default --config=/etc/crio/crio.conf.d/99-nvidia.conf",
"sudo systemctl restart crio"
]
Expand Down

0 comments on commit 022bc85

Please sign in to comment.