Skip to content
CodeFlowerHorn
Menu

CloudStack Setup · Guide 05

How to Upload Templates and ISO Images in Apache CloudStack

Add reusable KVM templates and bootable ISO images to your CloudStack zone, then verify that each image finishes downloading and becomes ready for deployment.

CodeFlowerHornApache CloudStack 4.19
Table of contents+

Introduction

Add operating-system images to CloudStack

After your zone, compute host, and secondary storage are working, the next step is to add images that users can deploy. CloudStack uses templates as reusable virtual-disk images for new instances, while ISO images behave like virtual CD/DVD media that can be used to install an operating system or attach software to an instance.

This guide continues the KVM environment from the previous tutorials. For KVM, the normal template disk format is QCOW2. ISO images are not tied to one hypervisor in the same way templates are.

Template

Reusable VM disk image

Use a prepared operating-system image to deploy instances quickly.

ISO

Virtual installation media

Boot an installer or attach software media to an existing instance.

Before you begin

  • • Your zone should already be enabled and healthy.
  • • The Secondary Storage VM should be running and its agent state should be Up.
  • • Secondary storage should have enough free space for the template and ISO files.
  • • For URL registration, the source URL must be reachable from CloudStack's secondary-storage environment.
  • • If you upload from your browser, the browser must be able to reach the upload endpoint exposed by the Secondary Storage VM.
01

Global setting

Configure the browser-upload protocol when required

CloudStack normally expects HTTPS for local template, ISO, and volume uploads. If this is a lab environment and your Secondary Storage VM does not have working TLS for its upload endpoint, open Global Settings, search for use.https.to.upload, and set it to false.

!

Use HTTP only for a trusted lab network

Do not disable HTTPS simply because it is easier. For an Internet-facing or production deployment, configure valid TLS and keep HTTPS uploads enabled.

Apache CloudStack global setting use.https.to.upload
For an HTTP-only lab upload endpoint, set use.https.to.upload to false.
02

Secondary Storage VM

Restart the Secondary Storage VM after changing the setting

The Secondary Storage VM receives the upload configuration when it starts. After changing use.https.to.upload, open Infrastructure → System VMs, select the Secondary Storage VM, and stop/start or recreate it so the new upload protocol is applied.

Wait until the VM returns to Running and its agent is Up before continuing. If you did not change the upload setting, you can skip this step.

Apache CloudStack Secondary Storage VM restart action
Restart or recreate the Secondary Storage VM after changing the upload protocol setting.
03

Template

Upload or register a KVM template

Open Images → Templates and choose the option to register or upload a template. You can either provide a URL that CloudStack can download or select a local file when local browser upload is available in your environment.

FieldExampleNotes
NameUbuntu 24.04 KVMUse a clear name users can identify.
ZoneZone1Choose where the template should be available.
HypervisorKVMMust match the image you prepared.
FormatQCOW2Normal disk-image format for KVM templates.
OS typeUbuntu / Other LinuxChoose the closest matching guest operating system.

Make sure the format matches the hypervisor

A file extension alone does not make an image compatible. For this KVM series, use a properly prepared QCOW2 image and select KVM + QCOW2 in CloudStack. Selecting the wrong hypervisor or format can cause registration or deployment failures later.

Apache CloudStack template registration form with KVM QCOW2 format
For a KVM template, select KVM as the hypervisor and QCOW2 as the template format.
04

Template status

Monitor the template download or upload progress

After registration, CloudStack transfers the image to secondary storage. Open the template and check its zone/status information. Do not try to deploy from the template until CloudStack reports that the transfer is complete and the image is ready.

Downloading

Wait

The Secondary Storage VM is still transferring the image.

Download complete

Good

The template is stored successfully on secondary storage.

Ready

Yes

CloudStack can offer the template for instance deployment.

Apache CloudStack template download progress
Wait for the template to finish transferring to secondary storage and become ready.
05

ISO image

Register an ISO image from a URL

Next, open Images → ISOs and add an ISO. For URL-based registration, enter a direct URL to the .iso file. The source must be reachable by CloudStack and should not require an interactive login page.

FieldExample
NameUbuntu 24.04 Server ISO
URLhttps://example.com/ubuntu-server.iso
ZoneZone1
BootableYes
OS typeUbuntu / Other Linux

Enable Bootable when the ISO contains an operating-system installer that should be used to boot a new instance. Non-bootable ISOs can still be attached later as virtual media.

Apache CloudStack add ISO form using a remote URL
Register the ISO using a direct URL that CloudStack can reach.
06

ISO status

Monitor the ISO download progress

Just like templates, the ISO must finish transferring to secondary storage before it can be used reliably. Open the ISO details and monitor its zone status until CloudStack reports that the download is complete and the image is ready.

Apache CloudStack ISO download progress
Wait for the ISO to finish downloading before using it to deploy or attach media to an instance.

If the transfer fails

Check the source URL, DNS resolution, firewall rules, Secondary Storage VM connectivity, available secondary-storage capacity, and TLS certificate trust when HTTPS is used. The Management Server and SSVM logs are useful when the UI only reports a generic download failure.

07

Validation

Verify the template and ISO are ready to use

Before moving on, verify that both images show a successful status in the zone. The template should appear as an available image when you create a new instance. A bootable ISO should be selectable when you choose to deploy an instance from ISO media.

Template check

Create instance → Template

Confirm the new template appears in the image-selection step.

ISO check

Create instance → ISO

Confirm the bootable ISO appears as installation media.

Images ready

Your CloudStack image library is ready.

You can now deploy instances from prepared templates or boot from ISO installation media. The next guide will build on this environment by configuring high availability and failover.