Configuration
Single-page view · as markdown
provium.toml
Provium / Configuration
provium.toml is the only config file Provium reads. The default location is
./provium.toml; override with --config <path>.
The schema has two top-level keys: [provium] for runner settings, and
[profiles.<name>] for per-VM-type tuples. Both are optional individually, an
empty provium.toml parses cleanly but won't be useful for anything (no
profiles means provium:vm(name, profile) won't find any profile to look up).
Minimum useful config #
[]
= ["tests"]
[]
= "/path/to/bzImage"
= "/path/to/initrd.cpio.gz"
= "console=ttyS0 quiet"
This declares one test root and one profile. provium tests/ will scan
tests/ for *.test.lua, and tests can call provium:vm("name", "peios").
[provium] section #
roots #
[]
= ["tests", "vendor/upstream-tests"]
| Type | Default | Description |
|---|---|---|
| array of strings | [] (empty) | Fixture search paths, also prepended to package.path for Lua helpers. Test discovery uses positional command paths, or the current directory when none are supplied. |
Regardless of roots, provium <paths> scans the supplied command paths.
Without positional paths, it scans the current directory.
For most projects, set roots = ["tests"] (or whichever directory contains
your tests) so that:
provium(no arg) walks the test tree.provium fixture build foofindstests/foo.fixture.lua.- Tests can
require("helpers.assert_pingable")and Provium resolves it astests/helpers/assert_pingable.lua.
cache_dir #
[]
= "/var/cache/provium/fixtures"
| Type | Default | Description |
|---|---|---|
| path string | ~/.cache/provium/fixtures | Where fixture snapshots are stored. |
Useful for:
- Per-machine caches on shared hosts (default is per-user, set to a system-wide path for shared CI runners).
- Fast scratch storage (point at an SSD or tmpfs for build performance).
- Large dedicated cache (point at a partition with more headroom than
~/.cache).
The directory is created on first build. If the path is unreadable / unwritable at startup, eviction silently skips and the next build attempt errors with the underlying I/O error.
cache_max_size #
[]
= "100G"
| Type | Default | Description |
|---|---|---|
string with K/M/G/T suffix, or bare bytes | "20G" | LRU eviction target. The cache is allowed to grow beyond this between runs; eviction trims at the next provium startup. |
When the cache exceeds the cap, Provium sorts entries by access time and deletes oldest until total size is under the cap. Each successful restore bumps the entry's atime so popular fixtures stay hot.
[profiles.<name>] blocks #
Each [profiles.<name>] block declares one (kernel, initrd, cmdline,
guest_os) tuple. Test code looks them up by name: provium:vm("v", "<name>").
You can have any number of profiles; tests pick whichever they need.
kernel #
[]
= "/build/peios/bzImage"
| Type | Required | Description |
|---|---|---|
| path string | one of kernel / root | Path to a bzImage-format kernel image. Booted through QEMU's -kernel option. |
Path validation (does the file actually exist?) happens at VM-boot time, not
config-load time. This lets a single provium.toml be portable across
machines that have different kernel layouts.
Can be omitted when root names a composed Peios root, in which case
the kernel is found inside it.
root #
[]
= "{out}/root"
| Type | Required | Description |
|---|---|---|
| path string | one of kernel / root | A composed Peios root, with a kernel under its modules directory. The kernel is taken from usr/lib/modules/<release>/vmlinuz-<release> inside it. |
Set this instead of kernel when the profile's build composes a
root, so the profile does not also have to know where in that root a kernel
lands. A kernel version bump then moves nothing in the config. kernel, when
set, wins.
Resolution happens at VM-boot time, after the build has run, which is the only
order that works, since the build is what produces the root. Two kernels in
one root is an error rather than a choice made quietly: set kernel to say
which.
initrd #
[]
= "/build/peios/initrd.cpio.gz"
| Type | Required | Description |
|---|---|---|
| path string | no | Path to an initramfs. Booted through QEMU's -initrd. Omit it to boot the agent overlay alone, see No initrd at all. |
By default, Provium injects the provium-agent binary at
/sbin/provium-agent by concatenating a small overlay cpio onto your initrd
at launch (the kernel unpacks concatenated gzip cpios into a single rootfs).
The agent boots as PID 1 and forks immediately: the child becomes the vsock
listener, the parent execs your initrd's /init, which therefore takes over
PID 1. In this chained layout the agent deliberately mounts nothing first,
your init owns the mount and pivot sequence exactly as it would alone. (Only
on an agent-only initrd, with no user /init, does the agent perform the
pseudo-FS mounts itself.) Userspace runs as it would have on its own; the
agent runs alongside in a child process.
Three consequences:
- The initrd must support the agent startup path. A compatible Peios
initramfs with a working
/initand guest vsock support can work. - Your
/initruns as PID 1. If your tests need PID-1 init duties (signals, child reaping), they happen in your init as before. - The merged initrd is content-hash cached under
<scratch_root>/agent-overlay-cache/<sha256>.cpio.gz. Subsequent boots of the same(initrd, overlay)pair reuse that entry.
To opt out (for example when your initrd already bundles an agent at the path
Provium would set), set inject_agent = false on the profile.
No initrd at all #
Omitting initrd means the VM has no userspace of its own: the agent overlay
is the whole initramfs. Nothing is concatenated and nothing is cached, the
overlay file is handed to QEMU as it stands. It carries the agent but no
/init, so the agent comes up as PID 1 in its standalone mode and performs
the pseudo-FS mounts itself.
That is the shape a kernel conformance suite wants, where the point is that nothing but the kernel is reachable from a test. It also saves such a project vendoring an initrd cpio it would never otherwise need.
inject_agent = false with no initrd is rejected: without injection there
is no overlay to stand in for the missing file, and so nothing to boot.
disks #
[]
= [
{ = "{out}/peios.iso", = "medium", = true },
]
| Type | Default | Description |
|---|---|---|
| array of tables | [] | Block devices attached to the guest for the whole of every boot under this profile, in order. Each emits a -drive if=none / -device virtio-blk-pci pair, so the guest sees them as /dev/vda, /dev/vdb, … by position. |
Per disk:
| Key | Type | Default | Description |
|---|---|---|---|
path | path string | required | Host path of the backing image. Provium never creates one, a missing file fails the launch with disk \. Rebased against the profile's directory and {out}-expanded like kernelandinitrd`. |
id | string | disk<N> by position | The QEMU drive id, and the name vm:disk(id) looks the attachment up under. |
readonly | bool | false | Attach read-only, so a guest write is refused rather than modifying the image every later boot in the run then reads. |
mediated | bool | false | Serve the disk through Provium rather than handing QEMU the file, so disk:power_cut() can discard exactly what the guest never flushed. See below. |
Put a disk here when the image is part of the system under test rather
than part of a test. A boot medium an initramfs scans for is a sibling of
initrd and root: every test boots the same one, and the profile's build
already owns keeping it fresh. Put it in
vm:boot({disks = …}) when it varies per test — a
blank disk to install onto, a deliberately damaged filesystem.
A disk cannot come from vm:attach_disk, which runs after boot. Anything the
guest's firmware or initramfs does with a block device happens long before
there is an agent to call that, so a medium the boot itself depends on has to
be on the bus at the guest's first instruction.
Ids are one namespace across the profile's disks and the boot's, because they
end up on one QEMU command line. A duplicate within the profile is rejected
when the config loads; a boot disk reusing a profile id fails the launch with
disk id \
Mediated disks #
A disk with mediated = true still reaches the guest as an ordinary
virtio-blk device. What changes is who is underneath it: Provium serves the
image over an NBD server of its own and holds each write until the guest
flushes it, so disk:power_cut()
drops precisely the writes that were never made durable.
Killing the VM is not a substitute for that. Unflushed data written through an ordinary drive sits in the host's page cache, which outlives the process, so a test that killed QEMU would find everything intact and report durability it had never demonstrated.
The drive is attached cache=none as a consequence rather than as a tuning
choice: a read QEMU could satisfy from its own cache is a read Provium never
sees.
Mediation is opt-in per disk. power_cut on a disk without it fails naming
the disk, rather than quietly doing nothing.
inject_agent #
[]
= false
| Type | Default | Description |
|---|---|---|
| bool | true | When true, Provium concatenates the agent overlay onto initrd at launch and appends rdinit=/sbin/provium-agent to the kernel cmdline. Set false to use the initrd as-is. |
If your cmdline already pins a different rdinit=PATH, the launch errors with
a clear conflict message rather than silently overriding. Either remove the
conflicting rdinit=, or set inject_agent = false.
agent_overlay_path #
[]
= "/usr/local/share/provium/agent-overlay.cpio.gz"
| Type | Default | Description |
|---|---|---|
| path string | unset | Override the path to the agent overlay cpio. Useful for distribution-installed Provium where the overlay isn't co-located with the binary. |
When unset, Provium tries (in order): the PROVIUM_OVERLAY env var, then
<provium-binary-dir>/../share/provium/agent-overlay.cpio.gz, then walks up
the binary's directory tree looking for dist/agent-overlay.cpio.gz (covers
in-development runs from target/). Set this field, or the env var, when none
of those apply.
agent_boot_timeout #
[]
= 8.0
| Type | Default | Description |
|---|---|---|
| float (seconds) | 30 | How long vm:boot waits for the in-VM agent to answer before declaring the boot failed. Must be positive. |
Thirty seconds is a generous ceiling for a guest that is going to come up, and
a long time to wait for one that is not. Lower it on a profile whose guest
boots quickly and whose tests deliberately boot configurations that cannot
reach an agent, an init that halts, an image with no init at all, because for
those the timeout is not a safety margin but the length of every passing test.
vm:boot's agent_timeout overrides it for a single boot.
Raise it instead for a guest that legitimately takes longer than thirty seconds: a large image, a slow filesystem check, a host under heavy parallel load.
cmdline #
[]
= "console=ttyS0 quiet"
| Type | Required | Description |
|---|---|---|
| string | one of cmdline / cmdline_file | Inline kernel command line. It can be empty or omitted when cmdline_file is set, the two compose. A profile with neither a non-empty cmdline nor a cmdline_file is rejected with profile \ |
vm:boot({kernel_cmdline = "..."}) overrides the whole command line for one
boot; vm:boot({kernel_cmdline_append = "..."}) keeps it and adds tokens
after it.
Provium always appends console=ttyS0 if absent. The kernel happily uses
multiple console= directives, so any user-set values are preserved
alongside. The reason: the QEMU command wires the serial port into Provium's
console capture, so the kernel's printk needs to land there for failure
diagnostics to be visible. Without console=ttyS0, PID 1's /dev/console
might resolve to a device QEMU doesn't capture, and writes to stderr can fail
and crash userspace.
Common additions:
loglevel=7, verbose kernel logging for debugging.nokaslr, for reproducible kernel addresses in panic dumps.panic=1, panic immediately rather than hanging on unrecoverable errors.
cmdline_file #
[]
= "../dist/peios-experimental-2026.8/root/usr/share/live-boot/cmdline"
= "loglevel=7" # optional; appended after the file
| Type | Required | Description |
|---|---|---|
| path string | one of cmdline / cmdline_file | Path to a file whose contents are the base command line, typically an image builder's generated cmdline. Read at VM-boot time; resolved relative to the current directory, like kernel/initrd. |
All whitespace in the file, including newlines, is collapsed to single spaces,
then the inline cmdline (if any) is appended after. Because the kernel
applies last-wins semantics to most repeated parameters (init=, loglevel=,
…), an inline token overrides the file's value for those.
The point is to stop the command line from drifting. If a builder bakes
init=/usr/bin/protoinit into the image's cmdline and you hand-copy that into
cmdline, the two silently diverge the next time the builder changes.
Pointing cmdline_file at the builder's output means Provium reads the
authoritative value every boot. See
Dynamic profiles.
guest_os #
[]
= "peios"
| Type | Default | Description |
|---|---|---|
| string | "peios" | Guest OS identifier. v1 only supports "peios". |
Validated at config load time. A profile with guest_os = "linux" (or any
other value) errors with profile \
The field exists to future-proof the schema for other ports, when there's a Windows agent, this would be how a profile selects it.
build #
[]
= "./build-image.sh '{out}'"
= "{out}/root/usr/lib/modules/<release>/vmlinuz-<release>"
= "{out}/root/system/boot/initramfs.cpio.zst"
= "{out}/root/usr/share/live-boot/cmdline"
| Type | Default | Description |
|---|---|---|
| string | unset | Shell command (run with sh -c) that produces this profile's boot artifacts. Runs once before any VM boots. A non-zero exit aborts the run. |
The literal token {out}, in build and in the path fields, expands to this
profile's build-output directory (see build_out), so the command's --out
and the kernel/initrd/cmdline_file Provium later reads are the same path
and cannot drift.
Provium tracks no staleness: the command runs every invocation. Making
rebuilds cheap when nothing changed is the builder's job, not Provium's. Skip
the hook with --no-build, or run it without booting through
provium prepare. Full treatment on
Dynamic profiles.
build_out #
[]
= "/tmp/provium-builds/peios"
| Type | Default | Description |
|---|---|---|
| path string | $XDG_CACHE_HOME/provium/builds/<profile>/ | The directory {out} expands to. |
When unset, the default base is resolved like the fixture cache,
$PROVIUM_BUILD_DIR, then $XDG_CACHE_HOME/provium/builds, then
~/.cache/provium/builds, then /tmp/provium-builds, with the profile name
appended. Provium creates the directory before running build but never
wipes it: the build command owns its contents (so it can keep its own
incremental-build caches there).
Multiple profiles #
You can declare any number of [profiles.<name>] blocks; tests pick one by
name per VM. Patterns for multi-profile setups (debug builds, cross-version
testing, feature-flag gating) are on
Profiles.
from_dir #
[]
= "profiles"
Reads profiles from a directory instead of writing them inline. Each
subdirectory holding a profile.provium.toml is one profile, named after the
directory:
provium.toml
profiles/
kernel-only/
profile.provium.toml
full-system/
profile.provium.toml
gives the profiles kernel-only and full-system. A subdirectory without
that file is not a profile and is skipped rather than rejected, so a profile
directory can keep whatever else it needs beside its config. A from_dir that
names a directory holding no profile at all is an error.
The file's contents are the fields above, everything from [profiles.<name>]
except the name, which the directory supplies.
Adding a testset becomes mkdir, with nothing central to keep in sync. That
matters most for a repository whose whole purpose is holding many of them.
from_dir and inline blocks can both appear. A discovered profile whose name
collides with an inline one is an error, not a silent winner.
What a discovered profile's paths are relative to #
Its own directory, both the paths it names and the directory its build runs
in. An inline profile keeps resolving against Provium's current directory, as
it always has.
This is the rule that makes a profile directory self-contained: it can be moved, copied, or renamed and still mean what it says. It also means the same relative path means the same thing whether it is written in the shared config or in a profile beside it, which is not true if everything resolves against one directory.
{out} paths are exempt, since a build-output directory is absolute and has
nothing to do with where the profile lives.
# profiles/kernel-only/profile.provium.toml
#
# Both specs are named relative to this directory, and the command runs
# here; resolve the project builder's inputs from that directory.
# `--out` must not already exist, and Provium never wipes {out} —
# clearing it is the build's own job.
= "./build-image.sh {out}/root"
= "{out}/root"
= "console=hvc0 quiet panic=1"
Important: the fixture cache key folds in EVERY profile's kernel + initrd identifier. Adding a new profile invalidates the entire fixture cache. This is intentional: a new kernel could behave differently, so existing fixtures are invalid. See Profiles, What happens to the cache when profiles change.
Configuration loading #
| Step | What happens |
|---|---|
| 1. Read | provium.toml is read from --config <path> (default ./provium.toml). |
| 2. Parse | TOML is parsed. Parse errors include the file path. |
| 3. Validate | Each profile is validated (a non-empty cmdline or a cmdline_file; guest_os = "peios"). |
| 4. Expand | The {out} token in each profile's build command and path fields is replaced with that profile's resolved build-output directory. |
| 5. Use | The Config struct is wrapped in an Arc and passed to every file runner. |
Errors:
| Error | Cause |
|---|---|
read \ | File missing or unreadable. |
parse \ | Malformed TOML. |
invalid config in \ | Validation failed (empty cmdline, unsupported guest_os, and so on). |
All three abort the run with exit code 2.
Worked example #
[]
= ["tests", "internal-tests"]
= "/srv/provium-cache"
= "200G"
[]
= "/srv/peios-builds/latest/bzImage"
= "/srv/peios-builds/latest/initrd.cpio.gz"
= "console=ttyS0 quiet panic=1"
= "peios"
[]
= "/srv/peios-builds/mainline/bzImage"
= "/srv/peios-builds/mainline/initrd.cpio.gz"
= "console=ttyS0 quiet panic=1"
= "peios"
[]
= "/srv/peios-builds/debug/bzImage"
= "/srv/peios-builds/debug/initrd.cpio.gz"
= "console=ttyS0 debug loglevel=7 nokaslr panic=1"
= "peios"
This declares three profiles (production, mainline, debug), centralises the
cache on a 200 GiB dedicated mount, and scans both tests/ and
internal-tests/.
See also #
-
Project structure: the broader project layout.
-
VM reference:
boot_opts.kernel_cmdlineoverrides andkernel_cmdline_append. -
Profiles: patterns for using multiple profiles.
Profiles
Provium / Configuration
A profile names what a VM boots, a kernel, an initramfs, a command line, a
guest OS, in provium.toml. Tests pick a profile by name when they create a
VM. This page covers the practical patterns.
The configuration field reference is on provium.toml. A profile can also build its own artifacts before booting rather than pointing at files already on disk, see Dynamic profiles.
When you need more than one profile #
For most projects, one profile is enough, peios, pointing at the latest
build. You'd add more when:
- You're testing across kernel versions (
peios-stable,peios-mainline). - You want a debug build available for diagnosing failures (
peios-debug). - You're gating tests on a feature flag in the kernel (
peios-prefeatx,peios-postfeatx). - You're testing a port to a new architecture (
peios-arm64).
Declaring multiple profiles #
[]
= "/build/peios/bzImage"
= "/build/peios/initrd.cpio.gz"
= "console=ttyS0 quiet"
[]
= "/build/peios-debug/bzImage"
= "/build/peios-debug/initrd.cpio.gz"
= "console=ttyS0 debug loglevel=7 nokaslr"
[]
= "/build/peios-stable/bzImage"
= "/build/peios-stable/initrd.cpio.gz"
= "console=ttyS0 quiet"
Tests pick:
provium:
provium:
provium:
A test can mix profiles in the same file, useful for compatibility testing:
test
One directory per profile #
Profiles do not have to be written in provium.toml at all.
[profiles] from_dir reads them from a directory, one subdirectory each:
[]
= ["tests"]
[]
= "profiles"
profiles/
kernel-only/
profile.provium.toml # the profile
image.toml # whatever else it needs, beside it
full-system/
profile.provium.toml
image.toml
Everything a discovered profile names is relative to its own directory, and
its build runs there. So a profile directory is self-contained: it can be
moved, copied or renamed without rewriting what is inside it, and adding one
is mkdir rather than an edit to a central list.
Prefer this when profiles carry files of their own, an image spec, a package manifest, a vendored initrd, and especially when the repository's purpose is holding many of them. Prefer inline blocks when a profile is three lines pointing at paths that already exist.
Profile choice patterns #
Default and debug #
The most common split: a fast peios build for the default loop, and a
peios-debug build with loglevel=7, nokaslr, and (probably)
KASAN/UBSAN enabled. Use the debug profile when reproducing a kernel bug:
test
Cross-version compatibility #
Two profiles, one per release line. Ship a small handful of cross-version tests:
test
test
Tag these cross-version and gate through --no-tag cross-version in the dev
loop. CI runs them on a nightly cadence with --include-slow.
Booting only a kernel #
A profile that names no initrd boots the agent overlay alone: the agent is
PID 1 and supplies the guest userspace. Paired with a root composed to hold
the kernel, that gives a smaller test environment. Results still depend on
the agent and harness as well as the kernel.
# profiles/kernel-only/profile.provium.toml
= "./build.sh {out}"
= "{out}/root"
= "console=hvc0 quiet panic=1"
The project supplies build.sh. Keep dependency tracking in that builder;
Provium runs its hook on
each invocation.
No kernel either: Provium finds it inside the composed root. Tests then
drive the kernel directly, through the agent's syscall interface rather than
through any command:
test
Feature-flag gating #
Two profiles built from the same source with one feature toggled:
[]
= "/build/peios-prefeatx/bzImage" # FEATX disabled
# …
[]
= "/build/peios-postfeatx/bzImage" # FEATX enabled
# …
Tests that exercise FEATX-specific behavior pick peios-postfeatx; regression
tests run against both.
test
Per-VM cmdline overrides #
The profile's cmdline is the default; kernel_cmdline in vm:boot(opts)
overrides it for one VM:
local vm = provium:
vm:
This is useful for one-off testing of cmdline-sensitive features. For cmdline configurations you use repeatedly, declare a dedicated profile.
To add a parameter rather than restate the whole line, kernel_cmdline_append
keeps the profile's tokens and puts yours after them:
vm:
Where an appended token repeats one the profile already sets, the kernel takes the last occurrence, so the appended value wins.
Default profile selection #
One subcommand takes an optional profile arg and falls back to "the first
profile in provium.toml sorted by name" when you omit it:
| Subcommand | Behavior |
|---|---|
provium repl --fixture <path> (no profile) | Boots the first profile by sorted name. |
That is a boot-time choice and nothing more. It does not narrow the fixture
cache key: the test runner, provium fixture build,
provium fixture rebuild, provium fixture stale and
provium repl --fixture all fold every profile's kernel and initrd into the
key, so they address the same cache entry however many profiles you have
configured. Pre-warming in CI with provium fixture build warms the entry the
runner then reads.
To make the REPL default predictable, name your most common profile so it
sorts first alphabetically. aaa-default is ugly but it works; peios is
fine when it's your only profile.
What happens to the cache when profiles change #
The fixture cache key folds in the kernel and initrd identifiers of every
profile in provium.toml, sorted by name for determinism (the full key
model is on
fixtures and dependencies).
Practical consequences for profile changes specifically:
| Action | Cache effect |
|---|---|
| Edit a kernel image (any profile) | Every fixture invalidates. |
| Edit an initrd image (any profile) | Every fixture invalidates. |
| Add a new profile | Every fixture invalidates (the new profile's kernel/initrd are folded in). |
| Remove a profile | Every fixture invalidates. |
| Rename a profile | Usually invalidates everything (the fold order follows profile names). |
Edit cmdline on a profile | Cache is unaffected (cmdline isn't in the key). |
Change cache_dir | Cache is unaffected, the new dir is empty. |
This is deliberately conservative. A new profile means a new kernel could behave differently, so the existing fixtures might be subtly stale. Rather than guess, the harness rebuilds.
If you need to add a profile without invalidating the cache, you can't. Either
accept the rebuild or use a sibling provium.toml with
--config alt-config.toml.
Multi-arch profiles (preview) #
In v1, the QemuVmm backend invokes qemu-system-x86_64 exclusively, there's
no per-profile arch field yet. To run on aarch64, you'd have to swap the
binary at the harness level (not exposed).
When multi-arch lands, the profile is the natural place for an
arch = "x86_64" / arch = "aarch64" field.
See also #
- provium.toml reference: every field.
- VMs and profiles,
provium:vm(name, profile, opts?). - Fixtures and dependencies, what triggers a fixture rebuild.
Building Images with Dynamic Profiles
Provium / Configuration
Use a dynamic profile to run your image builder before tests boot a guest. Provium invokes the builder and consumes its output. The project supplies the builder; Provium does not compose an operating-system image itself.
Before you start #
- Provide a working image-build script and its declared inputs.
- Decide which output files contain the kernel, initrd, and command line.
- Make the script return a nonzero status if any required build step fails.
The example below assumes build-image.sh OUTPUT produces bzImage,
initrd.cpio.gz, and cmdline in the supplied directory. Adapt these names
to your builder's output contract.
Connect the build hook #
-
Add a profile to
provium.toml:[] = "./build-image.sh '{out}'" = "{out}/bzImage" = "{out}/initrd.cpio.gz" = "{out}/cmdline" -
Build the profile without starting a VM:
-
Confirm that the output directory contains the three expected files. Then run the tests on a host prepared for VM execution:
The hook runs through sh -c with the invoking environment. An inline
profile uses Provium's working directory. A profile discovered through
from_dir uses its own directory. Keep build commands appropriate to that
working directory.
Reading the command line #
cmdline_file supplies the kernel command line at boot. Provium collapses
whitespace and appends any inline cmdline text. For example, add a debug
setting without copying the builder's complete command line:
= "{out}/cmdline"
= "loglevel=7"
The effect of repeated kernel parameters depends on the parameter. Do not assume every parameter uses its last occurrence.
Choose an output directory #
{out} expands to the profile's build directory in both the command and
path fields. Set build_out for an explicit location:
= "/tmp/provium-builds/peios"
Without that setting, Provium uses its configured build-cache base and
appends the profile name. See
build_out for the fallback
order. Provium creates the directory but does not empty it. The builder
owns its contents and decides which outputs can be reused.
When the build runs #
The test runner builds all profiles with hooks before scheduling files. Lua chooses profiles at runtime, so discovery cannot determine which profiles a file will use. Console and interactive sessions build their selected profile.
provium prepare builds all dynamic profiles without booting. Supply a
profile name to prepare only that profile. Preparation skips VM preflight,
so it can run on a build host without KVM access.
--no-build skips automatic hooks for that invocation. Use it only when
the existing artifacts are the intended test inputs. It does not prevent
an explicit prepare command from building.
Making a builder incremental #
Provium invokes the hook on each run. Dependency tracking belongs to the builder. Prefer a build system that records its inputs and preserves unchanged output files rather than adding a second cache in the profile.
If a project-specific wrapper records completion, publish that record only after all outputs are complete. An interrupted build must not leave a record that identifies partial output as successful.
The fixture cache includes kernel and initrd identity information. Replacing those files can invalidate fixtures even when their names stay the same. See fixtures and dependencies.
Check the result #
A successful preparation exits with status 0. A build command that fails stops the operation with status 2; Provium does not continue to boot an older artifact after reporting a failed build.
For qualification, retain the build result and exact artifact identities with the test log. A successful hook confirms its exit status, not that the builder included every intended source change.