Skip to content

Boot customization

The boot behaviour of a image can be customized. To do so when creating an image you may specify optional kernel parameters that will be respected at boot time.

In this example we’ll demonstrate how to specify kernel parameters for boot customization.

Prerequisites:

Steps:

  1. Follow the generic image creation steps as described in the getting started guide.

  2. In the step that allows you to specify kernel parameters, specify one or more supported parameter. The generic syntax is key=value and every kv-pair is separated by using space as a delimiter. Click ‘next’ when done.

    STACKIT Edge Cloud web interface, showing the 'Create Image' step for 'Kernel Parameters'.

  3. Follow the remaining image creation steps. The resulting review should indicate that your two options are included in the image. They’ll be part of any installation medium generated from this image. Click the “create” button to create the image.

    STACKIT Edge Cloud web interface, showing the 'Create Image' step for 'Review'.

  4. The rest of the process is identical to the one outlined in the regular image creation procedure.

This section guides you through the most common boot parameters by example.

You may have to configure a static IP address so that the STEC node is able to reach your STEC instance. This is done through using the ip kernel parameter.

Terminal window
# kernel args
ip=<CLIENT_IP>:<SERVER_IP>:<GATEWAY_IP>:<NETMASK>:<HOSTNAME>:<DEVICE>:<AUTOCONF>:<DNS_SERVER_IP_0>:<DNS_SERVER_IP_1>:<NTP_SERVER_IP>

Predictable Interface Names are used for all NICs by default. If you want to use legacy naming you may add net.ifnames=0 to the kernel command line as well or use a dummy device selector as indicated in the article. Cloud Platforms still use the legacy naming scheme as Talos automatically adds net.ifnames=0 to the kernel command for those.

Terminal window
# kernel args
ip=172.16.0.11::172.16.0.1:255.255.255.0:foo:eth0:none:1.1.1.1:1.0.0.1:time.cloudflare.com

STACKIT Edge Cloud requires a outbound, HTTPS connection in order for the STEC node to register with your STEC instance hosted on stackit.cloud. You may have to configure a internet proxy if there is no direct internet connection from the STEC node you’re trying to install. This is done through using the talos.environment kernel parameter.

Terminal window
# kernel args
talos.environment=KEY=VALUE
Terminal window
# kernel args
talos.environment=http_proxy=http://proxy.example.net:8080 talos.environment=https_proxy=http://proxy.example.net:8443 talos.environment=no_proxy=localhost,127.0.0.1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,.cluster.local.,.cluster.local,.svc,.svc.