Перейти к файлу
renovate[bot] 027341e59f
chore(deps): update dependency nvidia-cuda-driver to v565
2024-11-07 22:25:05 +00:00
.github/workflows remove version format for GRID image in tag (#65) 2024-10-21 16:55:52 -07:00
10-nvidia-runtime.toml support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
71-nvidia-char-dev.rules fix: nvidia dev char link issue 2023-06-04 12:11:48 -04:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2022-08-03 13:21:28 -07:00
Dockerfile chore(deps): update mcr.microsoft.com/mirror/docker/library/ubuntu docker tag to v24 (#57) 2024-10-03 11:25:26 -04:00
LICENSE LICENSE committed 2022-08-03 13:21:29 -07:00
README.md Update readme instructions (#13) 2022-12-15 15:35:11 -08:00
SECURITY.md SECURITY.md committed 2022-08-03 13:21:31 -07:00
SUPPORT.md SUPPORT.md committed 2022-08-03 13:21:32 -07:00
blacklist-nouveau.conf add initial implementation 2022-08-03 23:55:38 +02:00
config.sh chore(deps): update dependency nvidia/nvidia-container-toolkit to v1.17.0 (#69) 2024-11-04 15:29:43 -08:00
download.sh remove nvidia-docker, update config in download.sh and update nvidia container toolkit to 1.16.0 (#45) 2024-07-29 15:37:05 -07:00
driver_config.yml chore(deps): update dependency nvidia-cuda-driver to v565 2024-11-07 22:25:05 +00:00
entrypoint.sh fix: move errexit and true in case of dir not present 2023-02-27 08:08:03 -05:00
fabricmanager.md fix: fabricmanager install 2022-08-08 17:45:14 +02:00
fm_run_package_installer.sh add h100 to fm installer script (#23) 2023-11-09 16:54:27 -08:00
install.sh remove nvidia-docker, update config in download.sh and update nvidia container toolkit to 1.16.0 (#45) 2024-07-29 15:37:05 -07:00
justfile Refactor GRID build, publish and test pipelines to consume driver from config (#48) 2024-08-07 15:15:41 -07:00
manifests.yaml support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
nvidia-persistenced.service feat: add nvidia-persistenced systemd service 2023-05-17 20:24:41 -04:00
package_manager_helpers.sh Retry checking for locks during apt/dpkg operations in install.sh (#12) 2022-12-15 14:38:27 -08:00
renovate.json Configure auto-updates for nvidia-container-toolkit (via Renovate) (#68) 2024-11-01 10:01:41 -04:00

README.md

Driver container image for AKS VHD

This repo provides steps to build a container image with all components required for Kubernetes Nvidia GPU integration. Run it as a privileged container in the host PID namespace. It will enter the host mount namespace and install the nvidia drivers, container runtime, and associated libraries on the host, validating their functionality

Build

docker build -f Dockerfile  --build-arg DRIVER_VERSION=??? -t docker.io/alexeldeib/aks-gpu:latest .
docker push docker.io/alexeldeib/aks-gpu:latest

For DRIVER_VERSION, following versions are known to work :

  • 470.82.01
  • 510.47.03
  • 515.65.01

Run

mkdir -p /opt/{actions,gpu}
ctr image pull docker.io/alexeldeib/aks-gpu:latest
ctr run --privileged --net-host --with-ns pid:/proc/1/ns/pid --mount type=bind,src=/opt/gpu,dst=/mnt/gpu,options=rbind --mount type=bind,src=/opt/actions,dst=/mnt/actions,options=rbind -t docker.io/alexeldeib/aks-gpu:latest gpuinstall /entrypoint.sh install

or Docker (untested...)

docker run -it --privileged --net=host --pid=host -v /opt/gpu:/mnt/gpu -v /opt/actions:/mnt/actions --rm docker.io/alexeldeib/aks-gpu:latest install

Note the --with-ns pid:/proc/1/ns/pid and --privileged, as well as the bind mounts, these are key.

Fabric manager installation

This repo also includes an installation script for Nvidia's fabric manager component. There is an existing installation script in the redistributed files, but in the latest versions some of the filepaths changed and it seems broken. This is a workaround until an upstream fix lands. See fabricmanager.md for details.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.