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

User guide

For SDV / automotive engineers running experiments on vxedge. Onboarding lives in GETTING-STARTED.md; the full spec in ARCHITECTURE.md; host requirements in TESTBED-SETUP.md; results in RESULTS.md; phase status in ROADMAP.md; acronyms in ACRONYMS.md.

State banner: vxedge is a research-grade executable virtual prototype of a zonal SDV E/E architecture, not a certified tool and not a "digital twin" of any physical vehicle (that word is reserved for hardware-in-the-loop parity). What is verified today is listed per-verb below; everything else fails loudly rather than pretending.

1. Concepts

  • A workspace is the unit of work: a folder, not a single file. An experiment is a directory holding a vxp.yaml package descriptor (id, version, entry, requires; a legacy <id>.vxp descriptor is refused, with the steps to migrate) plus top-level YAML documents, each declaring its own kind: experiment (the test), vehicle (the system under test), road (the environment, optional), baseline (which software), component, plus an id. Every cross-reference is by id, never by path, so files can be renamed or reorganized without breaking anything; a whole workspace can also be one file of ----separated documents. The CLI/daemon keep no other configuration; every result archive records the workspace's SHA-256.
  • A workspace is a sandbox. It owns its campaign (the experiment's campaign block: repetitions, warmup, measurement window, sweep, arms and profiles), parts/ (its loadables), assets/ (scenario files), tools/ (its own helpers), and results/ (one archive per trial). It is a folder that can be zipped, sent, unzipped and run standalone, or packed into one .vxp file with vxedge pkg pack. vxedge experiment new <id> [--template minimal|slicing] scaffolds one, with its vxp.lock; vxedge experiment validate runs every cross-file check and every model invariant before anything is provisioned. Full schema: ARCHITECTURE.md §6.0.
  • Structure and software are separate files. One vehicle.yaml carries many baseline files, so an A/B arm is two baselines over one unchanged vehicle, not two vehicle files that drift apart. The vehicle names a slice (links[].slice: adas); the experiment defines it (network.slices[].mode: vlan|s-nssai); it is the only reference that crosses the structure/test boundary, and experiment validate checks it.
  • Slices are the network partitions under test: mode: vlan (per-slice VLAN + HTB queue-tree reservation on the virtual gateway; the H1 mechanism, verified) or mode: s-nssai (5G core slices via Open5GS with a simulated UERANSIM radio; the H2 mechanism, verified).
  • vxgateway is the software edge gateway the daemon provisions from the vehicle/experiment: a VLAN-filtering bridge (network.data_plane: kernel-bridge, default) or an OVS bridge (ovs; same plan, pluggable rendering backend), a shaped trunk uplink (the shared bottleneck where slice contention is measured), and one access port per zone-node interface. A link's impairments block (rate/delay/jitter/loss, via netem) and declarative harness block (medium/length/weight, reporting-only) model the physical wiring between two nodes.
  • Zones, nodes, and roles. Zones are the six regions (front-left, front-right, rear-left, rear-right, central-hpc, gateway); a node is a device with a role (zone-controller, hpc, gateway, ecu, sensor, actuator, switch) sitting in one. Each node runs under a packaging backend: container (network namespace), qemu-microvm (raw QEMU, direct kernel boot), libvirt (full VM) or cloud-hypervisor (microVM over a REST API, validated on linux-probe only) or wasm-capsule (a WebAssembly module in a network namespace), with identical network attachment; the packaging choice is itself an experimental variable (H3). ComputeService is role: hpc filtered over that same backend split, not a separate provisioning path.
  • Jobs: every mutating command returns a job with live streamed progress; a job that couldn't finish reports FAILED with the real error, never a hollow success.
  • Results archives (results/<exp>/<run>.zip) are the reproducibility unit: raw metric scrapes, structured samples, agent summaries, environment metadata, the workspace itself. v0.1.0 (2026-07-13) tags the checkpoint where this became true end to end: H1/H3/H4 all reproducible from a tagged manifest, not just runnable once.

2. CLI reference

All lifecycle verbs follow up|down[|status]; operations are idempotent.

CommandStateNotes
vxedged --listen unix://… --runtime-dir …liveneeds CAP_NET_ADMIN and CAP_SYS_ADMIN for real up (sudo or setcap)
vxedge up|down --manifest <workspace-dir>liveprovisions/removes the gateway; sets the daemon's active experiment. --manifest names a §6.0 workspace directory (or one file of ----separated documents)
vxedge statusliveobserved gateway + per-slice state
vxedge zone up|down --vxid <zone-id|device-id>liveruns the nodes of a zone (a region), or a single device by its own id, except hpc devices, which answer to vxedge compute; needs an active experiment
vxedge zone listliveper-node observed state, with each device's host interfaces (port=, peer=)
vxedge zone add/rm/image pushplannedimage store / registry work
vxedge manifest validate --manifest <path> [--json]livelocal-only. Takes a §6.0 workspace (a directory, or one file of ----separated documents) and runs every cross-file check and every model invariant, the same checks up runs. It is the only schema there is (§6.1/§6.2 were retired 2026-07-31)
vxedge events [--kind K]... [--json]livestreams what the daemon is doing: gateway.up, gateway.slice-applied, zone.up/down, service.up/down, traffic.started/stopped, plus job.state. Domain facts about resources, not job progress; lossy by design, so it is a live view rather than a record. For "what happened, in order, without loss", read the audit log
vxedge doctor [--tier N] [--json]livehost preflight against TESTBED-SETUP tiers 0–3, actionable fix hints
vxedge ota up|down [--experiment <path>]livespawns/manages vxota serve from the workspace's services.ota block; cwd-resolved by default like experiment verbs, --experiment overrides. A campaign normally reaches this through experiment up --stage services (what exp-003 actually does) rather than calling it standalone
vxedge ota status [--experiment <path>]livethe OTA service's observed state, wherever the workspace runs it: as a host process, or placed on a device. --json too
vxedge telemetry up|down|collectliveup/down run the workspace's services.telemetry; collect archives what it ingested, with the workspace and image digests, and returns the archive path and sha256
vxedge compute up|down --vxid <id> / listlivea second RPC surface over the same node backends as zone, filtered to role: hpc devices, not a separate provisioning path. add/rm/image push planned
vxedge vehicle up|down|status --manifest <vehicle workspace>livebrings up the gateway, its slices, every zone, central compute, and the signal plane and services a bare vehicle declares (kind: vehicle + kind: baseline, no experiment file), and tears them down again. --stage restricts it, as on experiment. status observes the host, so it stays right after a daemon restart. A second vehicle is refused while one is active. up refuses before provisioning if a local bundle or localhost/ image is missing, and no registry login is needed. Verified 2026-11-01 on vx-vehicle-02, a multi-zone vehicle with probe guests. manifest validate accepts a bare vehicle too, validating it the way vehicle up loads it. vehicle up --unlocked skips the lock check of a vehicle that is a vxp/1 package, as on experiment up
vxedge experiment new <id> [--template minimal|slicing] [--namespace <org>]livescaffolds a vxp/1 package folder (vxp.yaml, id local/<id> unless --namespace names the publisher) and writes its first vxp.lock; no daemon, no network, no GPU
vxedge results verdict|comparelivelocal and offline (ARCHITECTURE.md §6.0.3): verdict --experiment <workspace or file> <archives or folders>… judges the experiment's criteria over results archives, vxarchive/1 or /2, and compare --experiment … --archives … --reference … sets them against reference archives as ResultService.Compare does. A campaign's archives name their trials; for older ones, --name 'rep{repetition}-load{load_mbps}' (or rep{repetition}-{arm}) reads each trial from its file name. --json prints the full verdict
vxedge pkg new|validate|lock|pack|unpack|inspect|vendorlive (0.6.1; vendor 0.8.0)local and offline (ARCHITECTURE.md §6.0.7). validate adds the package checks to experiment validate and names each file the lock does not match; lock [--check]; pack [--out <dir>] refuses a stale lock and writes <name>-<version>.vxp beside the folder with its sha256: digest; unpack <file> [--into <dir>]; inspect [<file>] prints descriptor, lock and digest from either form; vendor <dir> [--as <owner>/<repo>/<path>] [--replace] copies another folder's documents in, such as a reference vehicle, with the local part folders they reference that git tracks (such as an attach adapter), records each copy's source and digest in the lock, and lists the scripts and build outputs it left behind and the local references the package still needs; vendor --check reports a copy edited here or changed at its source
vxedge experiment validatelivelocal-only; loads the workspace here and runs every cross-file check, reporting all problems at once
vxedge experiment up|down|statusliveacts on the workspace in the current directory (its vxp.yaml); no name, no --manifest. --chdir <dir> to run from elsewhere. up provisions gateway → zones → signal plane → services and does not start traffic; use vxedge traffic up. --stage gateway|zones|compute|signal-plane|services (repeatable) restricts it, so --stage services alone does not start a declared signal plane: a campaign measuring on the host-side veth peers stages only the gateway, and one whose isolation contract is a single arm at a time stages the gateway then brings each arm up with zone up --vxid. On a vxp/1 package up refuses with ERROR_REASON_LOCK_MISMATCH, naming each difference, when the package does not match its vxp.lock (0.7.0); --unlocked runs it anyway while authoring, and the run records that it was unlocked
vxedge traffic up|down --manifest …livedrives the declared profiles; kept separate from experiment up because load is time-bounded and a campaign sweeps it over a fixed topology. A profile whose source node's zone is up runs inside that node: the load or probe starts in the node's network namespace from its pinned address, to a target node or to the far side of the uplink. A profile whose source is not a node needs host-side traffic, experiment up --stage gateway, and is refused otherwise
vxedge measure start|stop|statusliveruns the experiment's declared measurements (rtt-probe) in the workspace of the current directory, once the experiment is up: the daemon starts vxprobe inside each end's network namespace, or on the far side of the uplink for to: internet. --id (repeatable) selects measurements, and --duration-s overrides method.duration_s. Samples reach the ingest as measurements/<id>. A VM or attached end is refused by Plan with ERROR_REASON_MEASUREMENT_INVALID
vxedge campaign plan|start|status|verdict|comparelivethe experiment's campaign in the workspace of the current directory: plan lists the trials (every sweep point and every arm) with their windows and any problem, start runs them one after another as a campaign.run job and follows it (--profile, --request-id to resume, --unlocked), status [<campaign id>] shows each trial's state, phase and archive and the recorded verdict, and verdict <campaign id> judges the experiment's criteria over the campaign's archives (ResultService.Verdict), criterion by criterion. compare <campaign id> <reference id> sets each metric's median at each point against the reference's median and IQR, and each criterion's outcome against the reference's (ResultService.Compare). A campaign needs the experiment's own telemetry service; its archives and campaign.json go to results/<campaign id>/
vxedge runs [status|down]livelists the runs on this host, each with its instance slot and run id; runs status and runs down (--all) act on several runs at once
One run by id, planning, host capabilities, job list and cancel, traffic statuslive in vxAPI, CLI plannedRunService.Get, WorkspaceService.Plan, HostService.Capabilities, JobService.List/Cancel and TrafficService.Status have no CLI verb yet. Agents reach them through vxmcp (run_get, workspace_plan, host_capabilities, job_list, job_cancel, traffic_status)

Global flags: --endpoint (default local Unix socket, or VXEDGE_ENDPOINT), --json, --chdir, --run.

The command-line contract

Every vxedge command-line tool is meant to follow these rules, so a script or an agent can drive one the same way as another. Not every tool follows them yet: the main differences are listed at the end of this section.

Naming the target.

  • A command that acts on a workspace, an experiment or vehicle package, takes it from the working directory. --chdir <dir> runs the command as if it were started in <dir>.
  • A command that acts on something the daemon already holds names it by id: a campaign id, a node's --vxid, or --run <run id> when the host runs several.
  • Every tool that talks to the daemon finds it through --endpoint, or VXEDGE_ENDPOINT, and otherwise uses unix:///run/vxedge.sock.
  • A command that checks a file or folder, such as manifest validate, takes its path as an argument, and defaults to the working directory.

Output. With --json, stdout carries only JSON: one document, or one JSON object per line for a command that follows a job or a stream. Progress, warnings, errors and logs go to stderr. An error also prints {"error": {"message": …, "reason": …}} on stdout, so a caller reading JSON sees it. Without --json, the output is for people and may change between releases, so scripts use --json.

Exit codes.

CodeMeaning
0The command succeeded and, where it judges something, every criterion or check passed
1The command ran, and a criterion or check failed or was inconclusive. The output says which
2Usage error: an unknown command or flag, or a missing or invalid argument
3The tool, the daemon or the host failed: the daemon is unreachable, a job failed for a host reason, a file cannot be read

campaign start follows the campaign to its end and exits 1 when the campaign's verdict failed, and 3 when vxedge or the host failed.

Help. Every command, flag and argument has a description. A default shown in help is the real one. Help lists no command or flag that does not work yet. --version prints the tool's name and version and exits 0.

Where the tools differ today. The main known differences:

  • vxedge:
    • a verdict or comparison that fails or is inconclusive still exits 0: campaign verdict, campaign compare, results verdict and results compare. Read the outcome field of their --json output. campaign start exits 0 whenever every trial ran, whatever the verdict;
    • every error exits 1, including an unreachable daemon and a failed job, and an error under --json prints no JSON;
    • zone and compute add, rm and image push are listed in help but not built. They print a notice and exit 0, and will be removed;
    • several subcommands and flags have no description in help;
    • the scripts/run.sh that experiment new writes calls traffic up and traffic down without the --manifest they need today.
  • vxedge target naming: the gateway verbs up and down, and vehicle, traffic, telemetry collect and manifest validate, take --manifest; ota, telemetry up and down, nos-check and results take --experiment; manifest validate takes its path through --manifest, not as an argument.
  • vxedged and vxcapsule have no --version. vxmcp has no --help, ignores unknown arguments, and exits 1 on every failure.
  • The measurement, OTA, telemetry, model and VHAL tools have no --json flag. vxprobe, vxtraffic, vxota-probe and vxtelemetry always print JSON, while vxota and vxvhal write their logs to stdout. None of them exits 3 on a host failure, vxtelemetry verify uses 3 for an identity it cannot check, and vxmodel exits 1 on a usage error.

The work to close these is planned in vxedge#215 (vxedge exit codes and help), vxedge#216 (naming the target), and each tool's own issue: vxagents#28, vxtelemetry#57, vxota#23, vxmodels#15 and vxvhal#7.

3. Typical workflows

a) Slicing sandbox (no measurement)

sudo -E env "PATH=$PATH" ./target/debug/vxedged --listen unix:///tmp/vx.sock --runtime-dir /tmp/vxrt &
vxedge --endpoint unix:///tmp/vx.sock up --manifest exp.yaml     # bridge + VLANs + HTB
vxedge --endpoint unix:///tmp/vx.sock status                     # per-slice observed state
vxedge --endpoint unix:///tmp/vx.sock zone up --vxid vxzone-front-left-01
vxedge --endpoint unix:///tmp/vx.sock zone list
vxedge --endpoint unix:///tmp/vx.sock down --manifest exp.yaml

b) A measurement campaign (the exp-001 pattern)

A campaign is declared in the experiment (campaign: repetitions, warmup outside the probe window, sweep or arms, profiles) and run by vxedged, one archive per trial. Every experiment in vxperiments is a package run this way:

cd vxperiments/experiments/exp-001-ws
vxedge campaign plan --profile repro      # the 25 trials, checked; touches nothing
vxedge campaign start --profile quick     # pipeline validation -> results/<campaign id>/
vxedge campaign start --profile repro     # the published protocol, on an idle host
vxedge campaign verdict <campaign id>     # the H1 criteria over the campaign's archives

Each campaign writes to its own results/<campaign id>/ in the workspace. vxedge results verdict --experiment . <archives> judges archives offline, with no daemon, and scripts/verdict-parity.sh --fetch in vxperiments re-judges every published dataset with its package's criteria.

Numbers from quick campaigns are pipeline validation only and are never reported. Reference result (2026-08-03 corrected campaign, superseding the original 2026-07-10 run; see RESULTS.md's Phase 1 row for why): ADAS slice p99 held at 0.91x baseline under 1.2x offered overload from the infotainment slice, zero loss (see RESULTS.md).

c) VM-backed zones (guest bundles)

VM backends boot a bundle (kernel + initramfs with an autostarting payload), built once:

sudo chmod 644 /boot/vmlinuz-$(uname -r)      # Ubuntu ships the kernel root-only
cd vxparts && ./parts/zone/linux/stack/probe-bundle/build.sh # -> ./bundle (digests in meta.json)

Point a node's image.url at the bundle dir with kind: rtimage and backend: qemu-microvm, backend: libvirt or backend: cloud-hypervisor. Guest network comes from the manifest's ip: via the kernel cmdline; the payload (a vxprobe reflector) starts automatically.

4. Measurement agents & telemetry (standalone today)

  • vxprobe reflect|send: RTT p50/p95/p99, jitter, loss; live Prometheus /metrics; JSON summary on stdout (stdout is machine-readable; logs go to stderr).
  • vxtraffic: rate-accurate UDP load (--pps or --bandwidth-mbps).
  • vxtelemetry ingest|collect: scrapes manifest targets, archives results/<exp>.zip with metadata (experiment id, manifest SHA-256, tool versions, ingest completeness).

5. Reading results

Every archive contains metadata.json (reproducibility fields), manifest.yaml, ingest/raw/**.prom (timestamped scrapes), ingest/samples.jsonl (structured samples), agent summaries, and run-env.json (kernel, RT flag, governor, pinning, timestamping method, load level, repetition). Analysis reads archives only; figures must regenerate headlessly. Report medians with IQR across repetitions; state sample counts next to tail percentiles; keep the recorded caveats attached (shared-host gateway, non-PREEMPT_RT kernel, userspace timestamps).

6. Mapping to production SDV vocabulary

vxedgeProduction counterpart
vxgateway (bridge/VLAN/HTB)zonal gateway / central switch QoS (automotive Ethernet)
slices mode: vlan → s-nssaistatic VLAN partitioning → 5G network slicing (S-NSSAI/URSP)
zones + backendszonal ECUs under a Type-1 hypervisor
type: can links (phase 3)CAN/LIN drops behind zonal controllers (restbus, DBC, Kuksa/VSS)
harness impairments (delivered) + harness block100/1000BASE-T1 PHY characteristics (rate/delay/jitter/loss) + declarative length/weight for harness-reduction reporting; TSN variant = 802.1Qbv/Qav + gPTP (phase 2, open)
results archivestest-bench evidence packages

7. Getting help / contributing

Each repo carries AGENTS.md (scope + rules) and CHANGELOG.md; docs/ROADMAP.md is the public phase status. Quality bars are codified per repo: rust-patterns, testbed-quality, experiment-methodology, gateway-verification (vxedge), sysml-authoring (vxmodels). A verb that prints "not wired to the daemon yet (scaffold)" is unimplemented: check the CLI reference in §2 before assuming a bug.

Cite this page

Djaafri, F. (2026). vxedge: User guide. Documentation, version 0.2.3, commit 4da33d6. https://vxedge.dev/docs/USER-GUIDE.html

@misc{djaafrivxedgeuserguide2026,
  author = {Djaafri, Fouzi},
  title  = {vxedge: User guide},
  year   = {2026},
  url    = {https://vxedge.dev/docs/USER-GUIDE.html},
  note   = {Documentation, version 0.2.3, source commit 4da33d6}
}