Virter is configured through a TOML file. The default location is
~/.config/virter/virter.toml (or $XDG_CONFIG_HOME/virter/virter.toml if
that environment variable is set). When Virter starts and no config file
exists, a default one is generated with inline documentation for each option.
A different config file can be selected with the --config flag.
A given config key can be set in the following ways. From lowest to highest priority:
-
Config file. The TOML file at the default location, or the path given to
--config. -
Environment variable. Each key has a corresponding environment variable: prefix with
VIRTER_and replace.with_, all uppercase. For example,libvirt.poolis set withVIRTER_LIBVIRT_POOL. -
--config-setflag. A flag on the root command that takeskey=value. For example, to run a VM using a non-default pool without changing the config file:virter --config-set libvirt.pool=fast-ssd vm run --id 10 --name test alma-10--config-setmay be repeated for different keys. If the same key is given more than once, the last value wins. List-valued keys (such asauth.user_public_keyorlibvirt.dnsmasq_options) cannot be set with--config-set; use the config file instead.
See the generated default config file for the full list of keys, their default values, and a description of each.