I am looking for a way to install the NVIDIA drivers and CUDA from a repo in an ESXi environment that has hardware access to an NVIDIA Tesla T4; in analogy to the installation process on physical PCs with a PCIe GPU. Is there such a way for ESXi with GPU, too?
Example:
wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub | sudo apt-key add -
echo "#NVIDA" | sudo tee -a /etc/apt/sources.list
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" | sudo tee -a /etc/apt/sources.list
sudo apt update -y
sudo apt upgrade -y
sudo apt install nvidia-driver-470 cuda