From 6f8389800f43dd91623d2a5784fdfe84ebcfbc39 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 13:14:06 -0500 Subject: [PATCH] fix(ci): switch to Ubuntu cloud image (.img extension) for test VM The Debian .qcow2 extension was rejected by PVE's download-url API. Ubuntu's noble-server-cloudimg-amd64.img has a .img extension that PVE accepts, and cloud-init + qemu-guest-agent work the same way. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/infrastructure/scripts/prepare-test-vm.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/infrastructure/scripts/prepare-test-vm.sh b/tests/infrastructure/scripts/prepare-test-vm.sh index 340c112..eba7e45 100755 --- a/tests/infrastructure/scripts/prepare-test-vm.sh +++ b/tests/infrastructure/scripts/prepare-test-vm.sh @@ -21,8 +21,8 @@ VMID="$3" NODE="$4" API_TOKEN="$5" -CLOUD_IMAGE_URL="https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2" -CLOUD_IMAGE_FILENAME="debian-12-genericcloud-amd64.qcow2" +CLOUD_IMAGE_URL="https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img" +CLOUD_IMAGE_FILENAME="noble-server-cloudimg-amd64.img" SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR" SSH_CMD="sshpass -p ${ROOT_PASS} ssh ${SSH_OPTS} root@${NESTED_IP}" @@ -47,7 +47,7 @@ ${SCP_CMD} "${USERDATA}" "root@${NESTED_IP}:/var/lib/vz/snippets/test-vm-userdat rm -f "${USERDATA}" # ── Step 2: Download cloud image (PSProxmoxVE cmdlet) ──────────────── -echo "Downloading Debian cloud image via Invoke-PveStorageDownload..." +echo "Downloading Ubuntu cloud image via Invoke-PveStorageDownload..." pwsh -NoProfile -Command " Import-Module PSProxmoxVE Connect-PveServer -Server '${NESTED_IP}' -ApiToken '${API_TOKEN}' -SkipCertificateCheck @@ -80,8 +80,7 @@ echo "Importing disk and configuring VM..." ${SSH_CMD} bash <&1 | tail -1 # Attach disk, enable agent, configure boot, add cloud-init