Hi,
I'm unsuccessful in running an X11 application with a remote
SlurmctldHost. Let us call myfrontalnode the node from which the
user is running the slurm commands that is different from the host
SlurmctldHost.
What fails is the following :
ssh -X myfrontalnode
srun --x11 xclock
which returns a "Can't open display: localhost:56.0"
If I run the xclock with a ssh -X on the compute node (even the same allocated by slurm with the above srun), it works. Namely, the following works :
ssh -X myfrontalnode
ssh -X mycomputenode xclock
The xclock is correctly displayed on my local host;
Also, If I connect to the SlurmctldHost and then srun --x11 it
works as well. I believe there is something I did not configure
correctly on the myfrontalnode.
Thank you for your help;
Jeremy.HI Jeremy,
I have just gone through setting this up with exactly the same issues. Not sure what your settings are or what you may have so far tried, but hopefully this will help…
Steps 3&4 seemed to be the key ones I originally missed – especially 4 (https://slurm.schedmd.com/slurm.conf.html#OPT_X11Parameters)
Hope that helps and good luck!
Regards,
Stuart
From: slurm-users <slurm-use...@lists.schedmd.com>
On Behalf Of Jeremy Fix
Sent: 07 December 2021 14:05
To: slurm...@lists.schedmd.com
Subject: [slurm-users] Failed to forward X11 with a remote scheduler
|
You don't often get email from jerem...@centralesupelec.fr. Learn why this is important |
[EXTERNAL SENDER]
mygateway:/etc/slurm:myuser$ grep X11 *
slurm.conf:PrologFlags=Contain,X11
slurm.conf:# X11 CONFIG
slurm.conf:X11Parameters=home_xauthority
slurmhost:/etc/slurm:myuser$ grep X11 *
slurm.conf:PrologFlags=Contain,X11
slurm.conf:# X11 CONFIG
slurm.conf:X11Parameters=home_xauthority
-- Jérémy Fix (PhD) Assistant Professor CentraleSupélec 2 rue Edouard Belin 57070 Metz, France Tél: +33(0)387 76 47 70 Fax: +33(0)387764700 Email: Jerem...@centralesupelec.fr Homepage : http://malis.metz.supelec.fr/~fix_jer