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
| Section | Key | Default | Description |
|---|---|---|---|
[machine] | mem_size_mib | 512 | RAM per VM in MiB |
[machine] | vcpu_count | 1 | Number of virtual CPUs |
[machine] | fs_size_vm_mib | 1024 | Root filesystem size in MiB |
[rootfs] | name | "default" | Base rootfs image name |
[kernel] | name | "default.bin" | Kernel image filename |
[builder] | name | "docker" | Builder implementation |
[builder] | dockerfile | "Dockerfile" | Dockerfile path (relative to project) |
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)
- Command-line flags - Direct flag values
- Configuration file -
vers.tomlvalues - 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: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.