Tutorial
Your first cluster in the lab
In this tutorial, you start the virtual lab and approve the install of three machines. The result is a Kubernetes cluster that the operator installed through simulated BMCs.
What you make
Section titled “What you make”
- A management cluster in kind that runs the operator.
- Three QEMU virtual machines, each with a simulated BMC.
- A Talos cluster with one control plane and two workers.
Virtual lab shows what runs where.
Time and prerequisites
Section titled “Time and prerequisites”- Time
- About 15 minutes. The first start downloads the images and takes more time.
- Workstation
- Linux with KVM, Docker Engine, 12 GiB of free memory and 15 GiB of free disk.
- Packages
- See Lab prerequisites.
- Repository
- A clone of the repository. Run all commands in its root directory.
1. Check the workstation
Section titled “1. Check the workstation”-
Install mise. It installs the tools at the versions that the repository pins.
-
Trust the configuration of the repository.
Terminal window mise trust -
Install the pinned tools.
Terminal window mise install -
Put the tools on the
PATHof this terminal. Do this in each new terminal.Terminal window eval "$(mise activate bash)"Without this step,
kubectl,talosctl,kindandyqare available only inmise runtasks. -
Run the doctor. The doctor can ask for your
sudopassword. It runs nothing as root.Terminal window mise run lab:doctor -
If a line starts with
MISS, do what itsfix:line says. Then run the doctor again.
2. Start the lab
Section titled “2. Start the lab”-
Start the lab.
Terminal window mise run lab:up -
Type your password if
sudoasks for it. Only the network part usessudo.
$ mise run lab:up ok go ok kind ok kubectl ok talosctl ok yq ok jq ok curl ok docker daemon answers ok docker is Docker Engine on this host (not podman, not Docker Desktop) ok docker runs as root (rootless Docker is not supported) ok /dev/kvm is usable by alice ok QEMU (qemu-system-x86_64, /usr/libexec/qemu-kvm or $PK_METAL_QEMU) ok OVMF (UEFI firmware for the machines) ok https://factory.talos.dev answers (installer images) ok the lab spec renders ok 11264 MiB of available memory for 3 machines ok 15 GiB free under /home/alice/platform-kit/.lab the workstation has what the lab needs == render /home/alice/platform-kit/lab/lab.yaml into /home/alice/platform-kit/.lab/generated == lab network bridge pkbr0 tap pktap1 (owner alice) tap pktap2 (owner alice) tap pktap3 (owner alice) enable IPv4 forwarding firewall rules (forwarding in DOCKER-USER) == kind cluster pk-metal Creating cluster "pk-metal" ... == operator image == operator deployment (pk-metal:4f2a9c1) deployment "pk-metal-manager" successfully rolled out == simulated fleet started (pid 48213, log /home/alice/platform-kit/.lab/fleet.log) BMC https://10.77.0.1:8441 answers BMC https://10.77.0.1:8442 answers BMC https://10.77.0.1:8443 answers == lab manifests asset.metal.platform-kit.org/node-1 serverside-applied ... hostclaim.metal.platform-kit.org/node-3 serverside-applied The lab is up. The operator now enrolls the machines and proposes to boot them. watch it: mise run lab:status let it happen: mise run lab:approve (the one human step) afterwards: mise run lab:kubeconfig
3. Read the proposals
Section titled “3. Read the proposals”-
Show the state of the rack.
Terminal window mise run lab:status -
Find the three operations with the phase
AwaitingApproval. -
Read the plan of each operation.
Terminal window metal/bin/pk-metal --kubeconfig .lab/kubeconfig approveWithout a name, the command lists the operations that wait. It approves nothing.
4. Approve the installs
Section titled “4. Approve the installs”-
Open the live view in a second terminal.
Terminal window mise run lab:top -
Select a machine with
tab. -
Press
a. Read the plan. -
Press
yto approve. -
Do steps 2 to 4 again for the other two machines.
-
If an operation fails at
insertMedia, select the machine and pressr.

To approve all operations at one time, you can use mise run lab:approve. See mise run lab:approve.
5. Watch the installs
Section titled “5. Watch the installs”- Keep the live view open. Each tile shows the step of its operation, for example
7/9 awaitCheckIn. - Wait until each Host is
Provisioned. This takes about three minutes after the approval. - If an operation fails, press
rin the live view to try it again. pk-metal retry does the same.
pk-metal top TalosNodes Ready 1/3 Kubernetes nodes Ready 1/1 needs a person: 1 cluster lab: ● Bootstrapped ✗ Available (NodesNotReady) control planes 1/1, workers 0/2 fleet http://127.0.0.1:8440/state ╭─────────────────────────────────────────────╮╭─────────────────────────────────────────────╮ │ pklab0001 · node-1 generic ││ pklab0002 · node-2 generic │ │ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● ││ BMC ● ─▶ media ● ─▶ VM ◐ ─▶ node ◐ │ │ BMC 10.77.0.1:8441 power on boot none ││ BMC 10.77.0.1:8442 power on boot Cd/On… │ │ media none ││ media CD: metal-amd64.iso │ │ last GET /Systems/1 200 ││ USBStick: node-2-config.iso │ │ VM ● running OSRunning ││ last POST /Systems/1/…/ComputerSystem.Res… │ │ host Provisioned ││ VM ◐ running OSBootStarted │ │ claim default/node-1 ││ host Provisioning │ │ op - ││ claim default/node-2 │ │ node node-1 10.77.0.11 ││ op 7/9 awaitCheckIn, approved by alice │ │ ● Talos ready ● kubelet Ready ││ pk-metal/provision-pklab0002-1a2b3c4d │ │ console .lab/state/node-1/console.log ││ node node-2 10.77.0.12 │ │ │ [talos] task startAllServices (1/1): done ││ ◐ Talos MaintenanceMode │ │ │ [talos] service[kubelet](Running): Healt… ││ console .lab/state/node-2/console.log │ ╰─────────────────────────────────────────────╯│ │ BdsDxe: loading Boot0002 "UEFI QEMU DVD… │ │ │ [ 0.000000] Linux version 6.12.40-tal… │ ╰─────────────────────────────────────────────╯ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ pklab0003 · node-3 supermicro-x12 ┃ ┃ BMC ● ─▶ media ○ ─▶ VM ○ ─▶ node ◐ ┃ ┃ BMC 10.77.0.1:8443 power off boot none ┃ ┃ media none ┃ ┃ last GET /Systems/1 200 ┃ ┃ VM ○ off ┃ ┃ host Assigned · Approval(Provisioning) ┃ ┃ claim default/node-3 ┃ ┃ op 1/9 ejectMedia, waits for approval ┃ ┃ pk-metal/provision-pklab0003-bf98c842 ┃ ┃ node node-3 10.77.0.13 ┃ ┃ ◐ Talos AwaitingContact ┃ ┃ console .lab/state/node-3/console.log ┃ ┃ │ ┃ ┃ │ ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ tab select a approve h hold/unhold r retry q quit
pk-metal top TalosNodes Ready 1/3 Kubernetes nodes Ready 1/1 needs a person: 1 cluster lab: ● Bootstrapped ✗ Available (NodesNotReady) control planes 1/1, workers 0/2 fleet http://127.0.0.1:8440/state ┌────────────────────────────────────────────────────────────────────────────────────────────┐ │ operation pk-metal/provision-pklab0003-bf98c842 │ │ why: Provisioning │ │ proposed by: system:serviceaccount:pk-metal:pk-metal-manager │ │ host pklab0003 (asset node-3, serial PKLAB0003) │ │ BMC: https://10.77.0.1:8443 (endpoint node-3) │ │ steps, in this order: │ │ 1. eject whatever is mounted on virtual media slot VirtualMedia1 │ │ 2. eject whatever is mounted on virtual media slot VirtualMedia2 │ │ 3. mount the Talos v1.14.6 installer on virtual media slot VirtualMedia1 │ │ 4. mount the machine config of TalosNode node-3 on virtual media slot VirtualMedia2 │ │ 5. boot from UsbCd at the next start only, in UEFI mode │ │ 6. power cycle: if the machine is on, force it off (no clean shutdown) and on again; │ │ if it is off, power it on │ │ 7. wait up to 30m for TalosNode node-3 to report in at 10.77.0.13 │ │ 8. eject whatever is mounted on virtual media slot VirtualMedia2 │ │ 9. eject whatever is mounted on virtual media slot VirtualMedia1 │ │ boots TalosNode node-3: address 10.77.0.13, role worker │ │ installs Talos onto the disk that matches serial=pklab-disk-3 │ │ everything on that disk is overwritten │ │ │ │ Approve as carol? [y/N] │ └────────────────────────────────────────────────────────────────────────────────────────────┘ y approve any other key: do not approve
pk-metal top TalosNodes Ready 2/3 Kubernetes nodes Ready 2/2 needs a person: 0 cluster lab: ● Bootstrapped ✗ Available (NodesNotReady) control planes 1/1, workers 1/2 fleet http://127.0.0.1:8440/state ╭─────────────────────────────────────────────╮╭─────────────────────────────────────────────╮ │ pklab0001 · node-1 generic ││ pklab0002 · node-2 generic │ │ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● ││ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● │ │ BMC 10.77.0.1:8441 power on boot none ││ BMC 10.77.0.1:8442 power on boot none │ │ media none ││ media none │ │ last GET /Systems/1 200 ││ last POST /Systems/1/…/ComputerSystem.Res… │ │ VM ● running OSRunning ││ VM ● running OSRunning │ │ host Provisioned ││ host Provisioned │ │ claim default/node-1 ││ claim default/node-2 │ │ op - ││ op - │ │ node node-1 10.77.0.11 ││ node node-2 10.77.0.12 │ │ ● Talos ready ● kubelet Ready ││ ● Talos ready ● kubelet Ready │ │ console .lab/state/node-1/console.log ││ console .lab/state/node-2/console.log │ │ │ [talos] task startAllServices (1/1): done ││ │ [talos] task startAllServices (1/1): done │ │ │ [talos] service[kubelet](Running): Healt… ││ │ [talos] service[kubelet](Running): Healt… │ ╰─────────────────────────────────────────────╯╰─────────────────────────────────────────────╯ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ pklab0003 · node-3 supermicro-x12 ┃ ┃ BMC ● ─▶ media ● ─▶ VM ◐ ─▶ node ◐ ┃ ┃ BMC 10.77.0.1:8443 power on boot UsbCd… ┃ ┃ media VirtualMedia1: metal-amd64.iso ┃ ┃ VirtualMedia2: node-3-config.iso ┃ ┃ last POST /Systems/1/…/ComputerSystem.Res… ┃ ┃ VM ◐ running OSBootStarted ┃ ┃ host Provisioning ┃ ┃ claim default/node-3 ┃ ┃ op 7/9 awaitCheckIn, approved by carol ┃ ┃ pk-metal/provision-pklab0003-bf98c842 ┃ ┃ node node-3 10.77.0.13 ┃ ┃ ◐ Talos MaintenanceMode ┃ ┃ console .lab/state/node-3/console.log ┃ ┃ │ BdsDxe: loading Boot0002 "UEFI QEMU DVD… ┃ ┃ │ [ 0.000000] Linux version 6.12.40-tal… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ tab select a approve h hold/unhold r retry q quit
pk-metal top TalosNodes Ready 3/3 Kubernetes nodes Ready 3/3 needs a person: 0 cluster lab: ● Bootstrapped ● Available control planes 1/1, workers 2/2 fleet http://127.0.0.1:8440/state ╭─────────────────────────────────────────────╮╭─────────────────────────────────────────────╮ │ pklab0001 · node-1 generic ││ pklab0002 · node-2 generic │ │ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● ││ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● │ │ BMC 10.77.0.1:8441 power on boot none ││ BMC 10.77.0.1:8442 power on boot none │ │ media none ││ media none │ │ last GET /Systems/1 200 ││ last POST /Systems/1/…/ComputerSystem.Res… │ │ VM ● running OSRunning ││ VM ● running OSRunning │ │ host Provisioned ││ host Provisioned │ │ claim default/node-1 ││ claim default/node-2 │ │ op - ││ op - │ │ node node-1 10.77.0.11 ││ node node-2 10.77.0.12 │ │ ● Talos ready ● kubelet Ready ││ ● Talos ready ● kubelet Ready │ │ console .lab/state/node-1/console.log ││ console .lab/state/node-2/console.log │ │ │ [talos] task startAllServices (1/1): done ││ │ [talos] task startAllServices (1/1): done │ │ │ [talos] service[kubelet](Running): Healt… ││ │ [talos] service[kubelet](Running): Healt… │ ╰─────────────────────────────────────────────╯╰─────────────────────────────────────────────╯ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ pklab0003 · node-3 supermicro-x12 ┃ ┃ BMC ● ─▶ media ○ ─▶ VM ● ─▶ node ● ┃ ┃ BMC 10.77.0.1:8443 power on boot none ┃ ┃ media none ┃ ┃ last GET /Systems/1 200 ┃ ┃ VM ● running OSRunning ┃ ┃ host Provisioned ┃ ┃ claim default/node-3 ┃ ┃ op - ┃ ┃ node node-3 10.77.0.13 ┃ ┃ ● Talos ready ● kubelet Ready ┃ ┃ console .lab/state/node-3/console.log ┃ ┃ │ [talos] task startAllServices (1/1): done ┃ ┃ │ [talos] service[kubelet](Running): Healt… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ tab select a approve h hold/unhold r retry q quit
The control plane, node-1, installs first. The workers join after the control plane is bootstrapped.
Rack to running node explains each step.
6. Use the cluster
Section titled “6. Use the cluster”-
Stop the live view with
q. -
Write the access files.
Terminal window mise run lab:kubeconfig -
Show the nodes.
Terminal window kubectl --kubeconfig .lab/workload.kubeconfig get nodesTerminal window NAME STATUS ROLES AGE VERSIONnode-1 Ready control-plane 6m v1.36.2node-2 Ready <none> 4m v1.36.2node-3 Ready <none> 4m v1.36.2 -
Show the Hosts in the management cluster.
Terminal window kubectl --kubeconfig .lab/kubeconfig get hosts
7. Stop the lab
Section titled “7. Stop the lab”-
Stop the lab. The command uses
sudoto remove the lab network.Terminal window mise run lab:down -
Delete the disks of the machines.
Terminal window mise run lab:reset
lab:down deletes the kind cluster, and with it all objects of the operator. It keeps the disks and the secrets bundle.
If you do not delete the disks, the next lab:up starts the same machines, and the operator proposes the installs again.
Each of the other lab tutorials starts a new lab of its own.
If a step does not give its checkpoint, see Lab troubleshooting. mise run lab:collect writes the state of the lab to a directory.
What you learned
Section titled “What you learned”- You write what must be true. The operator writes what it finds: Assert and observe.
- The operator proposes a change, and a person approves it: Approval.
- The operator boots a machine from virtual media on its BMC: Virtual media boot.
- The phase of a Host is a summary of its conditions: Phases and conditions.
- Day 2 in the lab: reboot a node, change its configuration and upgrade Talos.
- Scaling in the lab: add, remove and replace nodes.
- First real server: do the same with one real BMC.