OS templates and ISOs
OS templates
OS templates are the images customers install from. Templates are cloud images with cloud-init, which sets the hostname, network, login and first-boot script.
From the OS catalog
OS templates → Add from catalog lists ready-made Linux cloud images, each from its own distribution. Click Add next to one and it’s imported like any other template.
| Distribution | Versions |
|---|---|
| Ubuntu | 26.04, 24.04 and 22.04 LTS |
| Debian | 13 and 12 |
| Rocky Linux | 10, 9 and 8 |
| AlmaLinux | 10, 9 and 8 |
| CentOS Stream | 10 and 9 |
| Fedora | 44 and 43 |
| Arch Linux | Rolling |
- Where it comes from: each node downloads the image from the distribution’s own servers. Nothing passes through the panel.
- Checksums: the panel reads the image’s checksum from the distribution’s checksum file when you add it, and every node checks its download against it. You don’t type one in. Debian publishes SHA-512 checksums only, so Debian images are checked by their SHA-512.
- Newer builds: distributions replace these images with patched builds now and then. When a node downloads one for the first time (a new node, or a server’s first install of that image there), the panel reads its checksum again if it hasn’t in the last hour, and again if the download doesn’t match, so the node gets the current build. Nodes that already have an older build keep using it. Re-sync reads the checksum again and every connected node downloads the newest build, replacing the copy it had; nodes that are offline get a newer build when they’re back. Servers already installed from it aren’t touched.
- Firewalls: the controller has to reach the distributions’ websites over HTTPS to read checksums, and the nodes to download images.
If a server’s install still fails with a checksum mismatch for a catalog image, the distribution’s mirrors are partway through publishing a new build. Try again in a few minutes.
Adding one by its link
OS templates → Add by link, for images that aren’t in the catalog:
| Field | Rules |
|---|---|
| Distribution | e.g. Ubuntu, 2–32 characters |
| Version | e.g. 24.04, up to 24 characters |
| Codename | Optional, up to 32 characters |
| Download link | https:// link to a .qcow2, .img or .raw file, optionally .xz or .gz compressed, or an image kept on the controller: the panel’s own address followed by /images/<file> (https:// on a panel with HTTPS; see Windows Server). Can’t change later. |
| Checksum | Required: a SHA-256 (64 hex characters), or a SHA-512 (128) for publishers that only give that. Can’t change later. |
| Minimum disk | 1–500 GB. Blocks installs onto smaller packages. |
| End of life | Optional date. Customers see “Ends soon” within 90 days, then “End of life”. |
Nodes download from the link as you gave it, so it can be a mirror on your own network, but not on the node itself, the panel (apart from its own /images/) or a link-local address such as 169.254.169.254. A link that redirects is followed at most five times, and only to public addresses (or, when the link itself is on a private address, to other private ones too); never to the node itself, the panel, or a link-local address. Otherwise the download stops and says where the link led: use the final link instead. An .xz or .gz image that unpacks to more than 64 GB, or to more than the node has room for, is stopped as it unpacks.
Lifecycle
| Status | Meaning |
|---|---|
| Importing… | Every connected node is downloading it and checking its checksum |
| Hidden | Imported on at least one node, not shown to customers. The page shows how many nodes have it. |
| Published | Customers can install it. The page shows how many nodes have it. |
| Failed | No connected node could download it or match its checksum. Retry downloads it again. |
A template imports as hidden; Publish it once it’s on every node. Hiding a published image keeps it cached for servers already using it. A published template has to be hidden before it can be deleted.
Windows Server
Microsoft doesn’t publish a ready-made cloud image, and its ISO is an installer. The panel has a script that installs Windows in a temporary VM on a node and turns the result into a template. It:
- installs Windows unattended, with the VirtIO disk and network drivers;
- installs the VirtIO guest tools and the QEMU guest agent (password resets, disk usage and snapshots in the panel);
- installs the Balloon driver and service (from the ISO when the guest tools lack them), for the memory use shown on each server’s page;
- installs cloudbase-init, which reads the panel’s first-boot settings the way cloud-init does on Linux;
- lets ping through the Windows firewall (Remote Desktop is turned on at each server’s first boot, not in the image, where it crashes Server 2025’s Setup);
- generalizes Windows with Sysprep, giving each server its own identity;
- compresses the disk and prints its SHA-256.
On first boot each server gets its hostname while Windows Setup runs; once Setup has finished, cloudbase-init gives it the Administrator password the panel generated, its IP addresses (Windows doesn’t use DHCP here), Remote Desktop on, Allow Administrator account lockout off (it’s off in the image too; Server 2025’s default locks the built-in Administrator out after 10 failed sign-ins), and C: grown to the package’s disk size. Other accounts keep Windows’ lockout policy. Windows servers always get a password, even if SSH keys were picked.
Building the image
- Download the Windows Server 2025 ISO from the Microsoft Evaluation Center (English, 64-bit ISO, about 6 GB) and copy it to an Ubuntu or Debian node, e.g.
/root/windows-server-2025.iso. A retail or volume ISO works too; pass its key with--key. - On the node, as root, run (swap in your panel’s address):
curl -fsSL https://<your panel>/agent/build-windows-image.sh | bash -s -- --iso /root/windows-server-2025.isoIt lists the editions on the ISO and asks which to install: type its number, or press Enter for Standard with the desktop. It then takes 30–60 minutes and works in/var/lib/panel-agent/windows-build/. To watch the install, open a tunnel withssh -L 5977:127.0.0.1:5977 root@<node>and point a VNC viewer atlocalhost:5977. - Copy the finished image to the controller’s image folder,
/var/lib/panel/images/. The script prints the exactscpcommand. - OS templates → Add by link with the values the script printed: Distribution
Windows Server, Version (2025 Standard, for example), Download linkhttps://<your panel>/images/windows-server-2025-standard.qcow2(your panel’s address as it’s set,http://if it has no HTTPS), the SHA-256, and Minimum disk40. - Once it’s imported on every node, Publish it.
Replacing an image with a newer build: delete the old template first, then add the new one. Nodes keep their copy of a template until it’s deleted, so changing the file alone isn’t enough. Servers already installed from the old one keep running.
| Option | What it does |
|---|---|
--iso |
The ISO, as a path on the node or a download link. Required. |
--edition |
The edition to install, without being asked: standard or datacenter (each with the desktop), its number in the script’s list, or its full name for Server Core. |
--key |
A product key. The evaluation ISO needs none. |
--size |
The image’s disk in GB, default 40. Servers grow it to their package’s size. |
--name |
The file name without .qcow2. By default it’s named after the edition, like windows-server-2025-standard. |
Images in /var/lib/panel/images/ are only handed to the panel’s own nodes; anyone else gets 401. The evaluation edition runs for 180 days; license servers you sell with your SPLA or a retail key.
If the build stops (“The VM shut down before sealing”, or the install VM stopped with an error), the script prints the end of the panel’s setup log from inside Windows and keeps all of it in /var/lib/panel-agent/windows-build/setup.log. When there’s no such log, Windows Setup itself stopped first, and the script prints the errors Setup logged instead.
Servers on Windows get Hyper-V enlightenments and a local-time clock by default; staff can change them on the server’s Hardware tab.
ISO library
Staff add installers under OS templates → ISO library:
| Field | Rules |
|---|---|
| Name | 2–60 characters |
| Download link | https://, ending in .iso, up to 16 GB |
| Description | Optional, up to 160 characters |
| SHA-256 | The file’s checksum from its publisher, often in a SHA256SUMS file next to it. Each node checks its download and refuses a file that doesn’t match. |
The link is checked at once. Nodes download each ISO the first time it’s mounted, and check it against its SHA-256 (ISOs added before the checksum was required are checked when they have one); redirects are followed as for templates. An ISO mounted on a server can’t be deleted. Customers see the library’s ISOs by name, not where they’re downloaded from.
Customers’ own ISOs and images
When switched on under Settings → Customer features, and on servers whose package allows them:
- Custom ISOs: customers add an installer from an https link to an
.isoon a server’s Settings tab. Up to 3 per account by default. - Custom images: customers save a snapshot as an image and reinstall their other servers with it, in any location. Linux images go through
virt-sysprep‘s default clean-up, which clears the machine ID, SSH host keys, users’.sshfolders, logs, shell history, cron jobs and temporary files; Windows images are generalized with Sysprep (see below), unless the customer unticks Generalize with Sysprep. A server can only use an image if its disk is at least as big as the source server’s. Up to 5 per account by default.
How Linux images are sealed
The node clears a copy of the snapshot with virt-sysprep; the server’s own disk and snapshot aren’t touched. The small VM virt-sysprep starts is run through libvirt, which confines it with AppArmor (Ubuntu, Debian) or SELinux (AlmaLinux, Rocky Linux). If libvirt can’t start it at all, the node seals that image with it unconfined, and the Save image job’s log says so with libvirt’s reason.
How Windows images are generalized
The node boots a throwaway copy of the snapshot with no network card, while the server itself keeps running. Through the QEMU guest agent it runs Sysprep (/generalize /oobe /shutdown, with Cloudbase-Init’s answer file when the server has one) and saves the disk once the copy shuts down. Every server made from the image gets its own Windows identity (SID and computer name) at first boot. Sysprep needs the QEMU guest agent (from the virtio-win drivers) in the server. Without it, or when Sysprep refuses (often an app installed for one user only, or Sysprep run too many times on that Windows), the job says why and nothing is saved; the customer can save it without generalizing.
Each node’s Overview shows Save image: Sealed under AppArmor (or SELinux) when it runs confined, or Not confined with the reason: libvirt couldn’t start the appliance last time (fix the AppArmor or SELinux denial libvirt names, then the next image tries it again), or libvirt has no AppArmor or SELinux on that node. Before a node has saved an image, it shows what libvirt’s settings say it will do.
The limits are under Settings → Customer limits.