Skip to main content
Vers uses a TOML file — vers.toml — to describe how a VM should be created. vers run, vers build (FROM scratch), and other commands all read it. Command-line flags override the file; missing values fall back to built-in defaults.

Quick Reference

Flag precedence (highest to lowest): CLI flags → vers.toml → built-in defaults.

Configuration File Structure

Complete vers.toml Example

Minimal Configuration

Configuration Sections

[machine] Section

Controls VM hardware specifications and resource allocation.

Memory Configuration

  • mem_size_mib - RAM allocation per VM in mebibytes
  • Range - Typically 512-16384 MiB, depending on system capacity

CPU Configuration

  • vcpu_count - Number of virtual CPU cores per VM
  • Range - 1-16 cores typical, limited by host system

Storage Configuration

  • fs_size_vm_mib - Storage allocated to VMs

[rootfs] Section

Defines the base filesystem image for VMs.
  • name - Identifier for the rootfs image
  • “default” - Uses system default image

[kernel] Section

Specifies the kernel image for VM boot.
  • name - Kernel image filename
  • Default - “default.bin” for standard kernel

Default Values

When values are omitted, Vers uses these defaults:

Loading Behavior

Configuration Override Hierarchy

Precedence Order (highest to lowest)

  1. Command-line flags - Direct flag values
  2. Configuration file - vers.toml values
  3. System defaults - Built-in fallbacks

Flag Override Examples

Configuration Validation

Validation Rules

  • Positive integers - Memory, CPU, and storage values must be > 0
  • Resource constraints - Values must be within system capabilities
  • Image availability - Referenced images must exist

Common Validation Errors

Environment-Specific Configurations

Development Configuration

High-Performance Configuration

Configuration Best Practices

Resource Planning

Troubleshooting Configuration Issues

Common Problems

Configuration not loading:
Resource allocation failures:
Image not found errors:

What’s next

vers init

Create a new project and generate the initial vers.toml.

vers run

Boot a VM from your configuration.

Agent swarms

See configuration sized for real parallel-agent workloads.

Architecture

How VM resources map onto the underlying hypervisor.