Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .pipelines/.vsts-vhd-builder-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,8 @@ stages:
echo '##vso[task.setvariable variable=IMG_VERSION]latest'
echo '##vso[task.setvariable variable=HYPERV_GENERATION]V2'
echo '##vso[task.setvariable variable=AZURE_VM_SIZE]Standard_D16ds_v5'
# NVIDIA_CUDA_PREBAKE bakes the CUDA driver kernel module into this shared x86 gen2 image so GPU
# nodes can later skip the ~80-150s in-CSE DKMS compile via the configGPUDrivers skip-build path
# (PR #8787); non-GPU and --gpu-driver None nodes tear the module down during provisioning.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]NVIDIA_CUDA_PREBAKE'
# Cache the GPU installer without registering NVIDIA on this shared image.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]None'
echo '##vso[task.setvariable variable=ARCHITECTURE]X86_64'
echo '##vso[task.setvariable variable=ENABLE_FIPS]False'
echo '##vso[task.setvariable variable=ENABLE_TRUSTED_LAUNCH]False'
Expand Down Expand Up @@ -707,10 +705,8 @@ stages:
echo '##vso[task.setvariable variable=IMG_VERSION]latest'
echo '##vso[task.setvariable variable=HYPERV_GENERATION]V2'
echo '##vso[task.setvariable variable=AZURE_VM_SIZE]Standard_D16ds_v5'
# NVIDIA_CUDA_PREBAKE bakes the CUDA driver kernel module into this shared x86 gen2 image so GPU
# nodes can later skip the ~80-150s in-CSE DKMS compile via the configGPUDrivers skip-build path
# (PR #8787); non-GPU and --gpu-driver None nodes tear the module down during provisioning.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]NVIDIA_CUDA_PREBAKE'
# Cache the GPU installer without registering NVIDIA on this shared image.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]None'
echo '##vso[task.setvariable variable=ARCHITECTURE]X86_64'
echo '##vso[task.setvariable variable=ENABLE_FIPS]False'
echo '##vso[task.setvariable variable=ENABLE_TRUSTED_LAUNCH]False'
Expand Down
12 changes: 4 additions & 8 deletions .pipelines/.vsts-vhd-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ stages:
echo '##vso[task.setvariable variable=IMG_VERSION]latest'
echo '##vso[task.setvariable variable=HYPERV_GENERATION]V2'
echo '##vso[task.setvariable variable=AZURE_VM_SIZE]Standard_D16ds_v5'
# NVIDIA_CUDA_PREBAKE bakes the CUDA driver kernel module into this shared x86 gen2 image so GPU
# nodes can later skip the ~80-150s in-CSE DKMS compile via the configGPUDrivers skip-build path
# (PR #8787); non-GPU and --gpu-driver None nodes tear the module down during provisioning.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]NVIDIA_CUDA_PREBAKE'
# Cache the GPU installer without registering NVIDIA on this shared image.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]None'
echo '##vso[task.setvariable variable=ARCHITECTURE]X86_64'
echo '##vso[task.setvariable variable=ENABLE_FIPS]false'
echo '##vso[task.setvariable variable=ENABLE_TRUSTED_LAUNCH]False'
Expand Down Expand Up @@ -133,10 +131,8 @@ stages:
echo '##vso[task.setvariable variable=IMG_VERSION]latest'
echo '##vso[task.setvariable variable=HYPERV_GENERATION]V2'
echo '##vso[task.setvariable variable=AZURE_VM_SIZE]Standard_D16ds_v5'
# NVIDIA_CUDA_PREBAKE bakes the CUDA driver kernel module into this shared x86 gen2 image so GPU
# nodes can later skip the ~80-150s in-CSE DKMS compile via the configGPUDrivers skip-build path
# (PR #8787); non-GPU and --gpu-driver None nodes tear the module down during provisioning.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]NVIDIA_CUDA_PREBAKE'
# Cache the GPU installer without registering NVIDIA on this shared image.
echo '##vso[task.setvariable variable=FEATURE_FLAGS]None'
echo '##vso[task.setvariable variable=ARCHITECTURE]X86_64'
echo '##vso[task.setvariable variable=ENABLE_FIPS]False'
echo '##vso[task.setvariable variable=ENABLE_TRUSTED_LAUNCH]False'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ installUbuntu2604MinimalBuildDeps() {
aptGetBatchInstallPackagesWithFallback "${pkg_list[@]}"
}

# Shared by VHD production and content validation; independent of the prebake feature flag.
isUbuntuGPUCacheOnlyImage() {
local version="$1" arch="$2" sku="$3" fips="$4"
case "${version}:${arch}:${sku}:${fips,,}" in
22.04:amd64:22_04-lts-gen2:false|24.04:amd64:server:false) return 0 ;;
*) return 1 ;;
esac
}

installDeps() {
wait_for_apt_locks
retrycmd_silent 120 5 25 curl -fsSL https://packages.microsoft.com/config/ubuntu/${UBUNTU_RELEASE}/packages-microsoft-prod.deb > /tmp/packages-microsoft-prod.deb || exit $ERR_MS_PROD_DEB_DOWNLOAD_TIMEOUT
Expand Down
Loading
Loading