Packer Gold Images

Packer is a tool from HashiCorp that creates machine images. Building custom machine images is extremely helpful in many both for general infrastructure and devops tasks but also for red team shenanigans.

Note
I like to think of packer as a tool that allows for declarative VM builds much like Dockerfiles allows for declarative container builds.
The Packer build process

Not only is this useful to understand Packer for rolling secure and consistent infrastructure, it’s also helpful to know how Packer works so that if you find a service account that builds gold images on your next red team assessment, you know how to exploit it to gain control over all downstream VMs.

Packer Setup

Setting up packer on a trusted machine to push images to GCP. This should be a highly trusted environment. Anyone with access to this machine can compromise the entire downstream environment.

Install packer

# Tested on Ubuntu 24.04
# Install curl because ubuntu doesn't have it by default for some reason :)
sudo apt install curl -y 
# Add the HashiCorp GPG Key
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
# Add the HashiCorp Linux repo
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
# Update apt local package index to inform it of the new repo to pull from, then install packer -- check version
sudo apt-get update && sudo apt-get install packer -y ; packer version

# Install the packer GCP plugin
packer plugins install github.com/hashicorp/googlecompute

Install gcloud

# Ran on Ubuntu 24.04
# Install prereqs
sudo apt-get update ; sudo apt-get install apt-transport-https ca-certificates gnupg curl -y
# Install GCP signing key and set it up on the system
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg

# Add the gcloud repo
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

# Update local apt package index and install gcloud
sudo apt-get update && sudo apt-get install google-cloud-cli -y

Create and Configure GCP Service Account

There are two ways we can create the service account and download the key needed for it.

Option 1: Cloud Console GUI

Option 1 is to use the Cloud Console and click your way through this

  1. If you have not created/selected a project, do so now
  2. Navigate to the GCP Console > IAM & Admin > Service Accounts
  3. Create a new service account and name is something like packer-builder
  4. Assign the following roles:
    • compute.instanceAdmin.v1
    • artifactregistry.writer
    • iam.serviceAccountUser
Select compute instance admin V1, Artifact Registry Writer, and Service Account User
  1. Create and download a JSON key file for this service account

Note
This key should be kept secure, anyone with access to it will have the same privileges we defined above which is extremely dangerous.
Create a new service account key

Option 2: gcloud CLI

Option 2 is to use the gcloud command

# -1. Login
gcloud auth login

# 0. Set your project (if not already done)
# Find the project you'd like your gold image to live in
gcloud projects list

gcloud config set project <your_project>

# Set $PROJECT to the desired project
PROJECT=$(gcloud config get-value project) && echo "Project set to: $PROJECT"
# 1. Create a new service account called packer-builder
gcloud iam service-accounts create packer-builder \
    --display-name="Packer Builder Service Account" \
    --description="Service account for Packer to build VM images"
    
# 2. Assign the required roles to the service account
gcloud projects add-iam-policy-binding $PROJECT \
    --member="serviceAccount:packer-builder@$PROJECT.iam.gserviceaccount.com" \
    --role="roles/compute.instanceAdmin.v1"
    
gcloud projects add-iam-policy-binding $PROJECT \
    --member="serviceAccount:packer-builder@$PROJECT.iam.gserviceaccount.com" \
    --role="roles/artifactregistry.writer"
    
gcloud projects add-iam-policy-binding $PROJECT \
    --member="serviceAccount:packer-builder@$PROJECT.iam.gserviceaccount.com" \
    --role="roles/iam.serviceAccountUser"
    
# 3. Create and download a JSON key file
gcloud iam service-accounts keys create packer-key.json \
    --iam-account=packer-builder@$PROJECT.iam.gserviceaccount.com
    

Enable the APIs

  1. Login to gcloud with gcloud auth login
  2. Set your project
    • See projects: gcloud projects list
    • Set the active project: gcloud set project $your_project_name_here
  3. Enable the necessary APIs
gcloud services enable compute.googleapis.com
gcloud services enable cloudbuild.googleapis.com
gcloud services enable artifactregistry.googleapis.com

Optionally you can check if these APIs are enabled using gcloud. If the three APIs appear that means they’re enabled.

gcloud services list --enabled --filter="name:compute.googleapis.com OR name:cloudbuild.googleapis.com OR name:artifactregistry.googleapis.com"
NAME                             TITLE
artifactregistry.googleapis.com  Artifact Registry API
cloudbuild.googleapis.com        Cloud Build API
compute.googleapis.com           Compute Engine API

Packer with GCP

We first need to set the $PROJECT environment variable to our current google cloud project and create the file we’re going to copy into the gold image.

# If not already set
PROJECT=$(gcloud config get-value project)

echo "Hello from packer!" > PoC.txt

Next, create the build file. This is the file that will configure all of the settings defined in the gold image. There are many other useful things that can be done but we will keep it simple.

cat > packer-ubuntu.json << EOF
{
  "builders": [
    {
      "type": "googlecompute",
      "credentials_file": "$HOME/packer-key.json",
      "project_id": "$PROJECT",
      "zone": "us-central1-a",
      "source_image": "ubuntu-2404-noble-amd64-v20241219",
      "image_name": "ubuntu-gold-{{timestamp}}",
      "machine_type": "n1-standard-1",
      "disk_size": 10,
      "communicator": "ssh",
      "ssh_username": "packer"
    }
  ],
  "provisioners": [
    {
      "type": "file",
      "source": "PoC.txt",
      "destination": "/tmp/PoC.txt"
    },
    {
      "type": "shell",
      "inline": "sudo mv /tmp/PoC.txt /"
    }
  ]
}
EOF

Note
Make sure the credentials_file and project_id are set correctly

Finally validate the configuration with packer validate packer-ubuntu.json. If there are no errors in the packer build file, the gold image can be created with packer build packer-ubuntu.json

packer build packer-ubuntu.json
googlecompute: output will be in this color.

==> googlecompute: Checking image does not exist...
==> googlecompute: Creating temporary RSA SSH key for instance...
==> googlecompute: no persistent disk to create
==> googlecompute: Using image: ubuntu-2404-noble-amd64-v20241219
==> googlecompute: Creating instance...
    googlecompute: Loading zone: us-central1-a
    googlecompute: Loading machine type: n1-standard-1
    googlecompute: Requesting instance creation...
    googlecompute: Waiting for creation operation to complete...
    googlecompute: Instance has been created!
==> googlecompute: Waiting for the instance to become running...
    googlecompute: IP: 104.197.200.155
==> googlecompute: Using SSH communicator to connect: 104.197.200.155
==> googlecompute: Waiting for SSH to become available...
==> googlecompute: Connected to SSH!
==> googlecompute: Uploading PoC.txt => /tmp/PoC.txt
    googlecompute: PoC.txt 19 B / 19 B [================================================================================================================] 100.00% 1s
==> googlecompute: Provisioning with shell script: /tmp/packer-shell1146431697
==> googlecompute: Deleting instance...
    googlecompute: Instance has been deleted!
==> googlecompute: Creating image...
==> googlecompute: Deleting disk...
    googlecompute: Disk has been deleted!
Build 'googlecompute' finished after 2 minutes 23 seconds.

==> Wait completed after 2 minutes 23 seconds

==> Builds finished. The artifacts of successful builds are:
--> googlecompute: A disk image was created in the 'packer-447121' project: ubuntu-gold-1746042804
gcloud compute images list --filter="name~'gold'" --project=$PROJECT
NAME                    PROJECT        FAMILY  DEPRECATED  STATUS
ubuntu-gold-1746042804  packer-447121                      READY
# Set image name 
IMAGE=$(gcloud compute images list --filter="name~'gold'" --project=$PROJECT | tail -n1 | awk '{print $1}')
# Create VM using custom image 
gcloud compute instances create packer-vm \
  --project=$PROJECT \
  --zone=us-central1-a \
  --machine-type=e2-micro \
  --image=$IMAGE \
  --image-project=$PROJECT \
  --boot-disk-size=10GB \
  --boot-disk-type=pd-standard \
  --no-boot-disk-auto-delete \
  --preemptible

Then connect to the VM via SSH. You may have to wait a minute or so for the VM to boot up.

gcloud compute ssh packer-vm \
  --project=$PROJECT \
  --zone=us-central1-a \
  --tunnel-through-iap

Finally, the PoC.txt can be verified as existing in our gold image. Now any image built with this will contain our files.

ubuntu@packer-vm:~$ hostname ; cat /PoC.txt
packer-vm.us-central1-a.c.packer-447121.internal
Hello from packer!

References

  • https://cloud.google.com/build/docs/building/build-vm-images-with-packer
  • https://developer.hashicorp.com/packer
  • https://github.com/hashicorp/packer
  • https://deepwiki.com/hashicorp/packer

Extra

  • You can list all images by running
gcloud compute images list
NAME                                                     PROJECT                        FAMILY                                         DEPRECATED  STATUS
centos-stream-9-arm64-v20250415                          centos-cloud                   centos-stream-9-arm64                                      READY
centos-stream-9-v20250415                                centos-cloud                   centos-stream-9                                            READY
cos-109-17800-436-106                                    cos-cloud                      cos-109-lts                                                READY
cos-113-18244-382-3                                      cos-cloud                      cos-113-lts                                                READY
cos-117-18613-164-124                                    cos-cloud                      cos-117-lts                                                READY
cos-121-18867-90-4                                       cos-cloud                      cos-121-lts                                                READY
debian-11-bullseye-v20250415                             debian-cloud                   debian-11                                                  READY
debian-12-bookworm-arm64-v20250415                       debian-cloud                   debian-12-arm64                                            READY
debian-12-bookworm-v20250415                             debian-cloud                   debian-12                                                  READY
opensuse-leap-15-5-v20250411-arm64                       opensuse-cloud                 opensuse-leap-arm64                                        READY
opensuse-leap-15-5-v20250411-x86-64                      opensuse-cloud                 opensuse-leap                                              READY
opensuse-leap-15-6-v20250408-arm64                       opensuse-cloud                 opensuse-leap-arm64                                        READY
opensuse-leap-15-6-v20250408-x86-64                      opensuse-cloud                 opensuse-leap                                              READY
oracle-linux-8-v20250322                                 oracle-linux-cloud             oracle-linux-8                                             READY
oracle-linux-9-v20250322                                 oracle-linux-cloud             oracle-linux-9                                             READY
packer-1736287074                                        packer-447121                                                                             READY
packer-1736287602                                        packer-447121                                                                             READY
packer-1736294875                                        packer-447121                                                                             READY
packer-1736297881                                        packer-447121                                                                             READY
packer-1736782506                                        packer-447121                                                                             READY
packer-1745938648                                        packer-447121                                                                             READY
packer-1745941472                                        packer-447121                                                                             READY
packer-1745943030                                        packer-447121                                                                             READY
packer-1745946440                                        packer-447121                                                                             READY
rhel-8-arm64-v20250415                                   rhel-cloud                     rhel-8-arm64                                               READY
rhel-8-v20250415                                         rhel-cloud                     rhel-8                                                     READY
rhel-9-arm64-v20250415                                   rhel-cloud                     rhel-9-arm64                                               READY
rhel-9-v20250415                                         rhel-cloud                     rhel-9                                                     READY
rhel-8-10-sap-v20250415                                  rhel-sap-cloud                 rhel-8-10-sap-ha                                           READY
rhel-8-4-sap-v20250415                                   rhel-sap-cloud                 rhel-8-4-sap-ha                                            READY
rhel-8-6-sap-v20250415                                   rhel-sap-cloud                 rhel-8-6-sap-ha                                            READY
rhel-8-8-sap-v20250415                                   rhel-sap-cloud                 rhel-8-8-sap-ha                                            READY
rhel-9-0-sap-v20250415                                   rhel-sap-cloud                 rhel-9-0-sap-ha                                            READY
rhel-9-2-sap-v20250415                                   rhel-sap-cloud                 rhel-9-2-sap-ha                                            READY
rhel-9-4-sap-v20250415                                   rhel-sap-cloud                 rhel-9-4-sap-ha                                            READY
rocky-linux-8-optimized-gcp-nvidia-550-v20250415         rocky-linux-accelerator-cloud  rocky-linux-8-optimized-gcp-nvidia-550                     READY
rocky-linux-8-optimized-gcp-nvidia-570-v20250415         rocky-linux-accelerator-cloud  rocky-linux-8-optimized-gcp-nvidia-570                     READY
rocky-linux-8-optimized-gcp-nvidia-latest-v20250415      rocky-linux-accelerator-cloud  rocky-linux-8-optimized-gcp-nvidia-latest                  READY
rocky-linux-9-optimized-gcp-nvidia-550-v20250415         rocky-linux-accelerator-cloud  rocky-linux-9-optimized-gcp-nvidia-550                     READY
rocky-linux-9-optimized-gcp-nvidia-570-v20250415         rocky-linux-accelerator-cloud  rocky-linux-9-optimized-gcp-nvidia-570                     READY
rocky-linux-9-optimized-gcp-nvidia-latest-v20250415      rocky-linux-accelerator-cloud  rocky-linux-9-optimized-gcp-nvidia-latest                  READY
rocky-linux-8-optimized-gcp-arm64-v20250415              rocky-linux-cloud              rocky-linux-8-optimized-gcp-arm64                          READY
rocky-linux-8-optimized-gcp-v20250415                    rocky-linux-cloud              rocky-linux-8-optimized-gcp                                READY
rocky-linux-8-v20250415                                  rocky-linux-cloud              rocky-linux-8                                              READY
rocky-linux-9-arm64-v20250415                            rocky-linux-cloud              rocky-linux-9-arm64                                        READY
rocky-linux-9-optimized-gcp-arm64-v20250415              rocky-linux-cloud              rocky-linux-9-optimized-gcp-arm64                          READY
rocky-linux-9-optimized-gcp-v20250415                    rocky-linux-cloud              rocky-linux-9-optimized-gcp                                READY
rocky-linux-9-v20250415                                  rocky-linux-cloud              rocky-linux-9                                              READY
sles-12-sp5-v20250408-x86-64                             suse-cloud                     sles-12                                                    READY
sles-15-sp5-v20250226-x86-64                             suse-cloud                     sles-15-sp5                                                READY
sles-15-sp5-v20250414-arm64                              suse-cloud                     sles-15-sp5-arm64                                          READY
sles-15-sp6-v20250409-x86-64                             suse-cloud                     sles-15                                                    READY
sles-15-sp6-v20250414-arm64                              suse-cloud                     sles-15-arm64                                              READY
sles-12-sp5-sap-v20250408-x86-64                         suse-sap-cloud                 sles-12-sp5-sap                                            READY
sles-15-sp3-sap-v20250408-x86-64                         suse-sap-cloud                 sles-15-sp3-sap                                            READY
sles-15-sp4-sap-v20250221-x86-64                         suse-sap-cloud                 sles-15-sp4-sap                                            READY
sles-15-sp5-sap-v20250408-x86-64                         suse-sap-cloud                 sles-15-sp5-sap                                            READY
sles-15-sp6-sap-v20250409-x86-64                         suse-sap-cloud                 sles-15-sp6-sap                                            READY
sles-sap-15-sp4-hardened-v20250411-x86-64                suse-sap-cloud                 sles-sap-15-sp4-hardened                                   READY
sles-sap-15-sp5-hardened-v20250408-x86-64                suse-sap-cloud                 sles-sap-15-sp5-hardened                                   READY
sles-sap-15-sp6-hardened-v20250409-x86-64                suse-sap-cloud                 sles-sap-15-sp6-hardened                                   READY
ubuntu-accelerator-2204-amd64-with-nvidia-550-v20250425  ubuntu-os-accelerator-images   ubuntu-accelerator-2204-amd64-with-nvidia-550              READY
ubuntu-accelerator-2204-amd64-with-nvidia-570-v20250425  ubuntu-os-accelerator-images   ubuntu-accelerator-2204-amd64-with-nvidia-570              READY
ubuntu-accelerator-2204-arm64-with-nvidia-550-v20250425  ubuntu-os-accelerator-images   ubuntu-accelerator-2204-arm64-with-nvidia-550              READY
ubuntu-accelerator-2204-arm64-with-nvidia-570-v20250425  ubuntu-os-accelerator-images   ubuntu-accelerator-2204-arm64-with-nvidia-570              READY
ubuntu-accelerator-2404-amd64-with-nvidia-550-v20250409  ubuntu-os-accelerator-images   ubuntu-accelerator-2404-amd64-with-nvidia-550              READY
ubuntu-accelerator-2404-amd64-with-nvidia-570-v20250409  ubuntu-os-accelerator-images   ubuntu-accelerator-2404-amd64-with-nvidia-570              READY
ubuntu-accelerator-2404-arm64-with-nvidia-550-v20250409  ubuntu-os-accelerator-images   ubuntu-accelerator-2404-arm64-with-nvidia-550              READY
ubuntu-accelerator-2404-arm64-with-nvidia-570-v20250409  ubuntu-os-accelerator-images   ubuntu-accelerator-2404-arm64-with-nvidia-570              READY
ubuntu-minimal-pro-2004-focal-arm64-v20250425            ubuntu-os-pro-cloud            ubuntu-minimal-pro-2004-lts-arm64                          READY
ubuntu-minimal-pro-2004-focal-v20250425                  ubuntu-os-pro-cloud            ubuntu-minimal-pro-2004-lts                                READY
ubuntu-minimal-pro-2204-jammy-arm64-v20250424            ubuntu-os-pro-cloud            ubuntu-minimal-pro-2204-lts-arm64                          READY
ubuntu-minimal-pro-2204-jammy-v20250424                  ubuntu-os-pro-cloud            ubuntu-minimal-pro-2204-lts                                READY
ubuntu-minimal-pro-2404-noble-amd64-v20250424            ubuntu-os-pro-cloud            ubuntu-minimal-pro-2404-lts-amd64                          READY
ubuntu-minimal-pro-2404-noble-arm64-v20250424            ubuntu-os-pro-cloud            ubuntu-minimal-pro-2404-lts-arm64                          READY
ubuntu-pro-1604-xenial-v20250407                         ubuntu-os-pro-cloud            ubuntu-pro-1604-lts                                        READY
ubuntu-pro-1804-bionic-arm64-v20250313                   ubuntu-os-pro-cloud            ubuntu-pro-1804-lts-arm64                                  READY
ubuntu-pro-1804-bionic-v20250313                         ubuntu-os-pro-cloud            ubuntu-pro-1804-lts                                        READY
ubuntu-pro-2004-focal-arm64-v20250425                    ubuntu-os-pro-cloud            ubuntu-pro-2004-lts-arm64                                  READY
ubuntu-pro-2004-focal-v20250425                          ubuntu-os-pro-cloud            ubuntu-pro-2004-lts                                        READY
ubuntu-pro-2204-jammy-arm64-v20250425                    ubuntu-os-pro-cloud            ubuntu-pro-2204-lts-arm64                                  READY
ubuntu-pro-2204-jammy-v20250425                          ubuntu-os-pro-cloud            ubuntu-pro-2204-lts                                        READY
ubuntu-pro-2404-noble-amd64-v20250409                    ubuntu-os-pro-cloud            ubuntu-pro-2404-lts-amd64                                  READY
cos-arm64-109-17800-436-106                              cos-cloud                      cos-arm64-109-lts                                          READY
ubuntu-2004-focal-arm64-v20250425                        ubuntu-os-cloud                ubuntu-2004-lts-arm64                                      READY
ubuntu-2004-focal-v20250425                              ubuntu-os-cloud                ubuntu-2004-lts                                            READY
ubuntu-2204-jammy-arm64-v20250425                        ubuntu-os-cloud                ubuntu-2204-lts-arm64                                      READY
ubuntu-pro-2404-noble-arm64-v20250409                    ubuntu-os-pro-cloud            ubuntu-pro-2404-lts-arm64                                  READY
ubuntu-pro-fips-1804-bionic-v20250410                    ubuntu-os-pro-cloud            ubuntu-pro-fips-1804-lts                                   READY
ubuntu-pro-fips-2004-focal-v20250411                     ubuntu-os-pro-cloud            ubuntu-pro-fips-2004-lts                                   READY
ubuntu-pro-fips-updates-2204-jammy-arm64-v20250419       ubuntu-os-pro-cloud            ubuntu-pro-fips-updates-2204-lts-arm64                     READY
ubuntu-pro-fips-updates-2204-jammy-v20250419             ubuntu-os-pro-cloud            ubuntu-pro-fips-updates-2204-lts                           READY
windows-server-2016-dc-core-v20250416                    windows-cloud                  windows-2016-core                                          READY
windows-server-2016-dc-v20250416                         windows-cloud                  windows-2016                                               READY
windows-server-2019-dc-core-v20250416                    windows-cloud                  windows-2019-core                                          READY
windows-server-2019-dc-v20250416                         windows-cloud                  windows-2019                                               READY
sql-2016-enterprise-windows-2016-dc-v20250416            windows-sql-cloud              sql-ent-2016-win-2016                                      READY
sql-2016-enterprise-windows-2019-dc-v20250416            windows-sql-cloud              sql-ent-2016-win-2019                                      READY
cos-arm64-113-18244-382-3                                cos-cloud                      cos-arm64-113-lts                                          READY
cos-arm64-117-18613-164-124                              cos-cloud                      cos-arm64-117-lts                                          READY
cos-arm64-121-18867-90-4                                 cos-cloud                      cos-arm64-121-lts                                          READY
cos-arm64-beta-121-18867-90-4                            cos-cloud                      cos-arm64-beta                                             READY
cos-arm64-dev-125-19014-0-0                              cos-cloud                      cos-arm64-dev                                              READY
cos-arm64-stable-117-18613-164-124                       cos-cloud                      cos-arm64-stable                                           READY
fedora-coreos-42-20250410-3-1-gcp-aarch64                fedora-coreos-cloud            fedora-coreos-stable-arm64                                 READY
fedora-coreos-42-20250410-3-1-gcp-x86-64                 fedora-coreos-cloud            fedora-coreos-stable                                       READY
fedora-coreos-42-20250427-1-0-gcp-aarch64                fedora-coreos-cloud            fedora-coreos-next-arm64                                   READY
fedora-coreos-42-20250427-1-0-gcp-x86-64                 fedora-coreos-cloud            fedora-coreos-next                                         READY
fedora-coreos-42-20250427-2-0-gcp-aarch64                fedora-coreos-cloud            fedora-coreos-testing-arm64                                READY
fedora-coreos-42-20250427-2-0-gcp-x86-64                 fedora-coreos-cloud            fedora-coreos-testing                                      READY
ubuntu-2204-jammy-v20250425                              ubuntu-os-cloud                ubuntu-2204-lts                                            READY
ubuntu-2404-noble-amd64-v20250425                        ubuntu-os-cloud                ubuntu-2404-lts-amd64                                      READY
ubuntu-2404-noble-arm64-v20250425                        ubuntu-os-cloud                ubuntu-2404-lts-arm64                                      READY
ubuntu-2410-oracular-amd64-v20250429                     ubuntu-os-cloud                ubuntu-2410-amd64                                          READY
ubuntu-2410-oracular-arm64-v20250429                     ubuntu-os-cloud                ubuntu-2410-arm64                                          READY
ubuntu-2504-plucky-amd64-v20250415                       ubuntu-os-cloud                ubuntu-2504-amd64                                          READY
ubuntu-2504-plucky-arm64-v20250415                       ubuntu-os-cloud                ubuntu-2504-arm64                                          READY
windows-server-2022-dc-core-v20250416                    windows-cloud                  windows-2022-core                                          READY
windows-server-2022-dc-v20250416                         windows-cloud                  windows-2022                                               READY
windows-server-2025-dc-core-v20250416                    windows-cloud                  windows-2025-core                                          READY
windows-server-2025-dc-v20250416                         windows-cloud                  windows-2025                                               READY
sql-2016-standard-windows-2016-dc-v20250416              windows-sql-cloud              sql-std-2016-win-2016                                      READY
sql-2016-standard-windows-2019-dc-v20250416              windows-sql-cloud              sql-std-2016-win-2019                                      READY
sql-2016-web-windows-2016-dc-v20250416                   windows-sql-cloud              sql-web-2016-win-2016                                      READY
sql-2016-web-windows-2019-dc-v20250416                   windows-sql-cloud              sql-web-2016-win-2019                                      READY
cos-beta-121-18867-90-4                                  cos-cloud                      cos-beta                                                   READY
cos-dev-125-19014-0-0                                    cos-cloud                      cos-dev                                                    READY
ubuntu-minimal-2004-focal-arm64-v20250425                ubuntu-os-cloud                ubuntu-minimal-2004-lts-arm64                              READY
ubuntu-minimal-2004-focal-v20250425                      ubuntu-os-cloud                ubuntu-minimal-2004-lts                                    READY
ubuntu-minimal-2204-jammy-arm64-v20250424                ubuntu-os-cloud                ubuntu-minimal-2204-lts-arm64                              READY
sql-2017-enterprise-windows-2016-dc-v20250416            windows-sql-cloud              sql-ent-2017-win-2016                                      READY
sql-2017-enterprise-windows-2019-dc-v20250416            windows-sql-cloud              sql-ent-2017-win-2019                                      READY
sql-2017-enterprise-windows-2022-dc-v20250416            windows-sql-cloud              sql-ent-2017-win-2022                                      READY
sql-2017-enterprise-windows-2025-dc-v20250416            windows-sql-cloud              sql-ent-2017-win-2025                                      READY
sql-2017-express-windows-2016-dc-v20250416               windows-sql-cloud              sql-exp-2017-win-2016                                      READY
sql-2017-express-windows-2019-dc-v20250416               windows-sql-cloud              sql-exp-2017-win-2019                                      READY
sql-2017-standard-windows-2016-dc-v20250416              windows-sql-cloud              sql-std-2017-win-2016                                      READY
cos-stable-117-18613-164-124                             cos-cloud                      cos-stable                                                 READY
ubuntu-minimal-2204-jammy-v20250424                      ubuntu-os-cloud                ubuntu-minimal-2204-lts                                    READY
ubuntu-minimal-2404-noble-amd64-v20250424                ubuntu-os-cloud                ubuntu-minimal-2404-lts-amd64                              READY
ubuntu-minimal-2404-noble-arm64-v20250424                ubuntu-os-cloud                ubuntu-minimal-2404-lts-arm64                              READY
ubuntu-minimal-2410-oracular-amd64-v20250409             ubuntu-os-cloud                ubuntu-minimal-2410-amd64                                  READY
ubuntu-minimal-2410-oracular-arm64-v20250409             ubuntu-os-cloud                ubuntu-minimal-2410-arm64                                  READY
ubuntu-minimal-2504-plucky-amd64-v20250426               ubuntu-os-cloud                ubuntu-minimal-2504-amd64                                  READY
ubuntu-minimal-2504-plucky-arm64-v20250426               ubuntu-os-cloud                ubuntu-minimal-2504-arm64                                  READY
sql-2017-standard-windows-2019-dc-v20250416              windows-sql-cloud              sql-std-2017-win-2019                                      READY
sql-2017-standard-windows-2022-dc-v20250416              windows-sql-cloud              sql-std-2017-win-2022                                      READY
sql-2017-standard-windows-2025-dc-v20250416              windows-sql-cloud              sql-std-2017-win-2025                                      READY
sql-2017-web-windows-2016-dc-v20250416                   windows-sql-cloud              sql-web-2017-win-2016                                      READY
sql-2017-web-windows-2019-dc-v20250416                   windows-sql-cloud              sql-web-2017-win-2019                                      READY
sql-2017-web-windows-2022-dc-v20250416                   windows-sql-cloud              sql-web-2017-win-2022                                      READY
sql-2017-web-windows-2025-dc-v20250416                   windows-sql-cloud              sql-web-2017-win-2025                                      READY
sql-2019-enterprise-windows-2019-dc-v20250416            windows-sql-cloud              sql-ent-2019-win-2019                                      READY
sql-2019-enterprise-windows-2022-dc-v20250416            windows-sql-cloud              sql-ent-2019-win-2022                                      READY
sql-2019-enterprise-windows-2025-dc-v20250416            windows-sql-cloud              sql-ent-2019-win-2025                                      READY
sql-2019-standard-windows-2019-dc-v20250416              windows-sql-cloud              sql-std-2019-win-2019                                      READY
sql-2019-standard-windows-2022-dc-v20250416              windows-sql-cloud              sql-std-2019-win-2022                                      READY
sql-2019-standard-windows-2025-dc-v20250416              windows-sql-cloud              sql-std-2019-win-2025                                      READY
sql-2019-web-windows-2019-dc-v20250416                   windows-sql-cloud              sql-web-2019-win-2019                                      READY
sql-2019-web-windows-2022-dc-v20250416                   windows-sql-cloud              sql-web-2019-win-2022                                      READY
sql-2019-web-windows-2025-dc-v20250416                   windows-sql-cloud              sql-web-2019-win-2025                                      READY
sql-2022-enterprise-windows-2019-dc-v20250416            windows-sql-cloud              sql-ent-2022-win-2019                                      READY
sql-2022-enterprise-windows-2022-dc-v20250416            windows-sql-cloud              sql-ent-2022-win-2022                                      READY
sql-2022-enterprise-windows-2025-dc-v20250416            windows-sql-cloud              sql-ent-2022-win-2025                                      READY
sql-2022-standard-windows-2019-dc-v20250416              windows-sql-cloud              sql-std-2022-win-2019                                      READY
sql-2022-standard-windows-2022-dc-v20250416              windows-sql-cloud              sql-std-2022-win-2022                                      READY
sql-2022-standard-windows-2025-dc-v20250416              windows-sql-cloud              sql-std-2022-win-2025                                      READY
sql-2022-web-windows-2019-dc-v20250416                   windows-sql-cloud              sql-web-2022-win-2019                                      READY
sql-2022-web-windows-2022-dc-v20250416                   windows-sql-cloud              sql-web-2022-win-2022                                      READY
sql-2022-web-windows-2025-dc-v20250416                   windows-sql-cloud              sql-web-2022-win-2025                                      READY
  • Check just rhel-cloud
gcloud compute images list --project=rhel-cloud --no-standard-images
NAME                    PROJECT     FAMILY        DEPRECATED  STATUS
rhel-8-arm64-v20250415  rhel-cloud  rhel-8-arm64              READY
rhel-8-v20250415        rhel-cloud  rhel-8                    READY
rhel-9-arm64-v20250415  rhel-cloud  rhel-9-arm64              READY
rhel-9-v20250415        rhel-cloud  rhel-9                    READY
  • Check just windows-cloud
gcloud compute images list --project=windows-cloud --no-standard-images
NAME                                   PROJECT        FAMILY             DEPRECATED  STATUS
windows-server-2016-dc-core-v20250416  windows-cloud  windows-2016-core              READY
windows-server-2016-dc-v20250416       windows-cloud  windows-2016                   READY
windows-server-2019-dc-core-v20250416  windows-cloud  windows-2019-core              READY
windows-server-2019-dc-v20250416       windows-cloud  windows-2019                   READY
windows-server-2022-dc-core-v20250416  windows-cloud  windows-2022-core              READY
windows-server-2022-dc-v20250416       windows-cloud  windows-2022                   READY
windows-server-2025-dc-core-v20250416  windows-cloud  windows-2025-core              READY
windows-server-2025-dc-v20250416       windows-cloud  windows-2025                   READY