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:
It only has to exist, not contain anything. To add it to an existing image:
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.batcontains 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-cleanupthen removesC:\curtinentirelyC:\Program Files\drpcli\drpcli.exeandC:\ProgramData\drp-uuid.txtsurvive
Objects that Reference test-image-deploy-win2019¶
Not used in current content packs
Objects used by test-image-deploy-win2019¶
- params image-deploy/image-type in field Params as value dd-gz
- params image-deploy/admin-password in field Params as value R0cketSk8ts
- params image-deploy/admin-username in field Params as value Administrator
- params image-deploy/cleanup-curtin in field Params as value true
- params image-deploy/image-file in field Params as value files/images/eikon/win2019-secure-curtin-raw.gz
- params image-deploy/image-os in field Params as value windows