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

How to render with GPUs in VNC Desktop #31

Open
oldraincoat opened this issue Dec 14, 2019 · 2 comments
Open

How to render with GPUs in VNC Desktop #31

oldraincoat opened this issue Dec 14, 2019 · 2 comments

Comments

@oldraincoat
Copy link

Thanks for sharing the code
I am running the container on a remote host and I want to display the window of glxspheres64
with virtualgl on GPUs.
I start the docker container with:
nvidia-docker run -d -p 8888:8888 -v /home/$USER/work/work1:/home/jovyan -e JUPYTER_ENABLE_LAB=yes nvaitc/ai-lab:19.09-vnc
And I start the vnc desktop and run the following command:
/opt/Turbovnc/bin/vncserver :5
vglrun -d :5.0 ./glxspheres64
But the result shown in the figure illustrates that opengl renderer is llvmpipe, not GPUs.
github
How can I render with GPUs and display the window.
Thank you.

@tlkh
Copy link
Owner

tlkh commented Mar 31, 2020

Apologies for the delay, I have updated the FAQ with more detailed instructions. Here's the gist of it:

xhost +local:root
nvidia-docker --rm run \
 -e "DISPLAY" \
 -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
 -p 8888:8888 \
 -v /home/$USER:/home/jovyan \
 nvaitc/ai-lab:20.03-vnc

@johncadengo
Copy link

Hi, this is the error I am getting.

Screen Shot 2021-11-21 at 3 15 35 AM

Do you have any idea what I'm doing wrong?

I am trying to run this from a headless server, and when I run xhost +local:root I get this error:

➜  ~ xhost +local:root
xhost:  unable to open display ""

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

No branches or pull requests

3 participants