feat: add Valheim dedicated server - #2192
Closed
jasaspi wants to merge 1 commit into
Closed
Conversation
Installs SteamCMD and Valheim Dedicated Server (App ID 896660) on Debian 13, runs it as an unprivileged steam user under systemd with graceful world saves on shutdown, and provides an update flow with world backup and rollback. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Try this scriptCOMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/jasaspi/ProxmoxVED/feat/valheim \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/jasaspi/ProxmoxVED/feat/valheim/ct/valheim.sh)"
Against a core branch as wellAdd Useful flags while testing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✍️ Description
Adds a Community Scripts LXC installer for the Valheim Dedicated Server. It installs SteamCMD and App ID 896660 on Debian 13 in an unprivileged container, runs the server as a dedicated
steamuser under systemd (KillSignal=SIGINT+TimeoutStopSec=120so the world saves gracefully on shutdown), stores settings in/opt/valheim/valheim.env(chmod 600), keeps world saves in/opt/valheim/data, and provides an update flow that backs up worlds beforeapp_updateand restores them on failure.Server name, world name, password, and crossplay can be supplied via
var_*variables for unattended installs, or are prompted interactively (empty password generates a random one; Valheim requires ≥5 characters).This is a vanilla dedicated server only — no admin panel or third-party components, unlike the earlier #2103.
🔗 Related PR / Issue
Link: #2103 (earlier Valheim submission, closed — it bundled a custom low-star admin panel; this PR ships only the vanilla Iron Gate server via SteamCMD, following the precedent of Satisfactory #1970)
✅ Prerequisites (X in brackets)
🏗️ arm64 Support (X in brackets)
var_arm64=no).🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)fetch_and_deploy_from_url; the server itself is installed and updated through SteamCMDapp_update.🤖 AI Assistance (X in brackets)
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, and the output has been reviewed and corrected to match those guidelines. Model: Claude Fable 5 (Claude Code), high reasoning effort; reviewed and tested by the author.📋 Additional Information (optional)
app_update 896660 validate→ restore, with rollback on failure) follows the same structure as Satisfactory's and has been statically validated.app_updateafter a fresh install can fail transiently with "Missing configuration"; the install retries up to 3 times.SteamAppId=892970(the game's App ID) in the service environment — the server binary refuses to start without it.-public 0is set (join by IP, no server list); can be promoted to an app_var if requested.sourcelines (same as existing upstream scripts).📦 Application Requirements (for new scripts)
🌐 Source
SteamAppId=892970(game)🤖 Generated with Claude Code