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
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 → PowerCycleClaim. You apply a HostClaim. The HostClaim controller binds a free Host to it.
kubectl apply -f claim.yamlPropose. The controller proposes a HostOperation. The operation waits for approval. The machine does not change.
pk-metal statusApprove. You approve the operation. The HostOperation controller starts it.
pk-metal approve install-node-01Boot. 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 → PowerCycleCheck 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.
The sequence
Section titled “The sequence”- EjectMedia on each slot.
- InsertMedia for the installer. The operator downloaded it from the image factory and pins it by its digest.
- InsertMedia for the configuration. The operation pins the configuration by its digest.
- SetBootOverride to the virtual CD, one time, in UEFI mode.
- PowerCycle.
- AwaitCheckIn until the node runs from its disk.
- EjectMedia: the configuration first, because it holds the keys of the cluster.
Why not PXE
Section titled “Why not PXE”- 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.