Game servers besides Minecraft
How to host a CS2, Rust, Terraria, Valheim, or Palworld server on a VPS: tier requirements, installation via SteamCMD, ports, and common issues.
Updated August 23, 2026
Most game servers are installed from SteamCMD and run as a regular Linux service. Full root access on a VDS lets you run anything — the only limits are memory, the number of cores, and the fact that many games use a single core for their main loop.
What limits what
| Game | Memory | Note |
|---|---|---|
| Terraria, Factorio | 1–2 GB | VDS-1 is enough |
| Valheim | 4–6 GB | Grows with world size, VDS-2 or VDS-3 |
| CS2 | 2–4 GB | Core clock speed matters, not the number of cores |
| Rust | 12–16 GB | VDS-4 and above, the disk fills up quickly with the map |
| Palworld | 8–16 GB | Noticeable memory leak, needs regular restarts |
The Ryzen 9 7950X delivers high clock speeds, so on the lower tiers memory, not the CPU, is usually the limiting factor.
Installing via SteamCMD
dpkg --add-architecture i386 && apt update
apt install -y steamcmd lib32gcc-s1
useradd -m -d /srv/game -s /bin/bash game
sudo -u game /usr/games/steamcmd \
+force_install_dir /srv/game/server \
+login anonymous \
+app_update 896660 validate \
+quit
Each game has its own app ID. Updating the server uses the same command: it downloads the changed files.
Service and ports
[Service]
User=game
WorkingDirectory=/srv/game/server
ExecStart=/srv/game/server/start.sh
Restart=on-failure
RestartSec=20
[Install]
WantedBy=multi-user.target
Game servers usually listen on UDP, not TCP — this is a common cause of “the server is running but not visible”:
ufw allow 2456:2458/udp
ss -ulpn | grep 2456
Get the public IPv4 address on the “Overview” tab of the /hosting/vds/m/<id> panel. There is no second address and no IPv6, so separate two servers of the same game by different ports, not by addresses.
Automatic restarts and backups
For games with memory leaks, set up a nightly restart:
0 6 * * * systemctl restart valheim
Copy saves on a schedule and move them off the machine — there are no automatic backups or snapshots:
tar czf /srv/backups/world-$(date +%F).tar.gz /srv/game/server/saves
rsync -az /srv/backups/ backup@other-host:/store/
The general approach is described in database backups — it is the same for save files.
Common mistakes
| Symptom | Cause |
|---|---|
| Server not visible in the list | UDP port is closed or the query port is not open |
| Crash after a few hours | Memory leak, no MemoryMax and no nightly restart |
steamcmd: not found | The package is installed from the multiverse or non-free section |
| Lag when the server is full | The single-threaded loop has maxed out a core — only a higher clock speed helps |
| Out of space | Logs and old saves; keep an eye on the disk usage ring in “Overview” |
Running a game server as root is a bad idea: engines regularly get vulnerabilities in packet parsing. A separate system user for each game is a must.