The Odigos VM Agent is available as part of Odigos Pro. For access and licensing details,
contact us.
This page installs the VM Agent as a Linux system package. To run the agent as
a container instead — for example on immutable hosts or Compose-managed
fleets — see Docker Deployment.
Configuring Package Sources (apt, dnf, rpm)
To install the Odigos VM Agent, configure your package manager or obtain the RPM files.- DNF
- APT
- RPM
Using
dnf (RHEL, Fedora, Rocky Linux):Root and non-root
Fresh installs run as the unprivilegedodigos user. The packaged unit still defaults to User=root; non-root mode is applied by the drop-in /etc/systemd/system/odigos-vmagent.service.d/nonroot.conf (capabilities, relocated writable trees, collector as a child process).
Precedence (first match wins):
- Host cannot grant ambient capabilities (systemd older than 229 — RHEL 7, CentOS 7, default Amazon Linux 2) → root, even if you requested non-root. Check with
/usr/lib/odigos/bin/odigos-vmagent-caps --explain. ODIGOS_AGENT_USER_MODE=rootornonrootin the environment of the package script (apt/dnf/rpm)- Sticky file
/var/lib/odigos-agent/user-mode(written automatically when the env is set; see below) - Heuristic: non-root — including an upgrade of a host that is still on root
Non-root extra permissions — additional permissions for restarting sources, journal groups for
LOGS, and the capability set — are documented in Linux Permissions.Installation
- DNF
- APT
- RPM
Non-root (default), using Root:
dnf (RHEL, Fedora, Rocky Linux):apt / dnf may not forward ODIGOS_AGENT_USER_MODE into the package script):
Apply the license
odictl validates the token before writing it, so an invalid JWT cannot replace a working license. The file is stored at /var/lib/odigos-agent/config/license.jwt (the same path in root and non-root mode).
odictl so it is validated first.
The config directory is owned by the agent user (
odigos in non-root mode, root in root mode) and is not world-writable. Use sudo for odictl -odigos-license and for any YAML you place under /var/lib/odigos-agent/config.Enable the VM Agent
Enable and startodigos-vmagent. It does not start itself on a fresh install.
Layout
Config, license, sources, destinations, actions, and rules live under one tree for both root and non-root:Next steps
- Linux Permissions — capabilities, Docker group, journal groups for
LOGS, and polkit for systemd restarts - Add destinations and add sources
- odictl