


In my iPXE config file, my final kernel looks like this: kernel debian10/amd64/linux initrd=initrd.gz vga=788 - quiet auto \ We will add netcfg/get_nameservers="172.16.40.253 172.16.40.254" to our arguments.Īnd because I do not want to be prompted for confirmation, add netcfg/confirm_static=true If you have a single nameserver you do not need quotes around them, if you have multiple surround them with quotes and they are space separated. I do not want to type in my domain name every time, so we'll add netcfg/get_domain=.Īnd to set the subnet we'll use netcfg/get_netmask=255.255.255.0.įor the gateway use netcfg/get_gateway=192.168.0.1.įor the DNS nameservers, I have 2 of them. To set the config to manual, add netcfg/dhcp_options=Configure network manually to our argument list. That argument is netcfg/disable_autoconfig set to true. I need to disable the network auto config because of the static IP. Add keyboard-configuration/xkb-keymap=us. Add debian-installer/locale=en_US to the arguments.

We will set the locale to en_US because that's where I'm at and what I want. Kernel optionsįirst set of prompts, the locale information. I'll explain that in a section below, that solution I found that through a happy accident. My example will ask for the IP address and default the hostname to a name other than debian.

Because of that we need to set the network config through kernel arguments. So, we'll add url= to the list.Ī little note, because we are pulling in the preseed file through http, the networking must be configured before it can read the preseed file. Because it's easy to modify and keep track of. We are going to store my preseed file on a web server. In my environment I network boot my Debian installer with iPXE, in theory this should work with other PXE boot loaders like PXELinux with minor modifications, probably only with how the kernel options passed into the kernel. I want all that done for me without entering anything. There are other requirements for Kubernetes that need to be met, like not have a swap partition and having Docker installed. Install Debian by only supplying a static IP address during install. I got tired of manually building a Debian install with Docker every time I needed a new VM for whatever reason.
