Skip to content

Concept

Virtual media boot

The operator does not use PXE, TFTP or DHCP to install a machine. It mounts the installer and the node configuration as virtual media on the BMC, and boots the machine from them one time.

Install one machine

4 / 5

A HostClaim binds a Host. A HostOperation, after approval, boots the machine through its BMC with virtual media.YouHostClaimPendingHostOperation-BMCRedfishHostAvailableMedia storeinstaller + configMachineoffbindsproposesapprovesRedfishmountspower cyclechecks in

Boot

The operation mounts the installer and the node configuration as virtual media. It sets a one-time boot device and power cycles the machine.

InsertMedia → SetBootOverride → PowerCycle
  1. Claim. You apply a HostClaim. The HostClaim controller binds a free Host to it.

    kubectl apply -f claim.yaml
  2. Propose. The controller proposes a HostOperation. The operation waits for approval. The machine does not change.

    pk-metal status
  3. Approve. You approve the operation. The HostOperation controller starts it.

    pk-metal approve install-node-01
  4. Boot. The operation mounts the installer and the node configuration as virtual media. It sets a one-time boot device and power cycles the machine.

    InsertMedia → SetBootOverride → PowerCycle
  5. Check in. Talos starts from the disk and the node checks in. The operation ejects the media and succeeds. The Host is Provisioned.

    AwaitCheckIn → EjectMedia
Virtual media slot
A virtual CD drive of the BMC. The BMC downloads an image URL of the media service into the slot.
Boot override
A one-time boot device that the BMC uses at the next start, here the virtual CD.
Grant
A random token in the media URL, for one operation only. The first BMC address that uses it owns it. A medium that carries a secret also gets a one-time user and password.
Check-in
The moment when the installed node runs its configuration and answers the operator over the Talos API.
  1. EjectMedia on each slot.
  2. InsertMedia for the installer. The operator downloaded it from the image factory and pins it by its digest.
  3. InsertMedia for the configuration. The operation pins the configuration by its digest.
  4. SetBootOverride to the virtual CD, one time, in UEFI mode.
  5. PowerCycle.
  6. AwaitCheckIn until the node runs from its disk.
  7. EjectMedia: the configuration first, because it holds the keys of the cluster.
  • No DHCP or TFTP server is necessary on the machine network.
  • The node configuration never goes over the network to a machine without a configuration.
  • The BMC gets the media, so the machine needs no route to the operator.

A BMC with only one slot gets one installer with the configuration inside, see One-slot BMC.