V
V
vlarkanov2020-03-05 17:53:21
linux
vlarkanov, 2020-03-05 17:53:21

PXE: how to slip custom preseed.cfg?

There is a DHCP and TFTP server, it contains the unpacked netboot.tar.gz from the Debian website. The machines successfully connect to it, and the Debian installation starts exactly as if it were running locally. Is it possible to slip a response file to the installer to fully (or almost completely) automate the installation? I need to get identically configured machines at the output (DHCP network, disk auto-partitioning, standard hostname) - then I will just roll some custom settings, software, etc. through Ansible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-03-05
@vlarkanov

Yes, you can.
Upload your preseed somewhere and change the boot line in the PXE config, something like this should be:

LABEL ubuntu
    menu ubuntu install
    kernel images/ubuntu/ubuntu-installer/amd64/linux
    append vga=788 initrd=images/ubuntu/ubuntu-installer/amd64/initrd.gz --- auto=true url=http://ваш-сервер/preseed.cfg quiet

it is clear that options and other things can be different, this detail is important:
auto=true url=http://ваш-сервер/preseed.cfg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question