Files
nixfiles/docs/sites/colony/colony.md
T
jackos1998andClaude Opus 5.5 4d4404a254 colony: Install ipmitool and document the BMC
Record the BMC's management address and how to reach and recover it
through the in-band IPMI interface while the host is up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:11:44 +00:00

7.5 KiB

colony

The physical dedicated server in Amsterdam (ams1) and the VM host for everything at the colony site.

Hardware

Component Inventory
Platform ASRock Rack X570D4U server board
CPU AMD Ryzen 9 5950X (16 cores / 32 threads)
Memory 128 GiB
NVMe storage Three 2 TB Samsung SSD 980 PRO devices providing the NVMe-backed LVM thin pool and data LVs
Bulk storage Three 12 TB WD120EDBZ disks and one 18 TB WD180EDGZ disk for the bulk LVM volumes
Boot SanDisk USB device holding the EFI system partition
Network / management Two Intel I210 Gigabit Ethernet controllers, one passed through to estuary; ASPEED BMC graphics and console

Role

Bare-metal AMD host. It does little application work itself — its job is to run the VMs and provide them with storage, networking and backups.

Virtualisation

The my.vms module drives QEMU/KVM with kvm-amd and IOMMU enabled. Each my.vms.instances entry becomes a vm@<name> systemd service with UEFI, QMP/monitor sockets under /run/vms/<name>/, TAP networking and optional hostDevices passthrough through vfio-pci. estuary receives the WAN NIC this way.

Storage

All three NVMe SSDs and all four SATA HDDs are physical volumes in one main VG. Separate pools and standalone RAID LVs keep workloads on the appropriate media:

Layer Physical layout Main consumers
nvme-tpool Thin-pool data is RAID 0 across the three NVMe SSDs; thin metadata is RAID 1 on two of them. The data itself has no redundancy. Host /nix and /persist; VM system and persistence disks; fast data LVs such as minio, oci, git, gitea-actions-cache, nix-cache and jam
hdds-tpool Thin-pool data is RAID 5 across the three 12 TB HDDs; thin metadata is RAID 1 on two NVMe SSDs. media, passed to shill, and backup, mounted by the host at /mnt/backup
darts-media Standalone RAID 5 LV spanning all four HDDs. Bulk storage passed to darts
darts-ext Standalone linear LV using the remaining capacity of the 18 TB HDD. Expansion storage passed to darts

media and backup are thin-provisioned, so their virtual capacities are not additive physical capacity and overcommit hdds-tpool. VM disks built with lib.my.vm.disk are named vm-<name>-<disk> in main; lib.my.vm.lvmDisk attaches the named data LVs.

The initrd activates only colony-nix and colony-persist. This avoids checking and activating all of the storage before switching root; lvm-activate-main.service activates the remaining LVs before local filesystems and VMs need them.

Backups

my.borgthin job main snapshots host and VM persistence/data LVs into /mnt/backup/main. borgthin-rsync.service copies the repository to rsync.net and rsync-lvm-meta.service sends the LVM metadata; both run at idle priority after the Borg job.

Monitoring

Netdata uses FreeIPMI while ignoring the VCCM sensor. The box also runs smartd with logs under /var/log/smartd, rasdaemon, and fstrim before the backup job.

Network assignments

See the consolidated network assignments table (this box: colony).

Networking

  • Two bridges: base (the colony base network, shared with estuary) and vms (the VM network). Dummy interfaces (base0, vms0) keep the bridges up in networkd's eyes so dependent VMs can start.
  • colony sends RAs on vms (DNS = estuary's base address) and carries static routes for the downstream prefixes: ctrs via shill, oci via whale2, plus the Tailscale, qclk and jam prefixes via shill.
  • estuary is the default gateway (via the base bridge); colony's own public-facing address is its internal assignment (alt name vm).
  • The customer VMs attach to dedicated TAP devices (vm-mail, vm-darts) which are not bridged: networkd puts the point-to-point /32 (lib.my.c.colony.custRouting) and the customer's IPv6 /64 on each, sends RAs, and link-routes the customer's public /32 down the tap.
  • my.firewall trusts the vms bridge, DNATs the shared lib.my.c.colony.firewallForwards list for traffic addressed to estuary's public IP (so the port forwards also work from inside), and forwards the customer prefixes through with minimal filtering ("trust for now").

BMC

The board's AMI-based BMC provides the web UI, remote console and IPMI over LAN.

  • The dedicated management port is LAN channel 1, with the static address 198.18.10.38/24 and gateway 198.18.10.254 in Coloclue's management network. Channel 8 holds the unused shared-NIC configuration.
  • The host reaches the BMC in-band through ipmi_si (/dev/ipmi0), which Netdata's FreeIPMI plugin also uses. ipmitool is installed for this.

In-band recovery

While colony is running, root can change the BMC's LAN settings, users and passwords, or restart it, without network access or BMC credentials:

ssh-machine colony doas ipmitool lan print 1
  • Pass multi-command scripts on stdin with ssh-machine colony bash -s. ssh-machine flattens a quoted sh -c argument.
  • "Received a response with unexpected ID" warnings are harmless.
  • ipmitool mc reset cold restarts only the BMC, not the host.
  • In-band recovery needs the host to be up. Change and verify the BMC's network settings from outside before rebooting colony, not together with a reboot.

Changing the LAN settings

Save the current settings with lan print 1, then apply the new ones. Set the gateway last so that it falls inside the new subnet:

ssh-machine colony bash -s <<'EOF'
doas ipmitool lan set 1 ipsrc static
doas ipmitool lan set 1 ipaddr 198.18.10.38
doas ipmitool lan set 1 netmask 255.255.255.0
doas ipmitool lan set 1 defgw ipaddr 198.18.10.254
doas ipmitool lan print 1
EOF
  • From outside, check ipmitool -I lanplus -H <address> -U admin chassis status and the remote console in the web UI.
  • To roll back, run the same commands with the previous values.

VMs

Declared in my.vms.instances (cpus/threads are QEMU smp values):

VM Cores Threads Memory Network Disks
estuary 2 2 3 GiB base esp / nix / persist LVs + WAN NIC passthrough
shill 12 2 40 GiB vms esp / nix / persist + media / minio / nix-cache / jam LVs
whale2 8 2 16 GiB vms esp / nix / persist + oci LV
git 12 2 40 GiB vms esp / nix / persist / oci + git / gitea-actions-cache LVs
mail 3 2 6 GiB vm-mail tap root / data LVs
darts 4 2 16 GiB vm-darts tap root LV + darts-media / darts-ext LVs

estuary, shill, whale2 and git are NixOS systems with their own pages (see the README); mail and darts have host-side definitions here, but their guest operating systems are managed out of band.

Notable config files