config(rydiwo): enable pxe-infra, with VM off autostart
The L1–L6 plumbing is now in place (oqyude/nixos@a940356 …
85953f9, pxe-infra-automation@15c8c3e), the L5 image is built
and staged at /var/lib/pxe-infra/http/574ccbe/alpine-worker.raw
with a `latest` symlink. Time to actually switch the rig on.
Per the user constraint ("VM is for script development
iteration, not permanent"), the L4 guest is configured but
NOT autostarted. The systemd unit exists; `systemctl start
pxe-infra-vm` brings the guest up for a test session, and
`systemctl stop` tears it down. The bridge, DHCP+TFTP, HTTP,
iPXE staging, and report sink all start on boot as expected.
After this lands, `ip a` should show `pxe0` with
10.66.0.1/24, `curl http://10.66.0.1/` should show the nginx
autoindex with the staged image, and `systemctl status
pxe-infra-vm` should report `Loaded …; inactive (dead)` — the
unit is there, just not started.
This commit is contained in:
1 parent
85953f9b3d
commit
dfb939bdab
1 file changed
+21
-22
@@ -38,33 +38,32 @@
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# PXE infrastructure rig (L2 of docs/ARCHITECTURE.md).
|
||||
# Uncomment to enable on rydiwo. The rig gives rydiwo an isolated
|
||||
# Linux bridge (`pxe-infra.bridge.name`, default `pxe0`) plus a
|
||||
# MAC-filtered dnsmasq DHCP server bound only to that bridge — the
|
||||
# real LAN is not touched. The QEMU guest (L4) is configured but
|
||||
# NOT autostarted: start it by hand with
|
||||
# The rig gives rydiwo an isolated Linux bridge
|
||||
# (`pxe-infra.bridge.name`, default `pxe0`) plus a MAC-filtered
|
||||
# dnsmasq DHCP server bound only to that bridge — the real LAN is
|
||||
# not touched. The QEMU guest (L4) is configured but NOT
|
||||
# autostarted: start it by hand with
|
||||
# systemctl start pxe-infra-vm
|
||||
# when a test session needs it, and stop it the same way. Set
|
||||
# `vm.autostart = true` here to bring the VM up on every boot
|
||||
# (e.g. for a long unattended test run). See `modules/options.nix`
|
||||
# (options.pxe-infra.*) for the full option surface and
|
||||
# `modules/pxe-infra/` for the implementation.
|
||||
#
|
||||
# pxe-infra = {
|
||||
# enable = true;
|
||||
# bridge.address = "10.66.0.1";
|
||||
# bridge.prefixLength = 24;
|
||||
# vm = {
|
||||
# enable = true;
|
||||
# autostart = false; # start manually when testing
|
||||
# };
|
||||
# dhcp.guests = [
|
||||
# {
|
||||
# mac = "52:54:00:12:34:56";
|
||||
# ip = "10.66.0.10";
|
||||
# hostname = "pxe-vm-01"; # optional
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
pxe-infra = {
|
||||
enable = true;
|
||||
bridge.address = "10.66.0.1";
|
||||
bridge.prefixLength = 24;
|
||||
vm = {
|
||||
enable = true;
|
||||
autostart = false; # start manually when testing
|
||||
};
|
||||
dhcp.guests = [
|
||||
{
|
||||
mac = "52:54:00:12:34:56";
|
||||
ip = "10.66.0.10";
|
||||
hostname = "pxe-vm-01"; # optional
|
||||
}
|
||||
];
|
||||
};
|
||||
# --------------------------------------------------------------------------
|
||||
}
|
||||
Reference in new issue
Block a user