Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

Before you start

You need a recent Linux VPS with a sudo user: Ubuntu 22.04 or 24.04, or Debian 12 or 13. The official Valheim guide requires at least GLIBC 2.29 and GLIBCXX 3.4.26: these systems provide them (check with ldd --version).

  • Processor: like most games, Valheim runs most of the game logic on a single core. A fast core matters more than the number of cores.
  • Memory: the official guide gives no minimum specification for the server. Its usage grows with the explored area of the world, the number of buildings, the number of players and mods; keep an eye on it with free -h during the first weeks.
  • Container or virtual machine: the Valheim server needs no kernel module. It runs fine in a container VPS (LXC) as well as in a virtual machine (KVM).

Do the basic security settings first (SSH key, firewall, automatic 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

On Ubuntu, SteamCMD is in the multiverse repository:

sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y steamcmd libatomic1 libpulse0 libpulse-dev

On Debian 12 or 13, it is in the non-free section. The apt-add-repository command can no longer add it since Debian 12: declare it in a separate file.

echo "deb http://deb.debian.org/debian $(. /etc/os-release && echo $VERSION_CODENAME) non-free" | sudo tee /etc/apt/sources.list.d/non-free.list
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y steamcmd libatomic1 libpulse0 libpulse-dev

Accept the Steam licence when the installer asks. The libatomic1, libpulse0 and libpulse-dev packages are the ones the official Valheim documentation requires on Linux. Then create a dedicated user and download the server:

sudo useradd -r -m -d /opt/valheim -s /bin/bash valheim
sudo -iu valheim
/usr/games/steamcmd +force_install_dir /opt/valheim/serveur +login anonymous +app_update 896660 validate +quit

896660 is the Steam ID of the "Valheim Dedicated Server" tool. The download is anonymous: no Steam account or copy of the game is needed on the VPS.

03

Configure: name, password, world and admins

The server folder contains a start_server.sh script, but Steam replaces it on every update. Work on a copy:

cd /opt/valheim/serveur
cp start_server.sh start_valheim.sh
nano start_valheim.sh

Keep the script's export lines and replace the line that starts valheim_server.x86_64 with your own, for example:

./valheim_server.x86_64 -name "Viking FR" -port 2456 -world "Midgard" -password "corbeau-du-nord" -public 1 -savedir "/opt/valheim/donnees" -saveinterval 1800 -backups 4
  • -name: the name shown in the server list.
  • -world: the world name. If it does not exist, it is created on first launch.
  • -password: at least 5 characters, and it must not appear in the server name. This is the most common reason a server refuses to start.
  • -public: 1 shows the server in the list, 0 hides it (players then connect by IP address).
  • -savedir: the folder for worlds and player lists. Without it, it is ~/.config/unity3d/IronGate/Valheim.
  • -saveinterval and -backups: a save every 1800 seconds and 4 automatic copies kept, the default values.
  • -crossplay: add it to welcome players from other platforms (Xbox, PC Game Pass). The server then goes through Microsoft's PlayFab service, with no ports to open.
  • -preset, -modifier and -setkey: the world difficulty (for example -preset Hard), set without any mod.

Importing an existing world. A Valheim world is two files, .db and .fwl. On a Windows PC, they are in %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\worlds_local. Stop the server, copy both files into /opt/valheim/donnees/worlds_local, give them to the valheim user (sudo chown valheim: …) and start the server with -world set to the file name, without the extension.

Admins. The adminlist.txt, bannedlist.txt and permittedlist.txt files are in the save folder, with one player ID per line, in the Platform_ID format (for example Steam_ followed by the digits of the SteamID64). A player's ID shows up in the server log when they connect, or in the in-game F2 panel. Careful: as soon as a name is listed in permittedlist.txt, everyone else is refused.

04

systemd service, ports and firewall

Leave the valheim user's session (exit). So that the server starts with the VPS and restarts after a crash, create /etc/systemd/system/valheim.service:

[Unit]
Description=Serveur Valheim
After=network-online.target
Wants=network-online.target

[Service]
User=valheim
WorkingDirectory=/opt/valheim/serveur
ExecStart=/opt/valheim/serveur/start_valheim.sh
KillSignal=SIGINT
TimeoutStopSec=60
Restart=on-failure
RestartSec=15

[Install]
WantedBy=multi-user.target
sudo chmod +x /opt/valheim/serveur/start_valheim.sh
sudo systemctl daemon-reload
sudo systemctl enable --now valheim
journalctl -u valheim -f

KillSignal=SIGINT stops the server like Ctrl+C: it saves the world before shutting down.

Ports. The server uses the port given with -port and the next one, so 2456 and 2457 over UDP by default:

sudo ufw allow 2456:2457/udp

Players connect from the game (Join game, then Add server) with the VPS address followed by :2456. For several Valheim servers on the same machine, step by two (2456, 2458, 2460…): the guide game server ports explains the logic, and hosting several game servers covers sharing resources.

05

Mods: BepInEx and Valheim Plus

Almost all Valheim mods go through BepInEx, in the version adapted to the game: the BepInExPack_Valheim package by denikson, published on Thunderstore. Do not use the original, unadapted BepInEx.

  1. Stop the server: sudo systemctl stop valheim.
  2. Download the package archive from Thunderstore, send it to the VPS's /tmp folder (with scp) and extract it outside the server folder.
  3. Copy the contents of the BepInExPack_Valheim folder into the server folder, then make the script executable:
sudo apt install -y unzip
sudo -iu valheim
unzip /tmp/denikson-BepInExPack_Valheim-*.zip -d /opt/valheim/bepinex-pack
cp -r /opt/valheim/bepinex-pack/BepInExPack_Valheim/* /opt/valheim/serveur/
chmod u+x /opt/valheim/serveur/start_server_bepinex.sh
exit

In start_server_bepinex.sh, carry over your settings (name, world, password, -savedir) to the line that starts the server, then point the service's ExecStart to this script. On startup, the log should show BepInEx messages. Mods then go, as .dll files, into BepInEx/plugins.

Valheim Plus (gathering, building, inventory settings…) installs the same way. The original project is no longer maintained; a community-maintained continuation replaces it. Its settings file is created in BepInEx/config on first start, and each section is enabled separately.

  • Most mods must be installed at the same version on the server and for every player; some are server-side only. Read each mod's page.
  • Console players cannot install mods: a server that requires one shuts them out.
  • After a Valheim update, a mod may stop working until it gets its own update.
06

Backups and updates

The server already keeps a few automatic copies of the world (-backups), but they sit on the same disk. Also copy the data folder elsewhere, every day and before every update:

sudo -u valheim tar czf /opt/valheim/valheim-$(date +%F).tar.gz -C /opt/valheim donnees

Then move the archive off the VPS (scp, rsync or external storage). To update the server when a new game version comes out (up-to-date players cannot join an outdated server):

sudo systemctl stop valheim
sudo -iu valheim /usr/games/steamcmd +force_install_dir /opt/valheim/serveur +login anonymous +app_update 896660 validate +quit
sudo systemctl start valheim

Your start_valheim.sh is not touched by the update, unlike start_server.sh. With mods, check they have caught up with the new version before reopening the server.

07

On a CloudFive VPS, and when it is not the right choice

CloudFive has no ready-made Valheim plan: our game plans cover other titles (the list is on the plans page). For Valheim, 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 Valheim;
  • the Intel VPS, on a Xeon E5-2687W v4 with DDR4 ECC memory, suits a small group of friends;
  • both are Linux containers (LXC) with root access, a dedicated IPv4 address, a 1 Gb/s port and basic DDoS protection included; the game-specific filter is a paid option, Premium Protection (see protecting a game server from DDoS);
  • snapshots in the customer area complement your backups before a big update or adding mods.

Servers are in France, billed 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 and the server up to date, and we do not offer ready-made Valheim hosting;
  • you prefer to run the server on Windows, over remote desktop: Valheim also ships a Windows server, which installs on the Windows VPS;
  • you plan a large community with many mods, or several heavy servers: a dedicated server gives more headroom;
  • your players are far from France: the latency shows in every fight.
08

Frequently asked questions

Can I get a Valheim 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 Valheim 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 Valheim dedicated server on Linux?

Install SteamCMD, download the server anonymously with ID 896660, copy start_server.sh to your own script, set the name, world and password, open ports 2456 and 2457 over UDP, then run the server with a systemd service.

Which port should I open for a Valheim server?

The port set with -port and the next one, so 2456 and 2457 over UDP by default. With the -crossplay option, the server goes through Microsoft's PlayFab service, with no ports to open.

Why won't my Valheim server start with a password?

The password must be at least 5 characters long and must not appear in the server name. Fix one or the other in the launch script, then restart the server.

How do I move my Valheim world to a dedicated server?

Copy the world's .db and .fwl files, found on Windows in AppData\LocalLow\IronGate\Valheim\worlds_local, to the server's worlds_local folder, then start the server with -world set to the file name, without the extension.

How do I install mods on a Valheim server?

Install BepInExPack_Valheim in the server folder, start it with start_server_bepinex.sh, then put the mods in BepInEx/plugins. Most mods, Valheim Plus included, must also be installed by every player, at the same version.

Does CloudFive offer ready-made Valheim hosting?

No. CloudFive has no ready-to-use Valheim plan: the server installs on a Linux VPS, ideally the Ryzen 9 9950X VPS in France, with root access, a dedicated IPv4 and basic DDoS protection included.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay