Skip to content

Commit

Permalink
scripts: Use older jammy image
Browse files Browse the repository at this point in the history
This avoids an issue with CH and a virtio-net bug in the kernel that
prevents it booting.

See: cloud-hypervisor/cloud-hypervisor#5998

Signed-off-by: Rob Bradford <[email protected]>
  • Loading branch information
rbradford committed Dec 11, 2023
1 parent ea25de8 commit c8a1e56
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/fetch_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ convert_image() {
fetch_raw_ubuntu_image() {
OS_NAME="$1"
OS_ARCH="$2"
OS_DATE="$3"
OS_IMAGE_NAME="$OS_NAME-server-cloudimg-$OS_ARCH.img"
OS_RAW_IMAGE_NAME="$OS_NAME-server-cloudimg-$OS_ARCH-raw.img"
OS_IMAGE_BASE="https://cloud-images.ubuntu.com"
OS_IMAGE_URL="$OS_IMAGE_BASE/$OS_NAME/current/$OS_IMAGE_NAME"
OS_IMAGE_URL="$OS_IMAGE_BASE/$OS_NAME/$OS_DATE/$OS_IMAGE_NAME"
fetch_image "$OS_IMAGE_NAME" "$OS_IMAGE_URL"
convert_image "$OS_IMAGE_NAME" "$OS_RAW_IMAGE_NAME"
}

aarch64_fetch_disk_images() {
fetch_raw_ubuntu_image "focal" "arm64"
fetch_raw_ubuntu_image "jammy" "arm64"
fetch_raw_ubuntu_image "focal" "arm64" "current"
fetch_raw_ubuntu_image "jammy" "arm64" "20231201"
}

x86_64_fetch_disk_images() {
Expand All @@ -56,8 +57,8 @@ x86_64_fetch_disk_images() {
CLEAR_OS_IMAGE_URL="$CLEAR_OS_URL_BASE/$CLEAR_OS_IMAGE_NAME"
fetch_image "$CLEAR_OS_IMAGE_NAME" "$CLEAR_OS_IMAGE_URL"

fetch_raw_ubuntu_image "focal" "amd64"
fetch_raw_ubuntu_image "jammy" "amd64"
fetch_raw_ubuntu_image "focal" "amd64" "current"
fetch_raw_ubuntu_image "jammy" "amd64" "20231201"
}

fetch_disk_images() {
Expand Down

0 comments on commit c8a1e56

Please sign in to comment.