Repo installation of NVIDIA drivers on ESXi / Linux / Ubuntu 18.04 / x86_64

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?


wget -qO - | sudo apt-key add -

echo "#NVIDA" | sudo tee -a /etc/apt/sources.list

echo "deb /" | sudo tee -a /etc/apt/sources.list

sudo apt update -y
sudo apt upgrade -y
sudo apt install nvidia-driver-470 cuda