VM harness: network topology via containerlab bridges (test-02, RouterOS stand-ins) #31
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of lab/clusters#1668 (internal network). Feeds ADR-0011 (host VIPs) and lab/iac#43 (router as code).
Refs: lab/iac#63 (RouterOS sim, now containerlab), lab/iac#70 (round-trip gate), lab/iac#74 (on-box rollback timer), lab/iac#46 (router HA).
Rewritten 2026-11-13: containerlab provides the network fabric. The raw-QEMU harness stays.
Problem
The VM harness is one VM (test-01) on QEMU user networking. It can't test anything that needs a shared L2 segment or a router:
Decision
mikrotik_chr, officialmikrotik/chrimage, RB5009 port names), the WAN/ISP node, and the L2 segments as containerlabbridgenodes (Linux bridges on the harness host).generic_vmkind can't do that: it's a vrnetlab wrapper for prebuilt cloud images, with no ISO install, UEFI NVRAM control or fw_cfg. So containerlab does not replace the harness. The VMs swap-netdev userfor taps on the containerlab bridges (root, orqemu-bridge-helperwith/etc/qemu/bridge.conf).routeros/sim/lab.clab.yml. machine-configs refers to it rather than keeping its own copy.Stages
vm:net-up/vm:net-down: deploy the lab/iac containerlab topology plus alanbridge, then attach test-01/test-02 taps.vm:vip-check: VIP moves within seconds when the holder's tracked service stops; no holder while OpenBao is sealed (ADR-0011).Done when
task vm:net-up/vm:net-downbring the topology up and down with no manual stepsvm:vip-checkgreen on itvm:e2estages still pass, on user-net or on the bridgedocs/vm-testing.mdgains a "network topology" section and its "Known harness limits" list loses the single-NIC limitVM harness: virtual network topology (test-02, L2 segments, RouterOS stand-ins)to VM harness: network topology via containerlab bridges (test-02, RouterOS stand-ins)