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

Skip to content

Run VyOS as a vivarium guest #944

Open

Description

@Lillecarl

VyOS as a router node beside NixOS guests: FRR, firewall and NAT tested against a real VyOS config, as #657 lists for network operating systems.

UML (working, bookmark vivarium/vyos): vivarium.vyos boots the ISO's live/filesystem.squashfs as a read-only ubd under vivarium's own kernel. A busybox initramfs overlays it with a tmpfs, mounts the store and artifacts over hostfs, enables the agent, writes config.boot, then hands over to VyOS's systemd. Kernel additions: squashfs, initrd, cthelper, conntrack timestamp/events/zones, nft fib, taskstats.

Still to do:

  • Interfaces: UML gives vecN; VyOS config wants ethN. Rename by MAC, then a two-router test (routing between NixOS guests, BGP with FRR).
  • Containers (crun): containerlab's recipe (squashfs → sqfs2tar → rootfs, mask getty.target/auditd, /sbin/init). The rootfs needs setuid bits and the vyattacfg group, so it is unpacked per run or mounted with squashfuse, not a store path.
  • QEMU: the same initramfs and squashfs, or the ISO's own kernel with boot=live.

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