Running NICE DCV inside a Singularity Container #3544
Unanswered
rsinghal168
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need a definition file using any ubuntu or RHEL version of linux, successfully running nice dcv inside a singularity container. I have been stuck on this problem for a while, would really appreciate some help.
Here is my def file
`
Bootstrap: docker
From: ubuntu:22.04
%post
export DEBIAN_FRONTEND=noninteractive
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
EOF
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:0:7:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
DefaultDepth 24
Option "AllowEmptyInitialConfiguration" "True"
SubSection "Display"
Depth 24
EndSubSection
EndSection
EOF
[display]
enable-gpu-sharing=true
[connectivity]
web-port=8443
enable-quic-frontend=true
[security]
authentication="none"
EOF
%environment
export DISPLAY=:0
export XAUTHORITY=/tmp/.Xauthority
export XDG_RUNTIME_DIR=/tmp/dcv-runtime
export PULSE_SERVER=unix:/tmp/pulse-native
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib64:/usr/lib/nvidia:$LD_LIBRARY_PATH"
export NVIDIA_VISIBLE_DEVICES=all
export NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics,video
`
Here is my singularity run command
sudo singularity run --nv \ --bind /home:/home \ --bind /etc/pam.d:/etc/pam.d \ --bind /etc/passwd:/etc/passwd \ --bind /etc/shadow:/etc/shadow \ --bind /etc/gshadow:/etc/gshadow \ --bind /etc/group:/etc/group \ --bind /tmp/.X11-unix:/tmp/.X11-unix \ --bind /run:/run \ --bind /var/run/dbus:/var/run/dbus \ --bind /sys/fs/cgroup:/sys/fs/cgroup \ --bind /dev/dri:/dev/dri \ --bind $HOME/.Xauthority:/tmp/.Xauthority \ --env DISPLAY=:0 \ dcv.sif
in the host machine I am running this command to start XORG
Xorg :0 & export DISPLAY=:0
then inside the container I am running this command
dcvserver --create-session test --owner=ubuntu
I am able to login to the dcv portal, but after the login I get a black screen with 'x' cursor.
This issue with the X server is really persistent.
If anyone has successfully been able to achieve this. Please help!!
Beta Was this translation helpful? Give feedback.
All reactions