Home News Debian 12 Preseed over PXE: Installer Matching and Offline Validation

Debian 12 Preseed over PXE: Installer Matching and Offline Validation

An answer file is only one part of unattended provisioning. Reliable delivery also depends on compatible installer assets, repositories and post-install validation.

Published 24 Nov 2026 Guides

Debian 12 Preseed over PXE: Installer Matching and Offline Validation

Why does an unattended installation still stop?

In a TNTCloud PXE provisioning workflow, Preseed answers Debian Installer questions about locale, accounts, storage and package selection. It does not replace the boot environment, hardware drivers, repository or post-install checks. This guide uses Debian 12 Bookworm and lessons from our historical virtual-machine validation. Version combinations in those records explain past results; they are not a current download recommendation or a guarantee for every server.

1. Separate the installation into five stages

For the service architecture behind these stages, see our PXE server software overview.

  1. Network boot: DHCP and the boot configuration select the intended installer.
  2. Installer startup: a matching linux/initrd.gz pair must recognize network and storage hardware.
  3. Preseed loading: the installer retrieves the task-specific answers.
  4. System installation: components and packages come from the selected repository with signature checks.
  5. Handover: verify disks, persistent networking, SSH and package sources before declaring success.

2. Load the answer file

Network preseeding uses a boot parameter such as the following, appended to an already validated installer boot configuration:

auto=true priority=critical interface=auto url=http://pxe.example.internal/preseed/debian12.cfg

Auto mode defers certain early questions; critical priority reduces interaction. Neither supplies missing answers. The initial network must work before the installer can download this file. Interface selection or static addressing needed at that stage belongs in the appropriate early boot configuration.

A small, non-destructive configuration fragment:

d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
d-i time/zone string UTC
d-i clock-setup/utc boolean true

This is not a complete production template. Accounts, partitioning, repositories, bootloader settings and completion actions still need explicit configuration. Automatic partitioning rewrites storage: identify the intended disk by a stable identifier and test on disposable machines first. Restrict answer files containing password hashes or task credentials to the controlled installation network and give task access a limited lifetime.

3. Match the installer to its repository

Debian Installer loads additional udeb components and kernel modules during installation. A shared Debian release name does not guarantee matching module ABIs. Fetch linux and initrd.gz together, record checksums, and verify the repository supplies compatible installer modules.

Our historical tests encountered missing kernel modules and partman RAID/LVM errors when an older installer was paired with an updated upstream repository. Adding a user-space LVM component cannot replace a missing kernel module. Revalidate after repository changes. A GTK installer variant does not, by itself, prove offline capability.

4. Treat online and offline delivery separately

Online forwarding

A target may contact only the local PXE service while that service retrieves packages upstream. Preserve official packages and signatures, and validate both installer components and the installed system's repositories. Our historical forwarding test demonstrated online package access; its proxy did not cache, so it was not evidence of complete caching or an offline installation.

A fixed offline repository

An offline deployment needs complete package coverage and a working repository trust chain. In our self-maintained mirror experiment, official DVD package contents were retained while repository metadata was signed locally. The installer received the corresponding public key, and the installed system received a dedicated keyring. This is one repository-management approach, not a requirement to re-sign every Debian offline source.

Keep authentication enabled instead of hiding repository errors with unauthenticated-install switches. Verify the target keyring and source configuration before removing temporary installation trust. A local mirror URL is not proof of offline operation: block upstream access at the routing or firewall layer and complete installation and post-install checks. DNS changes alone do not prevent direct external IP access.

5. Define success after the reboot

A bare-metal provisioning workflow should cover both installation and handover. Our Linux provisioning overview explains the wider workflow.

  • Confirm the OS version, intended disk, partition table and LVM layout.
  • Verify persistent IP, gateway, routes and DNS after reboot.
  • Connect through the intended management network using the agreed SSH authentication.
  • Check the expected repository and refresh package indexes with signature verification enabled.
  • Remove temporary credentials and scripts while retaining diagnostic logs.

In an isolated test machine, avoid letting previously downloaded indexes conceal repository failures. Our historical tests also rejected modified repository data, missing signatures, incorrect public keys and missing keyrings. Those results establish the tested VM scenario, not universal physical-server compatibility.

Applying this to a PXE workflow

Associate answer files with the repository, site, network interface, target disk and task identity. Start with one test machine and a fixed asset set, verify the installed state, then expand the hardware matrix. Explore Linux provisioning and PXE server software, or discuss your deployment with @dun59 on Telegram.

References

Tags: Debian 12PreseedPXELinux provisioningOffline installation

Questions worth asking first

Does a local mirror URL prove an offline installation?

No. Block upstream connectivity and verify complete installation and post-install repository access.

Why can LVM fail even when both assets are labelled Debian 12?

The installer kernel and repository modules can have incompatible ABIs. Validate the kernel, initrd and repository together.

← All news