Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
Vers uses TOML configuration files to define VM specifications. The primary configuration file isvers.toml, which controls how VMs are created.
The
vers CLI will first look for a vers.toml file corresponding to the current project (from the folder in which the CLI is run from) or refer to the file in ~/.vers which was written as part of CLI authentication.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_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:See Also
- vers init - Creates initial vers.toml configuration
- vers run - Uses configuration for environment setup
- TOML Specification - Configuration file format reference