8000 Run MikroTik RouterOS as a vivarium guest · Issue #945 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

Run MikroTik RouterOS as a vivarium guest #945

Description

@Lillecarl

MikroTik RouterOS (CHR, Cloud Hosted Router) as a router node, as #657 lists for network operating systems.

RouterOS is not a systemd Linux, so the vivarium agent cannot run there and UML cannot boot it: its kernel is MikroTik's own.

  • Boot: QEMU with the CHR raw disk image (chr-7.x.img), free to download. The free licence limits each interface to 1 Mbit/s, enough for control-plane tests.
  • Control: the RouterOS REST API (/rest, 7.1+) or ssh, through a passt forward. The serial console for the first login. Phases get a small RouterOS driver instead of succeed.
  • Config: an .rsc script applied at first boot (/import), or the REST API.
  • Lost: the store view, /artifacts, journal events.

Done when a test routes between two NixOS guests through CHR and checks a BGP session with FRR.

Depends on #657 for QEMU-booted foreign images.

Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: vivarium
    on Oct 21, 2026
  2. Lillecarl commented on Oct 21, 2026

    @Lillecarl
    ContributorAuthor

    Milestone 1 is built, on bookmark vivarium/routeros (stacked on vivarium/vyos, whose vivariumImageGuest plumbing it uses). Design: vivarium/docs/design/console-guests.md.

    • vivarium.routeros boots CHR 7.24.5 under QEMU from its own disk. The serial port is the control channel; no agent, no store.
    • Config: RouterOS script on a bare ext4 disk, /imported after login. (An ext4 in an MBR table stops CHR booting; a read-only disk does not mount.)
    • Machine.execute goes through a Control: AgentControl (the agent, unchanged) or ConsoleControl (anyio) with a RouterOS dialect. Each command travels as base64 in a fixed template and its output comes back as base64, so nothing wraps or gets rewritten by the line editor; errors return RouterOS's message. Login admin+ct65535w9999h.
    • The routeros test passes sandboxed in 20 s: config applied, a command, a failing command's message, 3000 lines of output, a 36 KB chunked script, agent calls refused.

    Next: two NixOS guests routed through the CHR, then BGP with FRR.

    Assisted-By: Claude Opus 5.5

  3. Lillecarl commented on Oct 21, 2026

    @Lillecarl
    ContributorAuthor

    The done line is met on bookmark vivarium/routeros: routeros-bgp runs eBGP between CHR 7.24.5 and an FRR guest, each learns the other's LAN, and hosts on the two LANs reach each other at TTL 62. routeros-route routes two NixOS guests through the CHR. All three RouterOS tests pass sandboxed.

    A RouterOS guest's interfaces carry their vivarium attribute names (renamed by MAC from etherN) and their declared addresses, as on every other backend.

    Stays open until the stack lands on main. Next on the console path: RestControl.

    Assisted-By: Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: vivarium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0