selkies-project / docker-nvidia-glx-desktop

KDE Plasma Desktop container designed for Kubernetes supporting OpenGL GLX and Vulkan for NVIDIA GPUs with WebRTC and HTML5, providing an open-source remote cloud graphics or game streaming platform. Spawns its own fully isolated X Server instead of using the host X server, not requiring /tmp/.X11-unix host sockets or host configuration.
https://github.com/selkies-project/docker-nvidia-glx-desktop/pkgs/container/nvidia-glx-desktop
Mozilla Public License 2.0
263 stars 59 forks source link

Coexist with Host X11 server #40

Closed ghost closed 12 months ago

ghost commented 1 year ago

Is it possible to run this docker image on desktop linux (which already has a running X11 server on the host)?

How should VIDEO_PORT be set in this case so that the x server in the container won't interference with the host x11 server?

ehfd commented 1 year ago

https://github.com/selkies-project/docker-nvidia-glx-desktop#the-container-does-not-work-if-an-existing-gui-desktop-environment-or-x-server-is-running-in-the-host-outside-the-container--i-want-to-use-this-container-in---privileged-mode-or-with---cap-add-and-do-not-want-other-containers-to-interfere

ghost commented 1 year ago

Thanks for the reply!

I don't have two Nvidia GPUs. Can I cofigure the host X org to use integrated Intel graphics?

ehfd commented 1 year ago

Yes. But you should see Arch Wiki or other Linux related resources because Intel is outside the scope here. The instructions I wrote should apparently also help if things don't work.

ehfd commented 12 months ago

Extremely easy option should be use the egl desktop. No need to care about these aspects.

ghost commented 12 months ago

Would egl be very slow if I would like to run blender?

I was trying to figure out how should I configure host xorg but without luck.

ehfd commented 12 months ago

Framerate is slower in unpractically high framerates (>2000 fps - nobody actually achieves this real life) using VirtualGL on EGL, but performance is similar in more practical framerates in practical complex workloads (<300 fps).