Skip to content

test-image-deploy-win2019

Manual test profile for the Windows join-up and /curtin cleanup path

Deploys a Windows Server 2019 raw disk image and exercises the agent join-up introduced for rackn/product-backlog#1458.

Attach this together with universal-application-image-deploy and run the universal-image-deploy workflow.

The image must be a GPT/UEFI Windows disk image with Cloudbase-Init already installed. The target machine needs a disk at least as large as the image (20 GiB) and must boot in UEFI mode; the image has no MBR boot code, so legacy BIOS machines cannot boot it.

The image must also contain an empty curtin directory at the root of its Windows volume. Curtin uses that directory to work out which partition holds the target root filesystem before it applies the RackN tarball, so without it curtin-deploy writes the disk and then fails with:

Text Only
Did not find any filesystem on ['sda'] that contained one of ['curtin', ...]

It only has to exist, not contain anything. To add it to an existing image:

Bash
zcat win2019.raw.gz > win2019.img
guestfish -a win2019.img -i mkdir /curtin
pigz -c win2019.img > win2019-curtin-raw.gz

image-deploy/cloud-init-base-url is deliberately left at its default of file:///curtin/ so that meta-data and user-data are written into the directory under test.

What to expect on a successful run:

  • C:\curtin\drpcli-install.bat contains no machine token
  • Cloudbase-Init loads the RackN datasource and runs that file on first boot
  • join-up installs and starts the agent
  • image-deploy-cleanup then removes C:\curtin entirely
  • C:\Program Files\drpcli\drpcli.exe and C:\ProgramData\drp-uuid.txt survive

Objects that Reference test-image-deploy-win2019

Not used in current content packs

Objects used by test-image-deploy-win2019