heyer.systems Open Source

chrony

Internal NTP server – one time source for guests, Proxmox nodes and networks without Internet access.

Install

On the Proxmox node as root:

bash -c "$(curl -fsSL https://iac.heyer.systems/chrony/ct.sh)"

Container from the Debian 13 template · default: 1 CPU, 512 MiB RAM, 4 GiB disk

Customise the commandYour own values for CPU, RAM, network and modules – no dialog

Then: NTP: <IP> port 123/udp – state: chronyc tracking, clients: chronyc clients

Settings per instance

SettingMeaning
chrony_upstreamUpstream servers – NTP servers to synchronise with, separated by spaces (names or IPs, e.g. ptbtime1.ptb.de ptbtime2.ptb.de) – default: the pool 2.debian.pool.ntp.org
chrony_allowAllowed clients – Networks that may ask for the time, separated by spaces (e.g. 192.168.40.0/24) – default: all private networks (10/8, 172.16/12, 192.168/16, fc00::/7)

When creating a container, as var_<setting>:

var_chrony_upstream="<value>" bash -c "$(curl -fsSL https://iac.heyer.systems/chrony/ct.sh)"

Set or change later, in the guest (for VMs the only way so far): a line chrony_upstream=<value> in /etc/iac/settings.env – no quotes, the last line of a setting wins – then:

update

With NetBox: the same line chrony_upstream=<value> in the field Settings of the VM – it takes effect at the next update. Secrets stay in the guest.

Missing or empty = the app's default. Do not edit the configuration files iac writes – update overwrites them; their first lines name the file for local changes.

Update

In the guest:

update

Debian packages, chrony, modules and the iac configuration. Major versions never change automatically.

Add modules – any time, in containers and VMs alike:

update --list-modules
update --add-modules node-exporter

All modules · More about update