socallinuxexpo / scale-network

SCaLE's on-site expo network configurations, wifi, tooling, and scripts
https://www.socallinuxexpo.org/
BSD 3-Clause "New" or "Revised" License
40 stars 16 forks source link

simplifying the static ip address for nixos machines #583

Open sarcasticadmin opened 1 year ago

sarcasticadmin commented 1 year ago

Description

Currently we are hardcoding the static ip address in each machines configuration. There should be a more uniform way of address assignment so that we can pass around these facts to all the machines that are defined in the flake.

Acceptance Criteria

davidelang commented 1 year ago

I'm perfectly happy with only the dhcp server being truely static, with the others getting addresses via dhcp reservations (as long as we can tweak the boot process so that they startup a few seconds after the dhcp server)

David Lang

owendelong commented 1 year ago

Actually, if we set up their boots to wait indefinitely for DHCP, that should be adequate and not require staged or ordered booting of the VMs.

owendelong commented 5 months ago

Also, the VM Host (hypervisor) should have static addressing as well.

owendelong commented 4 months ago

Rob and I discussed this today. It probably won't happen this time around, but the long term plan is to static address (hand coded) the Hypervisors and the DHCP servers and go with DHCP/DHCP6 reservations for everything else.

The DHCP servers should be the first VMs booted on the hypervisor, but they should boot fast enough that the other machines will still be well within their retry window by the time they start looking for addresses.