Goal

Get Talos Linux running on real hardware so you can start using it.

You need:

  • Some spare hardware. An old x86 box, a NUC, a Raspberry Pi, whatever is sitting in the closet.
  • A USB drive.
  • A Mac with talosctl (brew install siderolabs/tap/talosctl). I ran every step in this post from my Mac, so everything here assumes macOS and Homebrew. Other platforms are left as an exercise for the reader.

There are two ways to get there. Flash the USB drive and boot from it. For one machine, that's the whole job. Or boot over the network. It takes more setup up front, but it scales: once it works, a new machine only needs a network cable and a power button. USB first, then network boot.

Either way, we stop when Talos is running and answering talosctl. Installing it to disk and building a cluster is the next post.

1. Get an image from the Image Factory

Stock Talos is very minimal. CPU microcode, GPU drivers, and similar bits come as system extensions. The Talos Image Factory builds an image with the extensions you pick and saves your choice as a schematic, identified by a long hash. Same extensions, same hash, so you do this once per kind of hardware.

On factory.talos.dev:

  1. Pick the hardware type. Bare-metal Machine for x86 and most ARM boxes, Single Board Computer for a Raspberry Pi.
  2. Pick the Talos version and the architecture (amd64 or arm64).
  3. Pick extensions. See below.
  4. Finish, and copy the schematic ID from the results page.

Choosing the hardware type on the Image Factory

Picking system extensions

The schematic ID and download links

Which extensions?

If the machine has it, add the extension for it. If it doesn't, leave it out.

  • CPU: Intel gets siderolabs/intel-ucode. AMD gets siderolabs/amd-ucode.
  • Graphics: Intel integrated graphics gets siderolabs/i915. Otherwise, search the list for your GPU.
  • Thunderbolt: Thunderbolt ports get siderolabs/thunderbolt.
  • What you'll run on it: some workloads need host tools. I run Longhorn, so I add siderolabs/iscsi-tools and siderolabs/util-linux-tools.

My NUCs get i915, intel-ucode, iscsi-tools, nvme-cli, thunderbolt, and util-linux-tools. Miss one and it's not a big deal. Changing extensions just means a new schematic.

2. Boot from USB

Download the ISO. I keep the version in the file name so they're easy to tell apart later:

SCHEMATIC=<your schematic ID>
VERSION=v1.14.5

curl -L -o talos-metal-amd64-${VERSION}.iso \
  "https://factory.talos.dev/image/${SCHEMATIC}/${VERSION}/metal-amd64.iso"

Use the latest Talos release for VERSION. The versions in this post and its screenshots will be out of date by the time you read it.

On ARM, swap amd64 for arm64. A Raspberry Pi is different: it runs from a disk image rather than an ISO. Follow the Talos Raspberry Pi docs.

Flash it with balenaEtcher (brew install --cask balenaetcher): Flash from file, pick the ISO, Select target, pick the USB drive, Flash.

Plug the drive into the machine. In the BIOS, turn off Secure Boot (this guide doesn't cover it), then pick the USB drive from the one-time boot menu. Talos boots into maintenance mode: nothing is installed to disk yet, and it's waiting for a config. The console shows the node's IP address.

The node's console in maintenance mode

Skip to step 4.

3. Boot from the network

The USB drive works, but every machine means walking over with the drive and a keyboard. Network boot replaces that. The machine powers on, asks the network what to boot, and gets Talos.

I use Bootimus, an open source (Apache-2.0) PXE and HTTP boot server. I skipped dnsmasq. It can do all of this, but I wanted a lab that stays simple and easy to maintain. Bootimus has a web UI instead of config files, and it can use LDAP for logins if you have a directory.

The feature that makes it easy to drop in is proxyDHCP. Your router keeps handing out addresses, and Bootimus answers only the PXE part of the request. Nothing on the router changes.

Run Bootimus

For the examples:

Machine Address
Router / DHCP 192.168.1.1
Mac running Bootimus 192.168.1.50
Talos node DHCP from the router

The official Bootimus deployment guide covers running it in Docker and logging in the first time. It changes as the project moves, so I'm not copying it here. Two things to get right:

  • Turn on proxyDHCP. See the DHCP docs.
  • Put Bootimus on the same network as the node. PXE starts with a broadcast, and proxyDHCP only works within one broadcast domain.

Add the Talos image

Bootimus boots Linux from a kernel and initrd, and for Talos on x86 it can pull them out of the ISO. Download the amd64 ISO from step 2, then in the admin UI:

  1. Upload ISO and pick it.
  2. Open the image's properties.
  3. Change the boot method from SAN boot to kernel/initrd, and click Extract.

There's no built-in Talos profile, but the generic scanner finds the boot files:

Generic scanner selected: kernel=/boot/vmlinuz initrd=/boot/initramfs.xz

Then set the kernel parameters to:

initrd=initrd talos.platform=metal slab_nomerge pti=on console=tty0

The Talos PXE guide requires talos.platform=metal, slab_nomerge, and pti=on. initrd=initrd tells the kernel which of the files iPXE downloaded is the initrd, and console=tty0 puts the console on the screen.

Image properties with the boot method set to kernel/initrd

On ARM

Extract doesn't work on the arm64 ISO. It packs the kernel and initrd into a single EFI file, so there's nothing to pull out. Put the files in place by hand instead, as described in the Bootimus kernel extraction docs:

Download the netboot files from the factory:

curl -L -o vmlinuz "https://factory.talos.dev/image/${SCHEMATIC}/${VERSION}/kernel-arm64"
curl -L -o initrd "https://factory.talos.dev/image/${SCHEMATIC}/${VERSION}/initramfs-arm64.xz"

Then:

  1. Upload the arm64 ISO.
  2. In Bootimus's ISO directory, make a folder named after the ISO, next to it, and drop both files in: talos-metal-arm64-v1.14.5/vmlinuz and talos-metal-arm64-v1.14.5/initrd.
  3. Set the boot method to kernel/initrd and the kernel parameters as above.

I tested this in a UTM VM on my Mac. Two things bit me. Give the VM 4 GB of RAM, because 256 MB wasn't enough to load the kernel and initrd. And set the VM's display to virtio-gpu-pci. With the display I started with, UTM showed "display output is not active" once the kernel takes over.

Boot the node

In the BIOS, turn on network boot and turn off Secure Boot. Then boot from the network. Every BIOS does this differently, so I'll leave the menus to you.

Power it on. The node gets an address from the router, loads the Bootimus menu, and boots Talos into maintenance mode, same as the USB drive. My NUCs and MS-01s booted fine. If yours don't, the PXE Debug page in the admin UI lists every DHCP request Bootimus sees, so you can tell whether the node is reaching it at all.

The Bootimus menu with the Talos entry

The Bootimus PXE Debug page

4. Check it

Grab the IP from the node's console. There are no certs yet, so talk to it with --insecure:

talosctl -n 192.168.1.123 get disks --insecure

A disk list back means Talos is running and waiting for a config. One of those disks is where Talos gets installed, and that's the next post.