Перейти к файлу
Pablo Trivino 670c102a66 remove checks nvidia checks that cause vhd build to fail 2023-01-12 14:42:07 -08:00
.github/workflows fix: missing login/push (#8) 2022-09-15 15:08:47 -04:00
10-nvidia-runtime.toml support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2022-08-03 13:21:28 -07:00
Dockerfile remove checks nvidia checks that cause vhd build to fail 2023-01-12 14:42:07 -08: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 support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
download.sh support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
entrypoint.sh support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
fabricmanager.md fix: fabricmanager install 2022-08-08 17:45:14 +02:00
fm_run_package_installer.sh fix: don't delete files after extraction 2022-08-09 01:45:38 +02:00
install.sh remove checks nvidia checks that cause vhd build to fail 2023-01-12 14:42:07 -08:00
justfile support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -04:00
manifests.yaml support grid drivers, add 515 cuda drivers (#3) 2022-09-15 14:53:19 -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

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.