Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Skip to content

Testbed setup

Target: the full vxedge virtual vehicle, control plane, vxgateway, virtual ECUs, AD workloads, running flawlessly on a single machine. Requirements are tiered by phase so you only install what the work in front of you needs. vxedge doctor --tier N (delivered 2026-07-13) verifies tiers 0–3 automatically with actionable fix hints; --json for CI.

Tier 0: control-plane development (works today)

RequirementVersion / valueCheck
OSUbuntu 24.04 LTS or newer (any modern systemd Linux works)lsb_release -a
Kernel≥ 6.8 (each results summary records the kernel it ran on)uname -r
CPU / RAM / disk4 cores, 8 GB, 20 GB free—
Rust1.99.1 (pinned by rust-toolchain.toml; rustup auto-installs)rustc --version
protoc≥ 3.21 (36.x current upstream, as of 2026-10)protoc --version
buf (optional)≥ 1.71buf --version
iproute2≥ 6.1 (ip, bridge, tc)ip -V

Tier 1: H1 experiments: gateway + probes (phase 1)

Everything in Tier 0, plus:

RequirementNotes
CAP_NET_ADMINTwo mechanisms now, not one, corrected 2026-08-05 after a live exp-010 --repro run failed against the 2026-07-17 guidance below. The 2026-08-04 rtnetlink port (docs/ROADMAP.md #16) moved bridge/veth/VLAN/address/route creation, WireGuard device creation, and the fiveg host-attachment path off the ip/bridge shell-out and into vxedged's own in-process syscalls, for exactly that portion, sudo setcap cap_net_admin,cap_sys_admin+ep <path-to-vxedged> now does work (cap_sys_admin is for setns(2) into a named network namespace) (no child process involved, so the fork+exec propagation problem below doesn't apply), and needs re-running after every rebuild since a fresh binary carries no capability. tc, nft, wg (key/peer config), and ovs-vsctl are still shell-outs, unchanged, and still need the NOPASSWD-sudo config below (e.g. <user> ALL=(root) NOPASSWD: /usr/sbin/ip, /usr/sbin/bridge, /usr/sbin/tc, /usr/sbin/nft, /usr/bin/wg, /usr/bin/ovs-vsctl), a cached interactive sudo credential (sudo -v, kept alive) works just as well as NOPASSWD for these, and is what every current campaign runner actually uses. Do not run vxedged itself as root either way, phase 2's fiveg driver needs podman to keep running as the deploying user's own identity (see Tier 2). Original 2026-07-17 finding, still true for the shell-out half: capabilities don't propagate across fork+exec to separate child processes, which is why setcap alone was insufficient before the rtnetlink port and still doesn't cover tc/nft/wg/ovs-vsctl today
iproute2 + nftablespresent on most Linux distributions
CPU isolation (recommended)pin gateway + probe cores: isolcpus/cpuset, record in results metadata
Kernel flavour caveatgeneric (non-PREEMPT_RT) is fine for first numbers; must be recorded as a determinism caveat (§12). PREEMPT_RT (Ubuntu Pro real-time kernel) is the upgrade path

No OVS and no WireGuard needed for H1, the gateway uses the kernel bridge.

Tier 2: real workloads: zones, 5G, CARLA (phase 2)

Everything above, plus:

RequirementVersion / valueNotes
CPU / RAM / disk12+ cores, 64 GB, 250 GB free (NVMe)CARLA + Autoware + zones concurrently
KVM + QEMUqemu-system-x86 ≥ 8.xkvm-ok; user in kvm/libvirt groups. qemu-microvm zone/vehicle nodes need no sudo entry, confirmed live 2026-08-06: vxedged launches qemu-system-x86_64 unescalated (kvm-group access to /dev/kvm plus TUNSETOWNER on the tap it attaches to, set at tap-creation time, is everything it needs). Do not add a NOPASSWD sudoers entry for qemu-system-x86_64, it buys nothing this backend needs and grants root code execution the daemon doesn't require
Cloud Hypervisorv54.0Only for backend: cloud-hypervisor. Static release binary on PATH as cloud-hypervisor; /dev/kvm access through the kvm group; no sudo entry.
vxcapsulesame version as vxedgedOnly for backend: wasm-capsule. Ships in the release archive; keep it beside vxedged. Runs unprivileged. Creating a node's namespace uses the ip sudo entry.
libvirt≥ 10.xvirsh version; daemon enabled
Open vSwitch (optional variant)apt install openvswitch-switchalternative gateway data plane; do not hand-create bridges, vxedge owns its bridge lifecycle
WireGuard toolsapt install wireguard-toolstelemetry/OTA transport links
taprio (TSN gate schedule, optional)the sch_taprio kernel module: in stock distribution kernels, loaded on first use; sudo modprobe sch_taprio loads it nowonly experiments with network.shaping (vxedge 0.28.0 or later) need it. Plan and up refuse such an experiment on a kernel without it, and vxedge doctor --tier 2 reports it. Running a gate schedule also loads cls_flower and act_skbedit
NVIDIA GPURTX-class, ≥ 12 GB VRAM; driver ≥ 550; CUDA per DeepStream/TensorRT matrixCARLA server + inference share it
Container runtimePodman (preferred; Docker-compatible OCI) + NVIDIA Container Toolkitdigest-pinned images only; hybrid policy: ARCHITECTURE §15
Podman API socket + passtrootless user socket: systemctl --user enable --now podman.socket, then loginctl enable-linger $USER; apt install passtvxedged drives the 5G pods over this socket ($XDG_RUNTIME_DIR/podman/podman.sock), not the podman CLI, so enable it as the user who runs vxedged, never as root: another identity has another image store, and vxedged refuses root's socket outright. Linger keeps the socket alive after your login session ends (an SSH logout otherwise stops it). Check with curl -s --unix-socket $XDG_RUNTIME_DIR/podman/podman.sock http://d/version. Each pod's network namespace is a pasta one, as podman pod create gives it, so passt must be installed. vxedged starts without the socket and connects on first 5G use. Upgrading from a vxedged that used the podman CLI: remove its pods once, podman pod rm -f vx5g vx5g-ran $(podman pod ps -q --filter name=vx5g-ran-ue-); up and down refuse to run over them and print that command
Open5GS + UERANSIMcontainerized: published images pinned by digest, pulled on first 5G use: ghcr.io/vxedge/parts/gw/5gc/os/open5gs:0.1.0 (Open5GS 2.8.0), ghcr.io/vxedge/parts/gw/ran/os/ueransim:0.1.0 (UERANSIM v3.2.7 with the vxprobe release) and mongo:7 (MongoDB 7.0.45). No local image buildS-NSSAI slicing (H2). Host needs only modprobe sctp. Host PPA install is legacy, disable its services (systemctl disable --now 'open5gs-*'), purge once the pod path is proven. Extend the Tier 1 sudoers entry to also cover nsenter (fiveg's CN/RAN transit link + bridge attachment join a pod's netns by PID), same NOPASSWD-for-the-deploying-user model, no wider than that

Tier 3: full vehicle + HMI (phase 3)

Adds: Kuksa databroker container, CARLA assets (~20 GB), AAOS emulator images, Qt ≥ 6.8 (QML HMI), Node 20+ (web dashboard build). RAM comfortably 96 GB for the six-zone vehicle manifest with AAOS and RTOS guests concurrently.

Tier M: modeling workstation (optional, any phase; track M)

Authoring-time only, none of this runs during a measured experiment, so it has zero effect on results and no host-resource requirements beyond an editor.

RequirementVersion / valueNotes
SysIDE (parse/type gate)0.9.1 (syside-languageserver.zip, sha256 1c3da428…)headless via vxmodels/scripts/validate-sysml.mjs (LSP driver; SysIDE has no one-shot CLI); VS Code extension of the same version for authoring
SysML v2 standard librarySysML-v2-Release 2026-09.1 sysml.library (tarball sha256 00efd27e…)required for stdlib imports (ScalarValues::* …) to resolve
Node≥ 20runs the language server + driver
OMG pilot implementation (optional)2026-05 (Jupyter kernel)semantic reference / visualization; not in the CI gate
vxmodel rendererRust (Tier 0 toolchain)builds with the same toolchain once the crate lands (M2)
Validation loop—model gate above, then vxmodel render output must pass vxedge manifest validate --json (Tier 0 binaries)

Rules

  • Versions above are the verified set; bumps go through this file in the same PR.
  • One machine is the design target through phase 3; multi-host (vxedged --controller, VXLAN inter-host) is optional scale-out, not a requirement.
  • Anything the testbed needs that this file doesn't list is a bug in this file.
Cite this page

Djaafri, F. (2026). vxedge: Testbed setup. Documentation, version 0.2.3, commit 4da33d6. https://vxedge.dev/docs/TESTBED-SETUP.html

@misc{djaafrivxedgetestbedsetup2026,
  author = {Djaafri, Fouzi},
  title  = {vxedge: Testbed setup},
  year   = {2026},
  url    = {https://vxedge.dev/docs/TESTBED-SETUP.html},
  note   = {Documentation, version 0.2.3, source commit 4da33d6}
}