Server preparation history after another reboot

Retain four original package records and the first reboot while independently verifying the current boot through a serial console. A practical Debian VM run without rewriting history.

A chain of protected records and three consecutive server reboot states.
A chain of protected records and three consecutive server reboot states.

Initial server preparation already has a history: refreshing package lists, installing the kernel, the first reboot and administrator utility installation. That history must remain verifiable after another reboot. We separate the first boot transition from the server state observed now.

Three boots of one server

We run the practical sequence on a separate local Debian VM. Initial root access performs two package operations: a signed metadata refresh and approved kernel installation. After the first reboot, an independent serial console confirms the same machine and a new boot. The administrator then adds two records: metadata refresh and utility installation.

We then reboot only the test VM again. This is a fixture operation; we do not replay the original reboot approval. A new independent serial-console observation provides the third boot identity. The four package records and the first reboot record remain unchanged.

Separate evidence for the first transition and current state

Verification uses three independent access selections: initial, first postboot and current. They refer to the same machine, administrator, selected key and SSH trust. Utility plans keep their first-postboot authority. The current SSH channel is checked against the new console evidence.

The following command reads retained approvals and actual state. Variables contain private file paths. HISTORY_INPUTS selects all four original records, the first-postboot console request, original plans and completion fingerprints. HISTORY_INPUTS_SHA256 pins that exact file. Password and key contents stay out of the command line.

deploy-cli host setup preparation-history-read \
  --root-env-file "$ORIGINAL_ROOT_ENV" \
  --administrator-env-file "$ADMIN_ENV" \
  --request-file "$ORIGINAL_REQUEST" \
  --current-request-file "$CURRENT_REQUEST" \
  --inputs-file "$HISTORY_INPUTS" \
  --inputs-sha256 "$HISTORY_INPUTS_SHA256"

The root profile is used locally to admit original approvals. Every SSH connection for this command uses the administrator, with privileged reads through that administrator’s sudo. It creates no new lock files, package transactions or history records.

The VM response after the second reboot

These are selected fields from the actual CLI response. Verification retained all four package records, confirmed original initialization and the first reboot, and independently checked the current boot. A confirming read also succeeded.

{
  "status": "passed",
  "package_nodes": 4,
  "reboot_boundary_verified": true,
  "original_initialization_retained": true,
  "later_boot_verified": true,
  "root_ssh_dispatched": false,
  "host_write_performed": false,
  "local_write_performed": false,
  "whole_host_ready": false
}

The current package snapshot differed from the completed utility state only in boot identity. Kernel, dpkg state, automatic package flags, repositories and configuration remained exact. A changed boot identity did not authorize any other drift.

Old evidence does not become current evidence

The reader that requires the first postboot identity refused the new boot. The new reader also rejected using the first console as later evidence, an incorrect first-reboot fingerprint, an incorrect initialization fingerprint and a pending package operation. These fields show the incorrect-reboot-fingerprint response:

{
  "status": "failed",
  "later_boot_verified": false,
  "host_write_performed": false,
  "local_write_performed": false
}

Successful and refused reads left the retained history tree unchanged. This provides a foundation for attaching original preparation to runtime services. Configuring those services and running the complete automatic wizard remain separate practical steps.

The frame below is a genuine terminal summarizing saved local VM results. It is a summary rather than raw command output; capture repeated neither reboot nor installation.

Preparation history after the second VM reboot
Preparation history after the second VM reboot
  1. Platform Engineering Verifying package history across the first reboot
  2. Platform Engineering CLI utility installation after original preparation
  3. Platform Engineering Waiting for SSH before continuing server setup
  4. Platform Engineering Original server preparation in Nginx and PHP 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