Skip to content

Commit ec0941d

Browse files
committed
Update to Ubuntu 24.04
1 parent f0f54d4 commit ec0941d

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

scripts/packer/gcp-image-cuda.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
"type": "googlecompute",
1212
"project_id": "dstack",
13-
"source_image": "ubuntu-2204-jammy-v20230714",
13+
"source_image": "ubuntu-2404-noble-amd64-v20250828",
1414
"image_name": "{{user `build_prefix`}}dstack-cuda-{{user `image_version` | clean_resource_name}}",
1515
"instance_name": "{{user `build_prefix`}}dstack-cuda-{{user `image_version` | clean_resource_name}}",
1616
"ssh_username": "ubuntu",

scripts/packer/gcp-image.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"type": "googlecompute",
1111
"project_id": "dstack",
12-
"source_image": "ubuntu-2204-jammy-v20230714",
12+
"source_image": "ubuntu-2404-noble-amd64-v20250828",
1313
"image_name": "{{user `build_prefix`}}dstack-{{user `image_version` | clean_resource_name}}",
1414
"instance_name": "{{user `build_prefix`}}dstack-{{user `image_version` | clean_resource_name}}",
1515
"ssh_username": "ubuntu",

scripts/packer/oci-image-cuda.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"compartment_ocid": "{{user `oci_compartment_ocid`}}",
1717
"subnet_ocid": "{{user `oci_subnet_ocid`}}",
1818
"shape": "VM.Standard2.1",
19-
"base_image_ocid": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaxroekfbow3kdrdjlwao6tsxxfcb23xmqrdjtjcay2ow52eijvzqa",
19+
"base_image_ocid": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaahelib4o7g4fsjgck2lhxjmzonvbniwcmjjn2im4cxlksjgyzw5gq",
2020
"image_name": "{{user `build_prefix`}}dstack-cuda-{{user `image_version`}}",
2121
"instance_name": "packer-{{user `build_prefix`}}dstack-cuda-{{user `image_version`}}",
2222
"ssh_username": "ubuntu"

scripts/packer/oci-image.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"compartment_ocid": "{{user `oci_compartment_ocid`}}",
1616
"subnet_ocid": "{{user `oci_subnet_ocid`}}",
1717
"shape": "VM.Standard2.1",
18-
"base_image_ocid": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaxroekfbow3kdrdjlwao6tsxxfcb23xmqrdjtjcay2ow52eijvzqa",
18+
"base_image_ocid": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaahelib4o7g4fsjgck2lhxjmzonvbniwcmjjn2im4cxlksjgyzw5gq",
1919
"image_name": "{{user `build_prefix`}}dstack-{{user `image_version`}}",
2020
"instance_name": "packer-{{user `build_prefix`}}dstack-{{user `image_version`}}",
2121
"ssh_username": "ubuntu"

scripts/packer/provisioners/cuda.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ ARCH=$(uname -m)
1010
CUDA_DISTRO=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g')
1111

1212
# based on https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#ubuntu-lts
13-
wget https://developer.download.nvidia.com/compute/cuda/repos/$CUDA_DISTRO/$ARCH/cuda-keyring_1.0-1_all.deb
14-
sudo dpkg -i cuda-keyring_1.0-1_all.deb
15-
rm cuda-keyring_1.0-1_all.deb
13+
wget https://developer.download.nvidia.com/compute/cuda/repos/$CUDA_DISTRO/$ARCH/cuda-keyring_1.1-1_all.deb
14+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
15+
rm cuda-keyring_1.1-1_all.deb
1616

1717
sudo apt-get update
18-
# Pinned dkms due to https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/2112114
1918
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
20-
dkms=2.8.7-2ubuntu2.2 \
21-
cuda-drivers-$CUDA_DRIVERS_VERSION \
19+
nvidia-driver-$CUDA_DRIVERS_VERSION-server-open \
2220
nvidia-fabricmanager-$CUDA_DRIVERS_VERSION \
2321
datacenter-gpu-manager-4-core datacenter-gpu-manager-4-proprietary datacenter-gpu-manager-exporter
2422
sudo systemctl enable nvidia-fabricmanager

0 commit comments

Comments
 (0)