infrastructure/nixos-configurations/cyprianspitz/README.md
Fabian Hauser d8930608f3
All checks were successful
CI / build (push) Successful in 6m19s
Add caral documentation
2025-01-06 13:26:24 +02:00

2 KiB

Host: Cyprianspitz (+Router: Caral)

Operations

Reboot requires passphrase.

# Get HDD Password:
sops decrypt --extract '["system"]["hdd"]' private/nixos-configurations/cyprianspitz/secrets.sops.yaml

ssh -p 8223 root@calanda.plessur-ext.net.qo.is

Direct remote ssh access:

ssh -p 8222 root@calanda.plessur-ext.net.qo.is

Hardware

TODO

Networking: Caral Internet Router

A MikroTik CCR2004-1G-2XS-PCIe is used for internet access. It's a fiber card with build in router, supporting 2x 25Gbit SFP28 cages and 1Gbit RJ45 eth.

The manual states:

This form-factor does come with certain limitations that you should keep in mind. The CCR NIC card needs some time to boot up compared to ASIC-based setups. If the host system is up before the CCR card, it will not appear among the available devices. You should add a PCIe device initialization delay after power-up in the BIOS. Or you will need to re-initialize the PCIe devices from the HOST system.

In our case, since networking is reinitialized after the LUKS password promt, this should not be a issue in practice. However, if networking would not be available, contact someone for a physical reboot and wait longer before entering the HDD password.

To reload the card's virtual interfaces on a running system:

echo "1" > /sys/bus/pci/devices/0000\:01\:00.0/remove
sleep 2
echo "1" > /sys/bus/pci/rescan

To restart the card on a running system:

echo "1" > /sys/bus/pci/devices/0000\:01\:00.0/reset
sleep 2m # Wait for reboot
echo "1" > /sys/bus/pci/rescan

Top Overview

PCIE Side

HDD Bay

Note that the slot in the middle of the SATA bay is not connected due to the mainboard only having 4 SATA plugs.