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'. The dark-themed navigation pane on the left shows 'Overview', 'Assets' (Images with a count of 2), 'Computing' (Hosts with a count of 2), and 'Runtime' (Clusters with a count of 0). The main content area is titled 'Create Image' and has a subtitle to configure an image step-by-step. Under the heading 'Kernel Parameters', there is an input field containing the text: talos.hostname=custom talos.dashboard.disabled=0. Below the input field are a '← Back' button and a 'Next →' button, indicating this is an intermediate step in a workflow.

  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'. The dark-themed interface has the main navigation on the left, showing 'Images' with a count of 2. The main content area is titled 'Create Image' and the current stage is 'Review'. This section displays a summary of the configured image settings: Image Name is custom, Image Version is v1.10.5-stackit.v0.21.0, Image Overlay is None, and Image Extensions is None. The 'Image Kernel Parameters' are listed as two bullet points: talos.hostname=custom and talos.dashboard.disabled=0. At the bottom, there is a '← Back' button and a 'Create' button with a clipboard icon.

  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.