# ConfigDrive image handoff

Upload only the completed `release/` directory. It contains one standalone QCOW2
and an updated README per OS, plus `manifest.json`, `SHA256SUMS` and acceptance
records. The 23 image files total 83,339,378,688 bytes (83.34 GB / 77.62 GiB).
The operator performs the mirror upload; the build process does not publish it.

The build host is Host SE-1 (`185.225.115.3`, SSH port `2133`). The completed
directory is `/vms/static-network-20261109/release/`.
Keep the directory structure: each image's canonical path remains
`<os-slug>/<os-slug>.qcow2`.

## Transfer and verification

1. Transfer the release into a staging directory using SFTP or rsync from an
   authorized administrative source. For example, replace the local destination:

   ```sh
   rsync -aS --info=progress2 -e 'ssh -p 2133' \
     root@185.225.115.3:/vms/static-network-20261109/release/ /path/to/staging/
   ```

2. In the received directory, run:

   ```sh
   sha256sum -c SHA256SUMS
   ```

   Require all 23 files to report `OK`. Keep the previous mirror images until
   this destination check passes. Upload the OS directories with their updated
   README files; preserve unrelated mirror content. Do not use a broad `--delete`.

3. Keep the existing mirror root `/home/cloud-mirrors` and directories at `0755`,
   and public image/README files at `0644`. After publication, verify the exact
   HTTPS URLs in `manifest.json` and their checksums from the destination.

## CloudStack registration

- Use the canonical HTTPS URL and checksum `{SHA-256}<digest>` from the manifest.
  These are checksums of the QCOW2 images, not of the temporary gzip transports.
- Select KVM, QCOW2, x86_64, the recorded OS type, Password enabled and HVM.
  Apply every recorded template detail. Do not copy lab template UUIDs into
  production integrations; registration creates new UUIDs.
- Apply the catalogue resource tag `templateType=template` when integrating an
  approved image with NOC. Preserve the existing publication and lifecycle rules.
- Use the accepted Shared + ConfigDrive network offering, with ConfigDrive for
  Dhcp/Dns/UserData and the native SecurityGroupProvider. No guest Virtual Router
  or DHCP server is needed. System VM networking is a separate configuration.
- Choose a root offering at least as large as `virtual_size_bytes`. Windows was
  tested with 50 GiB / 4 GiB RAM; Oracle Linux 9 also used that offering. Other
  Linux images used 30 GiB / 2 GiB RAM. Linux swap remains 1 GiB.
- Windows Server 2022 uses SATA and `UEFI=LEGACY`, which means UEFI without Secure
  Boot in CloudStack 4.23. Windows 10 and Server 2025 use SATA and BIOS, with no
  UEFI detail. Preserve the recorded CPU model settings.
- Preserve existing Evaluation, EOL and ESM labels and catalogue restrictions.
  Image acceptance does not change operating-system support or licensing status.

## Verified provisioning behaviour

Linux uses cloud-init for static networking and the unmodified Apache ConfigDrive
password script. Cloud-init's password module alone does not apply later panel
resets. Windows uses Cloudbase-Init and the explicitly documented compatibility
patch to Apache's Windows password script. Windows 10 hibernation is disabled
with `powercfg.exe /hibernate off` so startup tasks run after panel restarts.

Wait for OS provisioning to finish before testing credentials. Panel reset was
tested with the VM stopped, followed by a new start. A normal reboot preserves
a password changed inside the guest. Later primary/secondary IP changes and
customer-account isolation remain separate acceptance scenarios.

The repository's `template/static-network/README.md`, `acceptance.json`, build
scripts and pinned upstream files preserve the reproducible procedure and the
exact image hashes. The current lab will be reinstalled before production.
