01
Before you start
Bohemia Interactive provides the DayZ server in two versions: a Windows program (DayZServer_x64.exe) and a native Linux program (DayZServer). Both are downloaded with SteamCMD.
- System: a recent 64-bit Linux VPS with a
sudo user (Debian 12, Ubuntu 22.04 or 24.04), or a Windows Server VPS.
- Steam account: the DayZ server (ID 223350) refuses SteamCMD's anonymous login. Use an account that owns DayZ (yours or one set aside for the server): it is required to download Workshop mods. Also have the Steam Guard code ready for the first login.
- Processor: the server's main loop depends mostly on the speed of one core. The
dayzsettings.xml file and the -cpuCount option then let some tasks spread across several cores.
- Memory: the official wiki gives no precise minimum for the server. Plan for several gigabytes for an unmodded map, much more with many players, built bases and mods. The
logMemory setting in serverDZ.cfg writes usage to the logs: keep an eye on it during the first weeks.
- Container or virtual machine: the Linux server needs no kernel module. It runs in a container VPS (LXC) as well as in a virtual machine (KVM).
Do the basic security settings first (SSH key, firewall, updates): the guide securing a Linux VPS gives the order to follow. To compare VPS plans suited to games, see which VPS for a game server.
02
Install SteamCMD and the server
Bohemia advises against running the server as root: create a dedicated user. Install the 32-bit library SteamCMD needs, then SteamCMD itself, as the official DayZ wiki describes:
sudo apt update
sudo apt install -y lib32gcc-s1 curl
sudo useradd -m -s /bin/bash dayz
sudo -iu dayz
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
Then download the server, replacing votre_compte with your Steam login name:
~/steamcmd/steamcmd.sh +force_install_dir /home/dayz/serveur +login votre_compte +app_update 223350 validate +quit
SteamCMD asks for the password, then the Steam Guard code. After this first login it remembers the session: later updates only need +login votre_compte, with no password written in a script. The experimental branch of the server has the ID 1042420.
On Windows, in PowerShell on the VPS:
New-Item -ItemType Directory -Force C:\steamcmd
Invoke-WebRequest https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip -OutFile C:\steamcmd\steamcmd.zip
Expand-Archive C:\steamcmd\steamcmd.zip C:\steamcmd
C:\steamcmd\steamcmd.exe +force_install_dir C:\DayZServer +login votre_compte +app_update 223350 validate +quit
Getting started with the VPS's Remote Desktop is covered in the guide connecting to a Windows VPS.
03
Configure serverDZ.cfg
The server folder already contains a serverDZ.cfg. Its name does not matter: the -config option points to it at launch. Open it (nano /home/dayz/serveur/serverDZ.cfg) and change at least these lines:
hostname = "Mon serveur DayZ FR";
password = "";
passwordAdmin = "un-long-mot-de-passe-admin";
maxPlayers = 40;
instanceId = 1;
steamQueryPort = 27016;
serverTimePersistent = 1;
logMemory = 300;
hostname: the name shown in the server list.
password: leave it empty for a public server, or set a password for a private one.
passwordAdmin: in game, type #login followed by this password in the chat to become an administrator.
maxPlayers: 60 in the original file; lower it according to the VPS's memory and processor.
instanceId: the instance number, which also names the persistence folder (storage_1).
steamQueryPort: the Steam query port, the one that makes the server appear in the in-game browser. 27016 is the usual value, the official wiki uses 2305 as its example: open in the firewall whichever value you write here.
serverTimePersistent: keeps the in-game time from one restart to the next.
logMemory: the interval, in seconds, between two memory readings in the logs; it needs the -dologs option, already in the service below.
The map is chosen in the class Missions block, on the line template = "dayzOffline.chernarusplus";: the value matches the name of a folder in mpmissions. Loot, item and zombie settings are made in the XML files of that mission folder (for example db/types.xml). The ban.txt and priority.txt files (priority players in the login queue, Steam IDs separated by semicolons) go in the server's root folder.
To administer remotely over RCon, set the password (RConPassword) in BattlEye's BEServer_x64.cfg file, located in the folder given by -BEpath (here battleye).
04
Run the server, ports and firewall
Leave the dayz user's session (exit). To make the server start with the VPS and restart after a crash, create /etc/systemd/system/dayz-server.service, based on the official wiki's template:
[Unit]
Description=Serveur DayZ
Wants=network-online.target
After=network-online.target
[Service]
User=dayz
WorkingDirectory=/home/dayz/serveur
ExecStart=/home/dayz/serveur/DayZServer -config=serverDZ.cfg -port=2302 -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
LimitNOFILE=100000
ExecStop=/bin/kill -s INT $MAINPID
TimeoutStopSec=90
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now dayz-server
sudo systemctl status dayz-server
Stopping with the INT signal (the equivalent of Ctrl+C) is what the official template uses. For scheduled restarts, the wiki recommends the server's clean shutdown: a message with <shutdown>1</shutdown> and a countdown (<deadline>, in minutes) in the mission's db/messages.xml file. In that case, replace Restart=on-failure with Restart=always so the server comes back on its own. Logs (.RPT, .ADM) are written to the profiles folder.
If the service stops right away, read its log and look for a missing library:
sudo journalctl -u dayz-server -n 50
ldd /home/dayz/serveur/DayZServer | grep "not found"
Ports. All of them are UDP:
- 2302: the game port, set with
-port;
- 27016: the Steam query port, or the value of
steamQueryPort;
- 2303 to 2305: the ports after the game port, which most administrators also open for the server's auxiliary services.
sudo ufw allow 2302:2305/udp
sudo ufw allow 27016/udp
On Windows, run DayZServer_x64.exe with the same options from a .bat file, and open the ports in PowerShell as administrator:
New-NetFirewallRule -DisplayName "DayZ" -Direction Inbound -Protocol UDP -LocalPort "2302-2305","27016" -Action Allow
For several DayZ servers on the same machine, change the game port, the query port and instanceId for each one: the guide game server ports explains the logic.
05
Add Workshop mods
Mods are downloaded with SteamCMD under the game's ID, 221100, followed by the mod's number (the number at the end of its Workshop page address). The official wiki's example installs Community Framework and Community Online Tools:
sudo systemctl stop dayz-server
sudo -iu dayz
~/steamcmd/steamcmd.sh +force_install_dir /home/dayz/serveur +login votre_compte +app_update 223350 +workshop_download_item 221100 1559212036 +workshop_download_item 221100 1564026768 +quit
cd /home/dayz/serveur
ln -s /home/dayz/serveur/steamapps/workshop/content/221100/1559212036 /home/dayz/serveur/1559212036
ln -s /home/dayz/serveur/steamapps/workshop/content/221100/1564026768 /home/dayz/serveur/1564026768
ln -s /home/dayz/serveur/steamapps/workshop/content/221100/1559212036/keys/* /home/dayz/serveur/keys/
exit
Then add the folders to the service's ExecStart line, in quotes and separated by semicolons, then reload systemd and restart the server:
ExecStart=/home/dayz/serveur/DayZServer -config=serverDZ.cfg -port=2302 "-mod=1559212036;1564026768;" -BEpath=battleye -profiles=profiles -dologs -adminlog -netlog -freezecheck
sudo systemctl daemon-reload
sudo systemctl start dayz-server
- Keys: each mod ships a
.bikey file (in its keys or Keys subfolder: on Linux, case matters) to put in the server's keys folder. Without it, with verifySignatures = 2, players who have the mod are rejected.
- Order: a mod that depends on another (such as Community Online Tools with Community Framework) goes after it in
-mod.
- Server-side mods: those players do not need to download go through
-serverMod.
- Mission files: some mods require adding items to
types.xml or lines to the mission. Read each mod's page.
- On Linux: a mod built and tested only on Windows may load badly. Test each mod on its own before opening the server.
06
Backups and updates
The persistent world (bases, tents, vehicles, characters) is saved in the mission's storage_1 folder, for example mpmissions/dayzOffline.chernarusplus/storage_1. Back it up with the configuration, with the server stopped:
sudo systemctl stop dayz-server
sudo -u dayz tar czf /home/dayz/dayz-$(date +%F).tar.gz -C /home/dayz/serveur mpmissions serverDZ.cfg ban.txt priority.txt
sudo systemctl start dayz-server
Remove from the command any files you have not created, then copy the archive off the VPS (scp, rsync or external storage).
Updates. With forceSameBuild = 1, a player whose game is newer than the server cannot connect: update the server as soon as a version comes out. The command is the same as for the installation:
sudo systemctl stop dayz-server
sudo -iu dayz /home/dayz/steamcmd/steamcmd.sh +force_install_dir /home/dayz/serveur +login votre_compte +app_update 223350 validate +quit
sudo systemctl start dayz-server
With mods, add their +workshop_download_item lines and copy their new keys into keys. The official wiki also suggests putting this script in the service's ExecStartPre, to update the server on every restart.
07
On a CloudFive VPS, and when it is not the right choice
CloudFive has no ready-made DayZ plan: our game plans cover other titles (the list is on the plans page). For DayZ, the method in this guide on a VPS is the way to go:
- the Ryzen VPS, on a Ryzen 9 9950X with DDR5 memory and NVMe storage, gives the fastest core, the one that matters for the server loop;
- the Windows VPS, a KVM virtual machine with Windows Server, licence included, on the same processor, if you prefer to manage the server over Remote Desktop;
- the Intel VPS, on a Xeon E5-2687W v4 with DDR4 ECC memory, suits a small server among friends;
- every VPS comes with root or administrator access, a dedicated IPv4 address, a 1 Gb/s port and basic anti-DDoS protection included; the game-specific filter is part of Premium Protection, a paid option (see protecting a game server from DDoS).
The servers are in France, monthly with no commitment, and support answers in French by ticket, on Discord and by phone, 7 days a week. Prices are on the pricing page.
It is not the right choice if:
- you do not want to administer anything: a VPS means keeping the system, the server and the mods up to date, and we do not offer ready-to-use DayZ hosting;
- you are aiming for a large community with a long list of mods, or several DayZ servers: a dedicated server gives more memory and headroom (see hosting several game servers);
- your players are far from France: latency is felt in every firefight.
08
Frequently asked questions
Can I get a DayZ server without installing anything?
With CloudFive's Pterobox, you create your game servers from the customer area without installing anything, on a Ryzen 9 9950X with Anti-DDoS Premium included (cloudfive.fr/en/pterobox). If DayZ is not in the catalogue yet, request it from the customer area. A VPS remains the most flexible option if you want to configure everything yourself.
How do I create a DayZ dedicated server on Linux?
Install SteamCMD, log in with a Steam account (anonymous login is refused), download the server with ID 223350, set up serverDZ.cfg, open UDP ports 2302 to 2305 and 27016, then run DayZServer with -config=serverDZ.cfg in a systemd service.
Do I need a Steam account to install a DayZ server?
Yes. SteamCMD refuses anonymous downloads of the DayZ server (223350): log in with a Steam account that owns DayZ, which Workshop mods require, and enter the Steam Guard code on the first login.
Which ports should I open for a DayZ server?
The game port, 2302 UDP by default, the Steam query port, 27016 UDP by default or the value of steamQueryPort, and in practice ports 2303 to 2305 UDP. Without the query port, the server does not show up in the in-game list.
How much RAM does a DayZ server need?
Bohemia's official wiki gives no precise minimum. Plan for several gigabytes for an unmodded map and much more with many players, bases and mods; enable logMemory in serverDZ.cfg to track real usage.
How do I install mods on a DayZ server?
Download them with SteamCMD (+workshop_download_item 221100 followed by the mod's number), copy their .bikey file into the keys folder, then add their folders to the -mod option, separated by semicolons. Players need the same mods.
Does CloudFive offer ready-made DayZ hosting?
No. CloudFive has no ready-to-use DayZ plan: the server is installed on a VPS, preferably the Ryzen 9 9950X VPS on Linux or the Windows VPS, in France, with a dedicated IPv4 and basic anti-DDoS included.