Installation

Support levels

Not every distribution is tested as well as the next. So dzo has three levels, and a distribution is only called supported at the level it was actually tested at:

Level

Distributions

What stands behind it

Reference

Debian 13 (trixie)

Everything: the blocking CI jobs below, the browser end-to-end suite, make test-client against a real DayZ client, and the author’s own servers. Changes are developed and run here first.

Supported

Ubuntu 26.04 LTS, Fedora 43 and 44, the RHEL 10 family (RHEL 10, CentOS Stream 10, AlmaLinux 10, Rocky Linux 10)

A blocking CI install per distribution, plus the release checklist for other distributions on a VM, once per dzo release line and when a distribution release is added. A failure there is a release blocker.

Best effort

Arch Linux, Ubuntu interim releases (26.10), Debian testing (forky)

CI smoke only, in a container, and those jobs do not fail the build: they show what a rolling archive, podman 6 or the next distribution release changes before a user runs into it.

CI, per distribution

Every job runs in the distribution’s own container image (.github/workflows/ci.yml). The install jobs take the package that the same run built — not the one in the repository. They install it with the dependencies of the distribution they run in. They then run dzo version. They check that the dayz user the package created has a UID of 1000 or higher. Then they run dzo setup --dry-run as that user. Finally, they let the distribution’s own podman quadlet generator convert the rendered golden units. The deb, rpm and arch jobs build the package and run lintian, rpmlint and namcap.

Distribution and image

Jobs

Blocking jobs

Debian 13 (debian:trixie)

deb, package-install, quadlet-check, e2e

all of them

Ubuntu 26.04 LTS (ubuntu:26.04)

package-install

package-install

Ubuntu 26.10 (ubuntu:26.10)

package-install

none

Debian testing (debian:forky)

package-install, e2e

e2e

Fedora 43 and 44 (registry.fedoraproject.org/fedora:43, registry.fedoraproject.org/fedora:44)

rpm, rpm-install (43 and 44), quadlet-check (44)

all of them

RHEL 10 family (quay.io/centos/centos:stream10)

rpm-install, quadlet-check

rpm-install

Arch Linux (archlinux:latest)

arch, arch-install, quadlet-check

none

CentOS Stream 10 stands in for the RHEL 10 family, which has no free image. A job marked as not blocking is continue-on-error: it runs and reports, and a red cross there is information, not a broken build.

The install jobs test the package file of their own run. After each build of main that is published, the verify-repos job of .github/workflows/docs.yml installs dzo. It installs it the way this page describes it. The sources are the published apt (debian:trixie), dnf (fedora:44) and pacman (archlinux:latest, not blocking) repositories over HTTPS, with the signatures enforced. It catches a broken signature, repository file or URL that the package tests cannot see. A failed Arch build does not hold back the publication of the documentation and the other repositories. The pacman repository that is already published is kept as it is until the next Arch build succeeds.

What CI cannot check

A container has no booted systemd and no DayZ. The jobs above prove that the package installs and starts and that podman’s generator accepts the units. They do not prove that a server runs. Specifically, and until the release checklist is done on a VM of the distribution:

  • SELinux on Fedora and the RHEL family is not verified in enforcing mode; see SELinux: not verified yet below.

  • The interactive Steam login through the steamcmd container wrapper has never been done with a real account. It is the one step that decides whether Fedora, the RHEL 10 family and Arch work in practice; see steamcmd on Fedora, RHEL and Arch.

  • Podman 6 (CentOS Stream 10, Arch) has only generated the quadlets. No server has started on it, and its jobs do not block.

  • Arch is container-tested only: no real host, no Steam login, no server.

  • There are no btrfs snapshot backups on the RHEL 10 family: its kernel has no btrfs. That is a property of the distribution, not a test gap; see No btrfs on the RHEL 10 family below.

Requirements

Every distribution needs x86_64 (DayZServer exists for x86_64 only). It also needs podman 5.4 and systemd 257 or newer from the distribution. It also needs a Steam account that owns DayZ, and about 3 GB of disk space per server build plus mods plus snapshots. What differs:

Distribution

Minimum release

Packages

steamcmd

Debian 13

13 (trixie)

apt

steamcmd:i386, which is non-free and exists for i386 only: the contrib and non-free components and the i386 architecture are needed (see Prepare apt).

Ubuntu

26.04 LTS; 24.04 LTS ships podman 4.9 and systemd 255 and is refused

apt

steamcmd:i386 from multiverse, plus the i386 architecture (see Ubuntu 26.04 LTS and later).

Fedora

43

dnf

none packaged: the localhost/dzo-steamcmd image that dzo setup builds (see steamcmd on Fedora, RHEL and Arch).

RHEL 10 family

RHEL 10, CentOS Stream 10, AlmaLinux 10 or Rocky Linux 10

dnf

as on Fedora.

Arch Linux

whatever the archive is today (rolling release)

pacman

as on Fedora.

The snapshot backups need a btrfs filesystem for paths.instances and paths.snapshots, both on the same btrfs filesystem. Debian, Ubuntu, Fedora and Arch do them when you format with btrfs (or, on Fedora, keep the default). The RHEL 10 family has no btrfs in its kernel and runs without them, see No btrfs on the RHEL 10 family. The download cache can live anywhere, but on btrfs copies are nearly free.

Linux kernel 6.12 or newer (Debian 13 ships 6.12; a trixie-backports kernel gives a newer btrfs).

Recommended, not required:

  • Mount the btrfs filesystem with user_subvol_rm_allowed. dzo can then delete old snapshots instantly. Without it, deletion still works but takes longer.

Prepare apt

dzo depends on steamcmd:i386. That package is non-free and only built for i386, so apt must know both before it can install dzo. As root, on Debian:

dpkg --add-architecture i386
sed -i /etc/apt/sources.list.d/debian.sources \
    -e 's/^Components: main$/Components: main contrib non-free/'   # or edit your sources by hand
apt update

On Ubuntu steamcmd is in multiverse instead of Debian’s contrib/non-free; see Ubuntu 26.04 LTS and later for the commands.

The steamcmd package asks you to accept Valve’s license when it is installed. For an unattended install, answer it beforehand:

echo steamcmd steam/question select "I AGREE" | debconf-set-selections
echo steamcmd steam/license note '' | debconf-set-selections

Add the apt repository

The package is published in a signed apt repository on GitHub Pages. It is built from main on Debian 13 (trixie), for Debian 13 and for Ubuntu 26.04 LTS and later, amd64. The repository is signed with a key of its own (dzo apt repository <bernd@bzed.de>, fingerprint 184C DDC4 96A9 C739 D10F  67B0 FE4E E034 4431 4050); apt only trusts that key for this one source.

install -d -m 0755 /etc/apt/keyrings
curl -fsSLo /etc/apt/keyrings/dzo-archive-keyring.asc \
    https://bzed.github.io/dayz-server-operator/apt/dzo-archive-keyring.asc
gpg --show-keys --with-fingerprint /etc/apt/keyrings/dzo-archive-keyring.asc  # compare the fingerprint
cat >/etc/apt/sources.list.d/dzo.sources <<'EOF'
Types: deb
URIs: https://bzed.github.io/dayz-server-operator/apt
Suites: stable
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/dzo-archive-keyring.asc
EOF
apt update
apt install dzo

stable is the suite to use. Today it names the same package as trixie, and it keeps its name if the repository ever moves to another codename. Suites: trixie still works and serves exactly the same package, so an existing installation needs no change.

apt upgrade then keeps dzo current. The repository holds the latest build of main only; its versions are snapshots of the form 0.1.0-1+git5.abc1234 (see The apt repository).

Ubuntu 26.04 LTS and later

The same package and this repository work on Ubuntu. 26.04 LTS is the minimum. Earlier releases ship podman and systemd versions older than the 5.4 and 257 that dzo requires, so apt refuses the package there. Later releases work and need no separate package; everything the web interface needs is compiled into dzo. Only the LTS is “Supported” in the Support levels above. CI installs the package on the interim releases without blocking. So an interim release can break it until somebody catches and fixes it.

Only the preparation differs: steamcmd is in Ubuntu’s multiverse component. The official sources enable it already (Components: main restricted universe multiverse); the sed below adds it where they do not. As root:

dpkg --add-architecture i386
sed -i /etc/apt/sources.list.d/ubuntu.sources \
    -e '/^Components:.*multiverse/! s/^Components: \(.*\)$/Components: \1 multiverse/'  # usually a no-op
apt update
echo steamcmd steam/question select "I AGREE" | debconf-set-selections
echo steamcmd steam/license note '' | debconf-set-selections

install -d -m 0755 /etc/apt/keyrings
curl -fsSLo /etc/apt/keyrings/dzo-archive-keyring.asc \
    https://bzed.github.io/dayz-server-operator/apt/dzo-archive-keyring.asc
gpg --show-keys --with-fingerprint /etc/apt/keyrings/dzo-archive-keyring.asc  # compare the fingerprint
cat >/etc/apt/sources.list.d/dzo.sources <<'EOF'
Types: deb
URIs: https://bzed.github.io/dayz-server-operator/apt
Suites: stable
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/dzo-archive-keyring.asc
EOF
apt update
apt install dzo

Everything else on this page applies unchanged, including the btrfs filesystem and dzo setup.

Install the package

dzo is shipped as a Debian package, dzo, from the repository above or as a .deb file from the CI artifacts. It also ships as an rpm for Fedora and the RHEL 10 family, and as a package for Arch Linux (see below). It pulls in podman, passt, git, uidmap, geoip-database and steamcmd:i386 (prepare apt as described above first). The web interface’s htmx, Leaflet, Fork Awesome and country flags are compiled in, so it needs no Debian package for them. The commands that download servers and mods run the steamcmd they find in the PATH, and /usr/libexec/dzo/steamcmd-container when there is none. That wrapper is steamcmd from the localhost/dzo-steamcmd image that dzo setup builds. --steamcmd picks another program (see below).

apt install ./dzo_<version>_amd64.deb

The package

  • creates the user dayz with the home directory /var/lib/dzo. It gets a free UID of 1000 or higher on purpose: journald keeps a journal of its own only for regular users, and dzo logs reads that one. (A system user, UID below 1000, cannot read the system journal, so dzo logs would show nothing. An existing dayz user is left as it is; see below.)

  • assigns subordinate uid/gid ranges to it (needed for rootless podman): the lowest free block of 65536 ids at or above 100000 that overlaps no range in /etc/subuid resp. /etc/subgid, so the package installs on a host where another rootless podman user already holds 100000-165535. The two files are chosen independently, and a range that dayz already has is kept as it is.

  • enables lingering, so the user’s services run without a login,

  • installs the Containerfiles of the two images in /usr/share/dzo/images/, the dzo-admin servermod with its compat.yaml in /usr/share/dzo/servermods/, and example map presets in /usr/share/dzo/presets/maps/ (copy the ones you want to integrations/maps/ in your site repository).

It does not start any game server.

On a development or test host without the package, see Setting up a host without the package for the user, the btrfs mount and the other steps by hand.

In a container

dzo also ships as a container image, ghcr.io/bzed/dzo. Use it on a host whose distribution is not among the supported ones, or that you want to run nothing but containers. The image is Debian 13 with systemd and the package in a container. The game servers run as containers of the host’s rootless podman. It needs host podman 5.4 or newer and systemd. The image, the host quadlet and the wrapper, the host requirements and the three checks dzo setup makes in that mode are on the In a container (the appliance) page.

Fedora 43+ and the RHEL 10 family

The same package is built as an rpm, x86_64. Its targets are Fedora 43 and later and the RHEL 10 family (RHEL 10, CentOS Stream 10, AlmaLinux 10, Rocky Linux 10). CI installs it on Fedora 43, Fedora 44 and CentOS Stream 10. It is published in a signed dnf repository next to the apt one. The packages and the repository metadata are signed with the same key as the apt repository (fingerprint 184C DDC4 96A9 C739 D10F  67B0 FE4E E034 4431 4050):

curl -fsSLo /etc/yum.repos.d/dzo.repo https://bzed.github.io/dayz-server-operator/rpm/dzo.repo
dnf install dzo

On Fedora, dnf5’s dnf config-manager addrepo --from-repofile=<url> writes the same file; the RHEL 10 family ships dnf4, where the curl line is the way.

dnf asks once to confirm the key’s fingerprint (or import it with rpm --import https://bzed.github.io/dayz-server-operator/rpm/dzo-repo-keyring.asc). It then verifies both the package signatures (gpgcheck) and the repository metadata (repo_gpgcheck). The repository holds the latest build of main only, with the same snapshot versions as the Debian package. The rpm release is the Debian revision, so 0.8.2-1 is older than 0.8.2-1+git43.abc1234 and that is older than 0.8.2-2 (see The apt repository).

The rpm carries the same files as the .deb and creates the same dayz account. The account is a regular user with a UID of 1000 or higher. rpm’s own sysusers.d handling would allocate a system UID below 1000, so the package creates the account itself. The account also gets its subordinate uid/gid range and lingering. As on Debian it pulls in podman, systemd, git, patch, shadow-utils and passt. btrfs-progs and geoipupdate are recommended (Fedora packages geoipupdate; the RHEL 10 family can have no build of it, and then dnf skips the recommendation).

There is no steamcmd package on Fedora or the RHEL family; dzo runs steamcmd from the localhost/dzo-steamcmd image. See steamcmd on Fedora, RHEL and Arch below.

SELinux: not verified yet

Fedora and the RHEL family enforce SELinux by default, and dzo has not been verified on an enforcing host yet. The game server containers bind-mount the build, the mods, the profiles and the dzo binary. The steamcmd wrapper mounts the download cache and its Steam home without a :z relabelling. So a container or the wrapper can hit an AVC denial. If something fails with a permission error that root does not have, check the audit log:

ausearch -m avc -ts recent
journalctl -t setroubleshoot

Setting SELinux to permissive (setenforce 0) only confirms that SELinux is the cause; it is not a fix. Please report the denials together with the output of dzo status and of systemctl --user cat <instance> (as dayz).

No btrfs on the RHEL 10 family

The RHEL 10 kernel has no btrfs, so paths.instances and paths.snapshots cannot be on one there. dzo runs, but the btrfs snapshot backups are not available and dzo setup warns about it. Use the distribution’s backup for the data directory, or back up the instance and site directories another way. Fedora’s default filesystem is btrfs, so the backups work there.

Arch Linux (best effort)

Arch is a rolling release, so its package is best effort. CI builds it and installs it in archlinux:latest on every run. Both jobs (arch builds the package, arch-install installs it) are continue-on-error. They show what the current archive, podman 6 and the next systemd release change, without failing the build for it. The package is published in a signed pacman repository next to the apt and dnf ones. The packages and the repository database are signed with the same key (fingerprint 184C DDC4 96A9 C739 D10F  67B0 FE4E E034 4431 4050):

curl -fsSLo /etc/pacman.d/dzo.conf https://bzed.github.io/dayz-server-operator/arch/dzo.conf
printf '\nInclude = /etc/pacman.d/dzo.conf\n' >>/etc/pacman.conf
curl -fsSLo /tmp/dzo-repo-keyring.asc https://bzed.github.io/dayz-server-operator/arch/dzo-repo-keyring.asc
pacman-key --add /tmp/dzo-repo-keyring.asc
pacman-key --finger 184CDDC496A9C739D10F67B0FE4EE03444314050  # compare the fingerprint
pacman-key --lsign-key 184CDDC496A9C739D10F67B0FE4EE03444314050
pacman -Syu dzo

pacman-key --add imports the key, and pacman-key --lsign-key marks it as trusted on this host. Pacman verifies the repository database (dzo.db.sig) and every package (<package>.pkg.tar.zst.sig) against the keys that are signed locally, and the repository’s SigLevel requires both. The local master key that --lsign-key needed was created when Arch was installed (pacman-key --init). The trust itself is local to the host. A key rotation means fetching the new keyring file and signing the new key the same way. The arch directory holds dzo.conf and dzo-repo-keyring.asc as they are served; pacman.conf reads the Include from the first command.

The repository holds the latest build of main only, with the same snapshot versions as the Debian package. Arch versions are <pkgver>-<pkgrel>: the upstream version from the top debian/changelog entry, then the Debian revision. A build of main adds the number of commits since the last release tag to pkgrel. 0.8.2-1 is a release, a build 43 commits later is 0.8.2-1.43. vercmp orders 0.8.2-1 < 0.8.2-1.43 < 0.8.2-1.44 < 0.8.2-2 < 0.8.3-1, exactly like dpkg and dnf order theirs (see The apt repository). So pacman -Syu picks up every snapshot that apt upgrade would. The commit is not part of the version (a pkgrel holds integers only); dzo version prints it.

The package carries the same files as the .deb and creates the same dayz account. The account is a regular user with a UID of 1000 or higher (from the packaged sysusers.d file; 59999 on a fresh Arch host). It also gets its subordinate uid/gid range and lingering. It pulls in podman, systemd, git, patch, shadow and passt; btrfs-progs and geoipupdate are optional. The snapshot backups need btrfs for paths.instances and paths.snapshots, so format with btrfs (the installer offers it) and not ext4.

Arch packages no steamcmd; dzo runs steamcmd from the localhost/dzo-steamcmd image. See steamcmd on Fedora, RHEL and Arch below.

steamcmd on Fedora, RHEL and Arch

These distributions package no steamcmd (Debian’s non-free steamcmd:i386 is the only non-free package dzo needs). dzo runs steamcmd from the localhost/dzo-steamcmd image instead, which dzo setup builds from the packaged Containerfile. When PATH holds no steamcmd, the default is /usr/libexec/dzo/steamcmd-container. That wrapper serves dzo mod add | update | refresh, dzo product install | update and dzo steam login --command. It runs

podman run --rm -i [-t] --network host --userns keep-id \
    -v <paths.secrets>/steamcmd-home:/home/steam \
    -v <paths.cache>:<paths.cache> \
    -e HOME=/home/steam localhost/dzo-steamcmd:latest steamcmd <arguments>

with -t only when its stdin is a terminal. That is so for dzo steam login (that command attaches a pty for the password and Steam Guard prompts). It is not a terminal for a download job. The container’s home is <paths.secrets>/steamcmd-home, created with mode 0700: steamcmd updates itself there and the Steam session lives there, so both persist between runs. paths.cache is mounted at its own path because dzo hands steamcmd its working directories below it (+force_install_dir, product updates and workshop items). Without the image the wrapper exits with dzo-steamcmd image missing: run dzo setup.

The wrapper asks dzo for both paths with dzo config get paths.secrets and dzo config get paths.cache (see Command reference), so it follows a paths configuration that is not the default. DZO and DZO_CONFIG override the dzo binary and the config file it reads; they are meant for tests.

Choose the data locations

All paths are configured in /etc/dzo/config.yaml. The defaults put everything under /var/lib/dzo. To use another location, for example /srv/dayz:

paths:
  data: /srv/dayz
  instances: ${data}/instances    # must be btrfs
  snapshots: ${data}/snapshots    # same btrfs filesystem as instances
  logs: ${data}/logs              # archive of rotated profile logs
  cache: ${data}/cache
  secrets: ${data}/secrets
  db: ${data}/db
  site: ${data}/site              # checkout of the site repository

Run the setup

Run the setup as the service user (it refuses to run as root). Every dzo command does: except the container’s health probes, version, help and the package’s build steps, dzo exits when run as root. What root creates is owned by root, and the game servers run as the service user and silently skip a mod directory they cannot read. dzo instance render fails, so the server does not start, when the service user cannot read an installed mod or one of its files. It also fails when the mod holds nothing to load (an empty folder from Steam, or an empty or missing .pbo). The setup

  • checks that podman is version 5.4 or newer (a newer major version, podman 6 included, is fine) and reports ok podman <version>,

  • creates the directories under paths (the secrets directory is private) and checks that they are writable. It also checks that instances and snapshots are on the same filesystem. It warns if instances is not on btrfs or the free space is low,

  • builds the two container images, localhost/dzo-runtime for the game servers and localhost/dzo-steamcmd, unless they exist already,

  • in remote mode (podman.mode: remote, the container appliance), also checks the host’s podman, which runs the containers and their health checks. That podman is version 5.4 or newer, it uses systemd cgroups, and paths.data is mounted there at the same path. Setup writes a random file below it and reads it back in the runtime image. A dry run still runs the two read-only checks and skips that container with an info line,

  • tells you if the Steam login is still to be done,

  • clones the site repository from site.remote, and

  • enables a weekly timer, dzo-image-refresh.timer, that rebuilds the images to pick up security updates and removes the old ones.

sudo -iu dayz dzo setup --dry-run   # show what would be done
sudo -iu dayz dzo setup

Every step reports ok, todo (what a dry run would do), warn or error. Running it again changes nothing that is already in place, so run it after an upgrade too. dzo setup --images-only rebuilds the images right now (that is what the timer runs).

Journal access of an existing dayz user

If dayz already exists as a system user (UID below 1000), dzo logs and journalctl --user show nothing, and dzo setup warns about it. There are two ways out:

  • add the user to the systemd-journal group, as root: usermod -aG systemd-journal dayz, and start a new session (loginctl terminate-user dayz and log in again). This is the small change, but dayz can then read the whole system journal;

  • or recreate the account with a UID of 1000 or higher. Stop the instances first, give dayz the new UID (usermod -u <new uid> dayz), and change the owner of /var/lib/dzo to it (chown -R). On a new host, the package already creates it that way.

Upgrading

apt install ./dzo_<version>.deb (or apt upgrade; dnf upgrade dzo on Fedora and the RHEL family, pacman -Syu on Arch) replaces /usr/bin/dzo by renaming. Running processes keep the old build until they restart. The package then runs dzo units sync as dayz (it rewrites the generated units for the new version). It also restarts the services that run from the binary: the exporter, dzo serve and dzo web, when they are active. A game server is never restarted by an upgrade. It keeps running on the old build (the binary is mounted into its container). It uses the new units and the new binary at its next restart. The next restart is the next scheduled restart, or dzo restart <name>. Settings that did not exist before get their defaults, so no config edit is needed. Check dzo version and dzo status afterwards.

Log in to Steam

Downloads need a Steam login. It is interactive. You type the password and confirm Steam Guard (a code by e-mail or from the mobile app, or a confirmation in the app).

sudo -iu dayz dzo steam login --user <steam account>
sudo -iu dayz dzo steam status

dzo keeps the Steam session, not the password. When Steam ends the session (password change, new device check, long inactivity), downloads pause and dzo notifies you. Log in again with the same command. See Mods, updates and server upgrades.

Next steps

Continue with Quick start: the first server.