Note: Some of the repo/how to is out of date. Please view updated free resouces here: https://www.oracle.com/il-en/cloud/free/
Hopefully this helps someone get started. I would recommend the following for smooth performance:
Price | CPU Core | Memory(GB) | Load Balancer(optional) |
---|---|---|---|
Free | 1 | at least 3 | 1 (w/ 10mbps) |
- Sign up for Oracle Cloud Free Tier
- Create The Virtual Machine.
- Login to the Virtual Machine
- Go ahead and setup the firewall stuff on the server and cloud account
- How to Login to Valheim your Server
- How to Migrate your Existing Valheim World
- How to Tell Valheim Plus is Working
- An Example Valheim LGSM config file
- An Example Valheim+ config file
Link: https://www.oracle.com/cloud/free/
- Its a free trial and a free account too.
- You won't be charged and can still use the free services after the trial.
- Plus they nicely label all the free stuff.
- In this we will use 1 of the 2 free virtual machines.
Choose the following and make sure to download the SSH keys to login in the next step. This is their free tier VM and should be okay for you and a couple buddies.
This will be different for every operating system so check out the official Oracle documentation:
- https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/accessinginstance.htm
- I'm on Windows 10 and will use Putty(https://www.putty.org/)
First thing first is to convert the .key private key file downloaded above into a putty key(.ppk)
- Open PuTTYgen.
- Click Load, and select the private key generated when you created the instance. The extension for the key file is
.key
. - Enter a password for the key.
- Then click Save private key.
- Specify a name for the key. The extension for new private key is
.ppk
. - Click Save.
-
Open PuTTY.
-
On the left-hand side Category pane, select Session and enter the following:
- Host Name (your IP address):
- Port: 22
- Connection type: SSH
-
In the Category pane, expand Connection, expand SSH, and then click Auth.
-
Click Browse, and then select your .ppk private key file.
-
Click Open to start the session.
-
Your Username is the default username for the instance. For Oracle Linux and CentOS images, the default username is `opc`. For Ubuntu images, the default username is `ubuntu`.
-
Password is the password for the key you just setup
- Note: First time connecting to the instance, you might see a message that the server's host key is not cached in the registry. Click Yes to continue the connection.
Valheim uses the following ports, but could be changed if you want during config.
Run the following one at a time
sudo firewall-cmd --permanent --zone=public --add-port=2456/udp
sudo firewall-cmd --permanent --zone=public --add-port=2457/udp
sudo firewall-cmd --reload
More info here: https://linuxgsm.com/lgsm/vhserver/
login then type the following to login as root
sudo su
Then install the dependencies. Run the following one at a time
yum install epel-release
yum install curl wget tar bzip2 gzip unzip python3 binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686
Its a recommended additional module that allows LinuxGSM to gather more info from the game
curl -sL https://rpm.nodesource.com/setup_12.x | bash -
yum install nodejs
npm install gamedig -g
npm update -g
sudo yum install nmap-ncat
The next few steps are pretty easy. Create the user
adduser vhserver
login as that user
su - vhserver
- Download linuxgsm
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh vhserver
- Run the installer following the on-screen instructions.
./vhserver install
./vhserver
./vhserver start
./vhserver stop
./vhserver restart
./vhserver update
./vhserver details
./vhserver backup
./vhserver monitor
Once you start the server it will populate with a default config. Make sure to edit the config to give the Valheim Server a name, seed, and password:
- https://cubecoders.com/AMP
- https://cubecoders.com/AMPInstall -- Note AMP is a paid server administration software. -- But its fairly inexpensive and feature rich. I think its only like $10-ish USD.
This is their quick install command. It will walk you through all the steps and is very easy. I skipped the https stuff.
bash <(wget -qO- [getamp.sh](http://getamp.sh/))
- Also when it asks you to finish the install via AMP login, it shows you the ip/port to go check out.
- I had to add the port 8080 to my ingess rules like in step 4 above before I could access the panel.
- You can also skip the license and add that after.
- Add the license key under Configuration > New Instance Defaults
This part is just wonderfully easy.
- Click Instances > Create Instance
Before you start the server just make sure to give it a name and password. Also the world seed is the name of your world if you're going to migrate from non-dedicated local file.
This is optional but helps with network spikes and lag. In a recent update I was able to run it without it, but results may vary with regions.
AMP makes things super easy again. Just create a new instance and select Valheim+ install. Then follow similar steps as above to config everything.
Make sure to Setup Valheim+ on your machine as well. Download the latest package called WindowsClient.zip over at their link. (Scroll down and click "assets")
- https://github.com/nxPublic/ValheimPlus/releases/
- Locate your game folder by starting up steam and:
- Right click the valheim game in your steam library
- Go to Manage>Browse local files
- Steam should open your game folder for you when clicked
- Then just unzip everything in there
Change whatever you like, but for me I had to also update the following: Look for the section called server. Find my config attached for reference.
[Server]
; Change false to true to enable this section
enabled=false
; Modify the amount of players on your Server
maxPlayers=10
; Removes the requirement to have a server password
disableServerPassword=false
; This settings add a version control check to make sure that people that try to join your game or the server you try to join has V+ installed
enforceMod=false
; The total amount of data that the server and client can send per second in kilobyte
dataRate=60
; The interval in seconds that the game auto saves at (client only)
autoSaveInterval=1200
For LGSM its going to take a bit more. Okay the Valheim+ Mod documentation leaves a lot to be desired to say the least. Here is what I did to set it up with LGSM.
- Link to the V+ repo: https://github.com/nxPublic/ValheimPlus
Setup Valheim+ on your machine first. Download the latest package called WindowsClient.zip over at their link. (Scroll down and click "assets")
- https://github.com/nxPublic/ValheimPlus/releases/
- Locate your game folder by starting up steam and:
- Right click the valheim game in your steam library
- Go to Manage>Browse local files
- Steam should open your game folder for you when clicked
- Then just unzip everything in there
Download the latest package called UnixServer.zip over at their link. (Scroll down and click "assets")
Go ahead and unzip it. Then edit the start_server_bepinex.sh file. I did this before uploading to the server
Scroll to the bottom of the start_server_bepinex.sh file and find the section about server and password. This is where you put in the server name, password, and world you setup in AMP.
./valheim_server.x86_64 -name YOURSERVERNAME -password YOURPASSWORD -port YOURPORTNUMBER -world WORLDNAME
Also edit your config(valheim_plus.cfg) file in the unziped folder UnixServer\BepInEx\config\valheim_plus.cfg
Change whatever you like, but for me I had to also update the following: Look for the section called server. Find my config attached for reference.
[Server]
; Change false to true to enable this section
enabled=false
; Modify the amount of players on your Server
maxPlayers=10
; Removes the requirement to have a server password
disableServerPassword=false
; This settings add a version control check to make sure that people that try to join your game or the server you try to join has V+ installed
enforceMod=false
; The total amount of data that the server and client can send per second in kilobyte
dataRate=60
; The interval in seconds that the game auto saves at (client only)
autoSaveInterval=1200
So to do this I used filezilla(https://filezilla-project.org/) ftp program since its free. Example:
/home/vhserver/serverfiles
Update them via server console(putty) LGSM
sudo chmod -R ugo+rwx /home/vhserver/
- Edit start_server_bepinex.sh and replace the arguments of Valheim executable with $@ so the last line looks like this :
exec ./valheim_server.x86_64 $@
- Add the following to your vhserver.cfg
executable="./start_server_bepinex.sh" to your your vhserver.cfg
- Open Steam
- Click "View" across the top.
- Then click on "Servers" on that menu.
- A popup window will appear and select the "Favorites" tab
- Then click on the "Add a Server" button.
- Use IPAddress:2457 typically
- Hit search
Drag and drop your world file from your local drive to the server data folder using filezilla.
Copy from local drive
C:\Users\yourname\AppData\LocalLow\IronGate\Valheim\worlds
to remote server folder
/home/vhserver/.config/unity3d/IronGate/Valheim/worlds
Must be the same name as in the AMP instance mange settings. Make sure to change the path to include your name.
C:\Users\yourname\AppData\LocalLow\IronGate\Valheim\worlds
to remote server folder
/896660/Data/worlds
Update them via server console(putty) LGSM example
sudo chmod -R ugo+rw /home/vhserver/
AMP example
sudo chmod -R ugo+rwx /home/amp/
To check if client installed correctly just load the game and you should see the Valheim logo changed with the Valheim+ logo To check if server is working, once connected hit F5 for console output. It will note which version of Valheim+ is installed.