Checking a clean Debian image before server setup
Inspecting the initial Debian image through the CLI and stopping the wizard before changes when prerequisites are missing.
PHP, Nginx, Redis and application profiles can now be assembled through the interactive CLI. Consistent JSON files do not yet mean that the initial operating system is ready for every wizard step. We tested this boundary on a fresh isolated Debian VM: access works, but prerequisites for subsequent boot management are still missing.
What we check before the first change
The current scenario requires Debian 13 amd64, UEFI, working root SSH and Python 3. The selected future administrator account, group and home directory must be absent. There must also be no previous CLI operations directory at /var/lib/deploy-cli. An installed server with its own history does not become clean through a new set of profiles.
We then check required executables, dpkg health, kernel/initrd pairs, GRUB configuration and UEFI policy. An image name or working SSH does not replace these checks. In particular, two file pairs are only preliminary diagnosis; the separate boot reader must admit the actual configuration.
A separate command for the initial image
ROOT_ENV and ACCESS_REQUEST below are absolute paths to the private root environment and current access request. The request references independently verified known_hosts and current machine/boot confirmation from a separate console. An unknown SSH fingerprint is never accepted automatically.
deploy-cli host image inspect \
--env-file "$ROOT_ENV" \
--request-file "$ACCESS_REQUEST"
Before diagnosis, the CLI checks the machine and current boot in the same SSH execution. The command does not install packages, refresh APT indexes, create an administrator or change UEFI. If root SSH or Python 3 is unavailable, that prerequisite must also be resolved separately before this command can run.
Three distinct diagnostic states
| Check state | How to read it |
|---|---|
| passed | An obtained result meets the requirement. |
| blocked | An obtained result identifies an obstacle. |
| unavailable | The required observation was not obtained, or a dependent check did not complete. |
This distinction matters. If full boot inspection did not complete, it cannot establish that the running kernel is wrong. Likewise, an unavailable UEFI result does not identify a specific cause. Image readiness requires positive results from every mandatory check.
What the fresh image returned
Access and package-health checks passed on our isolated VM. A second complete kernel/initrd pair was absent. UEFI and full boot-configuration inspection produced no admitted result. These are selected fields from the actual response, rather than the complete JSON:
{
"status": "blocked",
"observation_completed": true,
"host_write_attempted": false,
"clean_image_ready": false,
"checks": {
"two_kernel_pairs_present": "blocked",
"efi_policy_ready": "unavailable",
"boot_preconditions": "unavailable",
"no_failed_units": "passed",
"no_pending_reboot": "passed"
},
"secure_boot": "disabled"
}
observation_completed means that diagnosis completed; clean_image_ready remains false. The absence of failed units and a pending reboot was checked separately and returned passed. secure_boot=disabled is the observed firmware state of this VM. It does not describe the educational Mirohost VPS settings.
How the interactive wizard behaves
Image inspection runs after protected access collection and before foundation.plan. For the practical run, we used resources.json actually produced by the interactive generator. NEW_SETUP_RUN is a new empty private directory outside Git. This profile selects userspace-managed, so the command includes separate managed-client approval:
deploy-cli host setup wizard \
--directory "$NEW_SETUP_RUN" \
--spec-file "$SETUP_RESOURCES/resources.json" \
--approve-local-write --approve-privileges \
--approve-client-privileges
In a real controlling terminal, we supplied twelve access-collection answers. The wizard stopped at image.inspect: no foundation plan was created and no server writer was dispatched. The managed WireGuard client was not started either; its stage comes later.
The collected local access files and refusal result remain available for inspection. Before/after comparison confirmed that 51 selected configuration and EFI files were unchanged. Neither the selected administrator nor the CLI operations directory appeared on the server. This compares selected data; SSH and system logging can still produce normal observation records.
Image preparation has its own step
Refusing here preserves a clear starting point. Instead of beginning configuration and discovering an obstacle near reboot, we obtain specific diagnosis first. The failed local wizard directory is not overwritten or resumed automatically.
The next implementation step is separate preparation of missing prerequisites, with a reviewed package plan, repository signatures, explicit limits on UEFI changes and a separate reboot decision. This run did not perform that preparation. The complete workflow using generated profiles will be tested after image preparation.