This guide will help you setting up a dedicated server or you can click the link below to order your own game server!

Single installation script for setting up Valheim on a dedicated Linux server with steamcmd.

  • Tested on: AWS, Azure and DigitalOcean
  • OS – Ubuntu 18.06 LTS 64bit and Ubuntu 20.04 LTS
  • Recommended server settings: CPU: 4 (2 will work but meh) RAM: 8GB+ Harddrive: 250GB+

Install Walkthrough

Never run any script on a production server, unless you know what you are doing.


Related Articles

Guides

Valheim – How to Use Emotes

March 30, 2021 0

Learn to use Valheim emotes in two different ways. How to Use and List Using emotes in Valheim is very simple – you can use them at any point in […]

Guides

Valheim – Smart Storage Solution (Warehouse / Storehouse)

February 24, 2021 0

Smart storage solution for all your loot. How to Build Storage This is not a noob guide. If you’re new to the game, learn the basics by playing the game, […]

Guides

Valheim – World Map

February 2, 2021 1

Map This is a picture of a map when it was dark/night time. This is a picture of a map when it was light/day time. From the middle to each […]

18 Comments

  1. Hmm, I’m stuck on step 5. I get this error.

    “chmod: cannot access ‘build_dedicated_valheim_server.sh’: No such file or directory”
    and when I look in that directory, this is all that’s in there…
    “advancemenu.sh CODE_OF_CONDUCT.md LICENSE menu.sh README.md

    Reply
  2. Not getting any connectivity. This VM also (until v recently) hosted a Minecraft server, so I know it’s connectable and how to set these things up… UFW has been configured and even disabled. The service appears to be running but just getting nothing on the client side at all, no indication that any game server is running.

    Reply
  3. it’s possible to add en auto restart et backup world last day ?

    Reply
  4. how to update server after ?

    Reply
  5. Hello everyone,
    it all went well so far. But when I try to copy our existing world it says no permission on /home/steam/.config/unity3d/IronGate/Valheim/Worlds as I am not the owner. When I try to log in into Ubuntu with steam and the password I’ve edited in the script file it doesn’t let me log in. I am new to linux, sorry

    Reply
    • You could make another user and upload it to this users home directory (via sftp or whatever you like)

      Step 1: Upload file.
      Step 2: (As sudo) Move file to /home/steam/.config/unity3d/IronGate/Valheim/Worlds/
      Step 3: (As sudo) Change the ownership of the file to steam:steam with ->
      sudo chown steam:steam filepath

      Reply
  6. When executing the install script and steamcmd is being run in the process of the script execution I get the following steamcmd error:

    “ERROR! Failed to install app ‘896660’ (Disk write failure)”

    (Yes, there’s more than enough free disk space on / )

    🙁

    Reply
  7. I think that

    sudo systemctl stop valheim.service

    should read

    sudo systemctl stop valheimserver.service

    Otherwise you get “Failed to stop valheim.service: Unit valheim.service not loaded.”

    Reply
  8. Looks like I’ve got the server up and running in an EC2, but it’s failing to place items….

    Feb 11 21:46:43 ip-172-31-71-74 start_valheim.sh[3923]: (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: 02/11/2021 21:46:48: Failed to place all Runestone_Mountains, placed 95 out of 100
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]:
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: 02/11/2021 21:46:48: Done generating locations, duration:45948.148 ms
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]:
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: 02/11/2021 21:46:48: DungeonDB Start 269
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]:
    Feb 11 21:46:48 ip-172-31-71-74 start_valheim.sh[3923]: (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    Reply
  9. not working for me 🙁
    root@instance-1:/opt/Dedicated_Valheim_Server_Script# sudo systemctl stop valheim.service
    Failed to stop valheim.service: Unit valheim.service not loaded.
    root@instance-1:/opt/Dedicated_Valheim_Server_Script# sudo systemctl status valheim.service
    ● valheim.service
    Loaded: not-found (Reason: No such file or directory)
    Active: inactive (dead)
    root@instance-1:/opt/Dedicated_Valheim_Server_Script# sudo systemctl start valheim.service
    Failed to start valheim.service: Unit valheim.service not found.
    root@instance-1:/opt/Dedicated_Valheim_Server_Script# systemctl start valheim.service
    Failed to start valheim.service: Unit valheim.service not found.
    root@instance-1:/opt/Dedicated_Valheim_Server_Script#

    Reply
    • Did you use the script from PUTTY and not a CLI GUI interface that is provided by most server companies?

      Visit my GITHUB and come to my DISCORD. I can help you out.

      Reply
    • Also there was a typo in the TUT.

      systemctl status valheimserver.service

      That will work.

      Reply
  10. valheimserver.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

    :/

    Reply
  11. everything worked fine, but my server is not showing up in steam (local or by external ip) what went wrong and what can i doo to see my server in the gameclient or steam-serverbrowser??

    Reply
    • you must use a launch modifier until STEAM and Valheim fix whatever server listing system they have.

      use the following +connect IPADRESSofyourserver:PORT
      You do this by right clicking the Valheim game icon within Steam, select properties and type your server information. close it and launch the game.

      Reply

Leave a Reply

Your email address will not be published.


*

*