Booting the cloud kernel over root SSH: plan, reboot and a new console

A visible GRUB menu, one approved reboot and independent new-boot verification while original plans and journals remain unchanged.

A server and kernel in a reboot ring beside a verified new state.
A server and kernel in a reboot ring beside a verified new state.

After cloud-kernel installation, the system still ran its original kernel. We have now performed one controlled reboot on an isolated Debian VM: prepare a visible GRUB menu, review a separate reboot plan, then verify the new boot through an independent console and root SSH. The administrator does not exist at this stage.

Start with verified image preparation

ROOT_ENV and ORIGINAL_REQUEST are the original private root-access and current-boot evidence files. PREPARATION is the retained verification of EFI, initial APT prerequisites, signed refresh and required package installation. PREPARATION_SHA256 pins its exact bytes. The CLI revalidates that foundation before planning and changing the menu.

Plan the visible GRUB menu first

This run requires a normal visible menu with a ten-second timeout. In the managed /etc/default/grub.d/99-deploy-cli-menu.cfg these settings are:

GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10

The CLI first renders a candidate in a private mount namespace. Review covers the complete generated file and its fingerprint; permitted changes affect only normal menu visibility and timeout. Boot commands and the recordfail branch are retained. After review, call NEW_MENU_PLAN MENU_PLAN and retain its exact fingerprint as MENU_SHA256.

deploy-cli host image boot-menu plan \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --preparation-file "$PREPARATION" --preparation-sha256 "$PREPARATION_SHA256" \
  --plan-file "$NEW_MENU_PLAN" --approve-local-write

deploy-cli host image boot-menu apply \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --preparation-file "$PREPARATION" --preparation-sha256 "$PREPARATION_SHA256" \
  --plan-file "$MENU_PLAN" --plan-sha256 "$MENU_SHA256" --approve-privileges

deploy-cli host image boot-menu verify \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --plan-file "$MENU_PLAN" --plan-sha256 "$MENU_SHA256"

Apply performed the approved change and a fresh read over a separate SSH connection. A standalone verify checked the exact original plan, its operation, retained original, approved candidate and current journal. This step rewrote neither packages nor EFI.

Review a separate plan for one reboot

deploy-cli host image reboot plan \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --menu-plan-file "$MENU_PLAN" --menu-plan-sha256 "$MENU_SHA256" \
  --plan-file "$NEW_REBOOT_PLAN" --approve-local-write

The plan pinned the running 6.12.113+deb13-amd64 kernel and expected 6.12.113+deb13-cloud-amd64 kernel, GRUB, packages, EFI, inhibitors and current boot. These are different build flavors of the same base version. No units were failed and the system required rebooting. After review, the new file is REBOOT_PLAN and its checked fingerprint REBOOT_SHA256.

Dispatch exactly one approved request

deploy-cli host image reboot request \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --menu-plan-file "$MENU_PLAN" --menu-plan-sha256 "$MENU_SHA256" \
  --plan-file "$REBOOT_PLAN" --plan-sha256 "$REBOOT_SHA256" --approve-privileges

Before handing the action to systemd, the CLI retains a checkpoint. The normal delayed timer makes one attempt after 15 seconds: recheck state and use normal inhibitor-respecting reboot. It neither retries automatically nor forces its way past a blocker. Selected fields from the actual request response:

{
  "status": "passed",
  "write_performed": true,
  "action": "dispatch-accepted"
}

Dispatch-accepted confirms that the request was accepted for execution. The actual boot still needs observation. If the acknowledgement is lost or the result unknown, retain the plan and checkpoint for observation and investigation; do not send another request blindly.

Obtain fresh independent console evidence

After the VM returned, a separate serial console confirmed the same machine and a different boot. We did not edit the old recovery file. We prepared NEW_CURRENT_REQUEST as a new private request retaining every original value except recovery_file, which selects fresh console evidence. The selected user, keys, password files, target and SSH trust stay identical.

deploy-cli host image reboot verify \
  --env-file "$ROOT_ENV" --request-file "$ORIGINAL_REQUEST" \
  --current-request-file "$NEW_CURRENT_REQUEST" \
  --plan-file "$REBOOT_PLAN" --plan-sha256 "$REBOOT_SHA256"

The current root channel checks the new boot while the historical reader compares old bindings with the exact original plan and checkpoint. It also requires the expected kernel, retained approved sources and boot files, and healthy current state. Selected fields from the actual verify response:

{
  "status": "passed",
  "write_performed": false,
  "action": "boot-verified",
  "checks": {
    "reboot_pending": "no",
    "failed_units": "0",
    "checkpoint": "pending",
    "current_console": "verified",
    "historical_bindings": "retained"
  }
}

The new boot ran 6.12.113+deb13-cloud-amd64. The reboot_pending flag became no and failed_units was 0. Checkpoint=pending here means the original checkpoint is retained; verification neither removes nor rewrites it. Successful boot evidence is action=boot-verified together with fresh independent console identity.

Retain previous evidence and check refusals

The original 24 preparation-journal entries remained exact. After menu preparation and reboot, the state area contained 27 entries; verify and negative checks changed none of them. Fourteen selected original local files and the exact menu/reboot plans were retained. Old console evidence, another reboot request and the old preparation reference for the new boot were refused without server writes.

Of 51 selected configuration and EFI files, the GRUB menu, boot ID and firmware MTC variable changed; the managed menu file was added. All ten selected Boot* EFI files remained exact. The MTC change is consistent with monotonic-counter updates during EDK II initialization. EDK II counter implementation.

Summary of one root reboot, a new independent console and verification of the planned cloud kernel
A genuine VTE terminal summarizing saved isolated VM results: the GRUB menu, one reboot request, fresh independent console evidence and read-only boot-verified. Original plans and journals were retained; fallback boot and the full wizard were not tested. Reboot was not repeated during capture.

One successful boot does not complete the whole wizard

This run established an actual boot of the planned cloud kernel. We did not select the fallback kernel afterwards. Fresh readiness acceptance of the entire prepared image and its wizard integration remain separate steps: old journals cannot be updated as if created in the new boot.

The VM was gracefully powered off after verification. This run changed neither the installed E-01 nor production sites. Next come explicit acceptance of postboot state, continuation of initial package history into subsequent utilities and runtime, and a complete run using generated profiles.

  1. Platform Engineering Preparing signed packages and a cloud kernel over root SSH
  2. Platform Engineering Checking a clean Debian image before server setup
  3. Platform Engineering Recording image preparation: EFI and packages in one reference
  4. Platform Engineering Preparing UEFI boot order through the CLI
  5. Platform Engineering Packages after reboot: checking versions and original history

A project by the author · Weather Solution200

After reading, a look outside.

Temperature, rain and wind in your city. Check the forecast and plan the hours ahead.

Check the forecast
Next article