Get an image
Command generator
Pick an image, where it goes and a few options: the commands below use the versioned URL, the SHA-256 and the Glance properties of the catalog index, the same data the image pages and oic-sync use.
OpenStack CLIDebian 13
Downloads the file, checks its SHA-256 and imports it into Glance with the properties of the catalog index. Verify the signature first.
export OS_CLOUD=mycloud
curl -fLO https://images.openimages.cloud/debian-13/13-20261123-2671/debian-13-20261123-2671-x86_64.qcow2
echo "e56515339cca5301630a558be2be40b7b3762911ce888eb3a9786f8395da6aa0 debian-13-20261123-2671-x86_64.qcow2" | sha256sum -c -
openstack image create \
--disk-format qcow2 --container-format bare \
--file debian-13-20261123-2671-x86_64.qcow2 \
--min-disk 3 \
--min-ram 1024 \
--property os_type=linux \
--property os_distro=debian \
--property os_version=13 \
--property os_admin_user=debian \
--property architecture=x86_64 \
--property hw_qemu_guest_agent=yes \
--property hw_disk_bus=scsi \
--property hw_scsi_model=virtio-scsi \
--property hw_vif_multiqueue_enabled=true \
--property os_require_quiesce=yes \
--property image_original_user=debian \
--property image_source=https://images.openimages.cloud/debian-13/13-20261123-2671/debian-13-20261123-2671-x86_64.qcow2 \
--property image_build_date=2026-11-23T19:31:16Z \
--property image_description=https://openimages.cloud/images/debian-13/ \
--property os_purpose=generic \
--property replace_frequency=critical_bug \
--property provided_until=2030-06-30 \
--property uuid_validity=last-3 \
--property oic_id=debian-13 \
--property oic_version=13-20261123-2671 \
--property oic_sha256=e56515339cca5301630a558be2be40b7b3762911ce888eb3a9786f8395da6aa0 \
debian-13-13-20261123-2671oic-sync for OpenStackDebian 13
oic-sync verifies the cosign signature, imports the latest version under a stable name and retires older ones on later runs. oic-sync for OpenStack guide.
pipx install 'oic-sync[openstack]'
# Show what a sync would do (read only, signatures verified)
oic-sync openstack sync --image debian-13 --cloud mycloud --dry-run
# Import the latest version as "Debian 13" (private by default); run it
# daily: new versions take that name, older ones are renamed, 2 are kept (--keep)
oic-sync openstack sync --image debian-13 --cloud mycloud
# Compare the cloud with the index (read only)
oic-sync openstack status --image debian-13 --cloud mycloudProxmox VE (qm)Debian 13
Creates a cloud-init VM template. The local storage needs the Import content type (default on new Proxmox VE 9.1 installs); adjust the bridge and SSH key path.
# Download into the "import" content of a file storage; PVE checks the sha256.
pvesh create /nodes/$(hostname)/storage/local/download-url \
--content import --filename debian-13-20261123-2671-x86_64.qcow2 \
--url https://images.openimages.cloud/debian-13/13-20261123-2671/debian-13-20261123-2671-x86_64.qcow2 \
--checksum e56515339cca5301630a558be2be40b7b3762911ce888eb3a9786f8395da6aa0 --checksum-algorithm sha256
qm create 9000 --name debian-13 --memory 2048 --cores 2 \
--net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-single \
--serial0 socket --vga serial0 --agent enabled=1
qm set 9000 --scsi0 local-lvm:0,import-from=local:import/debian-13-20261123-2671-x86_64.qcow2,discard=on
qm set 9000 --ide2 local-lvm:cloudinit --boot order=scsi0 \
--ciuser debian --sshkeys ~/.ssh/id_ed25519.pub --ipconfig0 ip=dhcp
qm template 9000oic-sync for Proxmox VEDebian 13
On the node, as root: oic-sync verifies the signature and turns each new version into a VM template, ready for qm clone. oic-sync for Proxmox VE guide.
# On the node, as root (package with a systemd service and timer)
curl -fLO https://github.com/open-img-cloud/oic-sync/releases/download/v0.4.0/oic-sync_0.4.0-1.deb13_amd64.deb
apt install ./oic-sync_0.4.0-1.deb13_amd64.deb
# Downloads go to the "import" content of a file storage: enable it once
# (list the content types the storage already has, plus import)
pvesm set local --content iso,vztmpl,backup,import
# Show what a sync would do (read only, signatures verified)
oic-sync proxmox sync --image debian-13 --vmid-base 9000 --disk-storage local-lvm --dry-run
# Create the template, on the first free VMID from 9000
oic-sync proxmox sync --image debian-13 --vmid-base 9000 --disk-storage local-lvm
# Daily: set the options in /etc/default/oic-sync, then enable the timer
# OIC_SYNC_PROXMOX_ARGS="--image debian-13 --vmid-base 9000 --disk-storage local-lvm"
systemctl enable --now oic-sync-proxmox.timerTerraform / OpenTofuDebian 13
With the openimages provider, the URL, checksums and properties come from the catalog at plan time and Glance's SHA-512 is checked. Without it, the same resource with today's values, and a data source that finds the image by property. Terraform and OpenTofu.
terraform {
required_providers {
openimages = { source = "open-img-cloud/openimages", version = "~> 0.2" }
openstack = { source = "terraform-provider-openstack/openstack", version = "~> 3.0" }
}
}
# Latest version at plan time; set version = "13-20261123-2671" to pin it.
data "openimages_image" "debian_13" {
id = "debian-13"
}
# Glance fetches the versioned URL itself (web-download; without it, drop web_download and
# Terraform uploads the file). The postcondition checks the SHA-512 Glance computed.
resource "openstack_images_image_v2" "debian_13" {
name = "${data.openimages_image.debian_13.name} (${data.openimages_image.debian_13.version})"
image_source_url = data.openimages_image.debian_13.url
web_download = true
container_format = "bare"
disk_format = data.openimages_image.debian_13.disk_format
min_disk_gb = data.openimages_image.debian_13.min_disk_gb
min_ram_mb = data.openimages_image.debian_13.min_ram_mb
properties = data.openimages_image.debian_13.glance_properties
lifecycle {
postcondition {
condition = lookup(self.properties, "os_hash_value", "") == data.openimages_image.debian_13.sha512
error_message = "The image Glance downloaded does not match the catalog SHA-512."
}
}
}# Provider: terraform-provider-openstack/openstack. Terraform downloads the file and
# uploads it to Glance; check its signature first (https://openimages.cloud/verify/).
resource "openstack_images_image_v2" "debian_13" {
name = "debian-13-13-20261123-2671"
image_source_url = "https://images.openimages.cloud/debian-13/13-20261123-2671/debian-13-20261123-2671-x86_64.qcow2"
container_format = "bare"
disk_format = "qcow2"
min_disk_gb = 3
min_ram_mb = 1024
# web_download = true # let Glance fetch the URL itself, if the cloud allows it
properties = {
os_type = "linux"
os_distro = "debian"
os_version = "13"
os_admin_user = "debian"
architecture = "x86_64"
hw_qemu_guest_agent = "yes"
hw_disk_bus = "scsi"
hw_scsi_model = "virtio-scsi"
hw_vif_multiqueue_enabled = "true"
os_require_quiesce = "yes"
image_original_user = "debian"
image_source = "https://images.openimages.cloud/debian-13/13-20261123-2671/debian-13-20261123-2671-x86_64.qcow2"
image_build_date = "2026-11-23T19:31:16Z"
image_description = "https://openimages.cloud/images/debian-13/"
os_purpose = "generic"
replace_frequency = "critical_bug"
provided_until = "2030-06-30"
uuid_validity = "last-3"
oic_id = "debian-13"
oic_version = "13-20261123-2671"
oic_sha256 = "e56515339cca5301630a558be2be40b7b3762911ce888eb3a9786f8395da6aa0"
}
}
# Consumers in other configurations: look the image up by property, not by name, and
# ignore image changes on long-lived servers (lifecycle ignore_changes).
data "openstack_images_image_v2" "debian_13" {
properties = { oic_id = "debian-13" }
most_recent = true
}AnsibleDebian 13
The glance_image role of the openimages.cloud collection imports the image if the project does not have it, checks the sha256, the signature and Glance's digest, and gives it the stable name. Ansible collection.
# Collection openimages.cloud from Ansible Galaxy (pulls openstack.cloud)
ansible-galaxy collection install openimages.cloud
pip install openstacksdk# playbook.yml: imports the latest version if the project does not have it, with the
# catalog properties, after checking the sha256 and the cosign signature (when cosign is found).
- name: Import Debian 13
hosts: localhost
connection: local
gather_facts: false
roles:
- role: openimages.cloud.glance_image
vars:
glance_image_cloud: "mycloud"
glance_image_images: [debian-13]
post_tasks:
- name: Image id
ansible.builtin.debug:
msg: "{{ glance_image_ids['debian-13'] }}"cloud-init user-dataDebian 13
A starter user-data that adds a user with your SSH key, and how to pass it on OpenStack and on Proxmox VE.
#cloud-config
# Adds the user ops with your SSH key; the default user (debian) keeps working.
users:
- default
- name: ops
lock_passwd: true
sudo: "ALL=(ALL) NOPASSWD:ALL"
ssh_authorized_keys:
- ssh-ed25519 AAAA... you@example.com# OpenStack: pass the file at boot (adjust the flavor and network)
openstack server create --image debian-13-13-20261123-2671 \
--flavor m1.small --network private \
--user-data user-data.yaml vm1
# Proxmox VE: the "local" storage needs the Snippets content type.
# A custom user-data replaces the one built from --ciuser and --sshkeys.
cp user-data.yaml /var/lib/vz/snippets/
qm clone 9000 120 --name vm1 --full 0
qm set 120 --cicustom "user=local:snippets/user-data.yaml"
qm start 120