Reputation: 11
I have tried multiple things but nothing seems to be working. I managed to do it inside a docker container luckily there is documentation available for the same. But with singularity its a whole different story. Below is a very simple version of one of my def files. where I am entirely trying to disable the dcv authentication process but even that is not getting disabled. It lands me to the login page every time. my host system is Ubuntu 24.04.1 LTS
Bootstrap: docker
From: nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
%post
# System Configuration
export DEBIAN_FRONTEND=noninteractive
apt update && apt upgrade -y
# Install Core Dependencies
apt install -y --no-install-recommends \
wget sudo xorg openbox mesa-utils \
libglvnd-dev libnss-sss libpam-sss \
pulseaudio xauth dbus-x11 udev
# Install NICE DCV Server
wget https://d1uj6qtbmh3dt5.cloudfront.net/2024.0/Servers/nice-dcv-2024.0-18131-ubuntu2204-x86_64.tgz
tar -xzf nice-dcv-*.tgz
cd nice-dcv-*/ && apt install -y ./*.deb
sed -i 's/#authentication="none"/authentication="none"/' /etc/dcv/dcv.conf
dcvserver restart
# Configure Permissions
#echo "allowed_users = anybody" > /etc/X11/Xwrapper.config
#echo 'SUBSYSTEM=="usb", MODE="0666"' > /etc/udev/rules.d/99-dcv.rules
%environment
export DISPLAY=:1
export XDG_RUNTIME_DIR=/tmp/runtime
export PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/nvidia/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
I ran
sudo singularity build dcv.sif dcv.def
then
singularity run --nv dcv.sif
then inside the container
dcvserver --create-session test --owner=ubuntu
I am expecting a working Nice dcv inside a singularity container.
Upvotes: 0
Views: 34