Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated drivers / wine base image #44

Closed
julian-klode opened this issue Nov 23, 2023 · 19 comments · Fixed by #46
Closed

Outdated drivers / wine base image #44

julian-klode opened this issue Nov 23, 2023 · 19 comments · Fixed by #46

Comments

@julian-klode
Copy link

I was curious to try this out but the netbrain/wine base image seems to be based on bullseye and doesn't have new enough drivers for my Ryzen 6850U. It also doesn't have a Docker file either, so I can't build my own easily without reverse engineering it. I'd like to start with an ubuntu:mantic base really.

@netbrain
Copy link
Owner

it's based on this: https://github.com/netbrain/dockerfiles/tree/master/wine

Feel free to base it on your own image.

What do you mean by that bullseye don't have drivers for your ryzen card? I was not aware that this was even something to take into consideration.

@julian-klode
Copy link
Author

The 3D drivers are userspace components shipped by mesa; the ones in bullseye (libgl1-mesa-dri) are far too old to support modern GPUs, after all bullseye is almost EOL by now.

@quietvoid
Copy link
Contributor

quietvoid commented Nov 23, 2023

The container is supposed to be using your host drivers, though.
I run a 6900 XT which is recent and have no problem.

You can easily setup your local image, there are helper scripts as well.

@simfu
Copy link

simfu commented Dec 5, 2023

Hello,

I confirm it does not work with my recent GPU (AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics). Mesa version included in netbrain/wine is indeed too old.

I managed to get Zwift running by rebuilding an image based on a modified version of netbrain/wine in which bullseye is replaced by bookworm.

netbrain added a commit to netbrain/dockerfiles that referenced this issue Dec 5, 2023
@netbrain
Copy link
Owner

netbrain commented Dec 5, 2023

Taking your word for it and upgrading to bookworm :)

@netbrain
Copy link
Owner

netbrain commented Dec 6, 2023

@simfu im having issues upgrading to bookworm, can you please detail what changes you had to do in order to get the zwift image building?

https://github.com/netbrain/zwift/actions/runs/7099516289/job/19359828242

@simfu
Copy link

simfu commented Dec 6, 2023

I've rebuilded your wine docker image by changing bullseye to bookworm in the Dockerfile (two changes)

@@ -1,4 +1,4 @@
-FROM debian:bullseye-slim
+FROM debian:bookworm-slim

 ENV NVIDIA_VISIBLE_DEVICES \
         ${NVIDIA_VISIBLE_DEVICES:-all}
@@ -32,7 +32,7 @@
        libgl1-mesa-glx libgl1-mesa-glx:i386 \
        libgl1-mesa-dri libgl1-mesa-dri:i386 && \
        wget -qO - http://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
-       echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" > \
+       echo "deb https://dl.winehq.org/wine-builds/debian/ bookworm main" > \
        /etc/apt/sources.list.d/winehq.list && \
        apt-get update && \
        apt-get -y install --install-recommends winehq-stable && \

@netbrain
Copy link
Owner

netbrain commented Dec 6, 2023

Ah right, missed that wine apt source

@quietvoid
Copy link
Contributor

The image build fails at winetricks --unattended dotnet20 win10 when building from scratch now.

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023 via email

@julian-klode
Copy link
Author

Sorry for starting this. I also spent 4 hours or so trying to produce an image, but from scratch using a Ubuntu container and Ubuntu's wine package and gave up over similar issues at like 11pm and bought an Apple TV later.

I mean graphics is a lot better on PC in wine but the effort of getting it running and keeping it running is a bit mad.

I think a problem is that the image was past built with wine 7 but now it's wine 8.0.2 or something in the winehq and it may have different bugs causing different winetricks to not work, because you can't pin a specific wine repository state.

Good luck though.

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023 via email

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023

trying a matrix build now to check which combinations of versions that work with the bookworm distro

https://github.com/netbrain/zwift/actions/runs/7133908520/job/19427595768

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023

Also my latest Dockerfile with the same versions as used in bullseye build seems to work on bookworm (locally atleast). Let's see if the github action get's a successfull build! 🤞

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023

I mean graphics is a lot better on PC in wine but the effort of getting it running and keeping it running is a bit mad.

Yeah, that is exactly why i started this project, so it should be a single build to rule them all kind of thing.

I don't blame you for purchasing a Apple TV ;) but your always welcome to try this again in the future 👍

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023

https://github.com/netbrain/zwift/actions/runs/7134247593

new run started as the other "failed fast".

Seems that we have a couple that is in the green.

How should we proceed with upgrading? just simply use the latest version combination and cross our fingers that it works? or stay on something we know is stable? (i.e wine 7.0, winetricks 2021, wine-mono 7.0) ?

@netbrain
Copy link
Owner

netbrain commented Dec 7, 2023

Build from scratch have now replaced the latest container version

@netbrain netbrain closed this as completed Dec 7, 2023
@netbrain
Copy link
Owner

netbrain commented Dec 8, 2023

Documenting working versions here #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants