thorkseng / pi4valheim Goto Github PK
View Code? Open in Web Editor NEWexperimental Docker file to run a Valheim server in a Raspberry Pi4
experimental Docker file to run a Valheim server in a Raspberry Pi4
Hello,
I am trying to run a Valheim server on PI4 8GB, but no matter what I do, I end up with an exit code 255 returned by steamcmd.
I updated the sources.list to BullsEye and did update/upgrade/dist-upgrade of course.
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
Cloned the repo and used the following command to build the image
sudo docker build --no-cache --tag valheim-base -f valheim.dev.Dockerfile .
Have You guys experienced this error and found a solution?
Log: https://pastebin.com/xXGwraGy
First off all, thank you so much for putting this docker image together! It's really quite spectacular!
I was hoping you might be able to update your pre-built docker image on docker hub to take advantage of the latest Box64 release. Apparently v0.2.0 was a big release with lots of performance improvements!
I'm going to try to build your image tonight and see how it works with the latest Box64 release. I noticed that your docker file is pulling down the latest release, so I'm hoping that when I build the image it will automatically include v0.2.0 of Box64. I'll report back with my findings!
Hello,
First of all thank you for your project
I have a raspi4 8GB with "Debian GNU/Linux 11 (bullseye)"
I'm new to docker so I followed your instructions.
at first hand I had a problem after steamcmd install i experienced this error
"Error initializing native libSDL2-2.0.so.0 (last dlerror is libSDL2-2.0.so.0: cannot open shared object file: No such file or directory)"
what I did was adding to the dockfile this "libsdl2-dev:armhf"
after that I deleted the image and build again.
What happened was that at the very end it stopped here
with this info "COPY failed: file not found in build context or excluded by .dockerignore: stat bootstrap: file does not exist"
u can see the full logs here
then I run "docker run --rm --name valheim -p 2456-2458:2456-2458/udp -v /valheim_data:/root/valheim_data:rw --env-file env.world valheim-base"
got the error "Unable to find image 'valheim-base:latest' locally"
So presume that it didn't "compiled the image until the end"
Thank you for the time
I followed all the steps you indicated and everything went well. But my friend and I are setting up the server to automatically restart when the Raspberry Pi restarts, but it takes a long time to restart, and it is forced to close. We don't know if it's saving anything in the process. One way to know if it's saving would be to have the output, which should exist because it appears when executed on another machine. But we don't know how to do it. Do you have any tips or commands for this?
I followed your tutorial step by step, but I did not manage to get the server running. Whenver i ran the execute command, it just creates a new docker container, but freezes, that console does not respond to any command, cant kill it with shortcuts and t he only way to unfreeze it is by killing the docker process from another terminal.
As far as I could tell, there were no errors creating the docker image.
Using Podman, i have no idea how to install v3.3.0, or any other version you recommend and I'm stuck on 3.0.1.
Thanks in advance for any help!
Hey again,
Today an update came out, version 0.214.2, and I wanted to know how to update the server. Do I have to run the docker image build command, is there another way, or I can't update, and I have to wait util the next repository update?
The image was assembled without problems and pretty quickly. The problem occurred during the startup phase. I cannot figure out how to set up the server (server name and world name). Please clarify this point in more detail.
First of all: awesome!
Your container is the only thing that let me run Valheim so far without any issues. There are tutorials that require installing Windows 11 betas but I'm running my Pi headless so your method is perfect. Thanks a lot.
I can verify your container runs on Ubuntu Server 21.04. I couldn't verify how well it runs as I haven't spent a lot of time online but at least I could log in to Valheim and walk around without any issues.
To set up podman I followed the instructions for downloading from the Kubic repo. Maybe you should try adding the Kubic Repos on Raspbian as well as I think that's easier (better?) than changing the distribution.
Now, the reason I haven't spent much time ingame is that my main world is modded. I tried setting up Valheim Plus and after manually setting the architecture in start_server_bepinex.sh it did start running. However it almost immediately crashed with a core dump.
Do you think there is any way to get Valheim Plus running with box64? I'll try experimenting some more this afternoon and maybe I'll edit with more details and the error message.
Struggling to get it download and install the latest beta server in the docker file build process.
I've edited the line to this
RUN ./steamcmd.sh +@sSteamCmdForcePlatformType linux +force_install_dir /root/valheim_server +login anonymous +app_update 896660 -beta public-test -betapassword yesimadebackups -allowdebug validate +quit
I'm running it on a raspberry pi 4 8GB running ubuntu and latest docker
" docker build --no-cache --tag valheim-base -f valheim.Dockerfile ."
[+] Building 0.1s (2/2) FINISHED
=> [internal] load build definition from valheim.Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3737160734/valheim.Dockerfile: no such file or directory
and
"docker pull tranko/pi4valheim"
Using default tag: latest
Error response from daemon: manifest for tranko/pi4valheim:latest not found: manifest unknown: manifest unknown
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.