[slurm-users] x11 for interactive jobs

423 views
Skip to first unread message

Mahmood Naderan

unread,
May 14, 2018, 2:46:24 PM5/14/18
to Slurm User Community List
Hi,
I see --x11 option in [1], but there isn't any such option. Is that
for old versions? Also, there is a wrapper [2] for srun.x11. Is there
any builtin x11 support in slurm?

[1] https://wikis.nyu.edu/display/NYUHPC/Running+interactive+jobs
[2] https://github.com/jbornschein/srun.x11

Regards,
Mahmood

Paul Edmon

unread,
May 14, 2018, 4:19:21 PM5/14/18
to slurm...@lists.schedmd.com
There is a spank x11 plugin that I think pretty much everyone used:

https://github.com/hautreux/slurm-spank-x11

-Paul Edmon-

Ian Mortimer

unread,
May 14, 2018, 6:23:30 PM5/14/18
to slurm...@lists.schedmd.com
On Mon, 2018-05-14 at 23:14 +0430, Mahmood Naderan wrote:

> I see --x11 option in [1], but there isn't any such option. Is that
> for old versions? Also, there is a wrapper [2] for srun.x11. Is there
> any builtin x11 support in slurm?

There is native X11 support in slurm but after testing it and reading
the list archives, I decided it wasn't reliable enough to use in
production and reverted to using the spank plugin which does work
reliably.

Are you using rocks? I can send some instructions for installing the
X11 spank plugin on rocks if you're interested.


Regards
--
Ian

Marco Ehlert

unread,
May 15, 2018, 3:38:57 AM5/15/18
to Slurm User Community List
Hi,

in slurm 17.11.5 I just realized that slurmstepd tries to add the X11
magic cookie into .Xauthority inside root context in order to make x11
natively work.

The filesystem has to be configured to allow this. I did this
now, but I am wondering why it could not be done in the user's context the
same way as the ssh daemon is doing.

Best,
Marco

IT-Support <Marco....@mpikg.mpg.de>
Max-Planck-Institute of Colloids Tel: +49-(0)331-567-9650
and Interfaces Fax: +49-(0)331-567-9612
Am Muehlenberg 1, D-14476, Golm, Germany

Marco Ehlert

unread,
May 15, 2018, 3:45:48 AM5/15/18
to Slurm User Community List
Hi,

if you are compiling slurm 17.11.5 the --x11 option will be in
only if libssh2.so is installed before.
Otherwise there will be no such option.

Best,
Marco

IT-Support <Marco....@mpikg.mpg.de>
Max-Planck-Institute of Colloids Tel: +49-(0)331-567-9650
and Interfaces Fax: +49-(0)331-567-9612
Am Muehlenberg 1, D-14476, Golm, Germany

On Tue, 15 May 2018, Ian Mortimer wrote:

Mahmood Naderan

unread,
May 15, 2018, 5:06:24 AM5/15/18
to Slurm User Community List
Thanks for responses.

Ian,
I will contact you.

Regards,
Mahmood

Mahmood Naderan

unread,
May 15, 2018, 2:36:48 PM5/15/18
to Slurm User Community List
Hi,
I followed the steps described in [1]. However, srun still says --x11
is not a valid option. Should I restart slurm processes? That is not
mentioned in that document.


[root@rocks7 ~]# git clone https://github.com/hautreux/slurm-spank-x11
Cloning into 'slurm-spank-x11'...
remote: Counting objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28
Unpacking objects: 100% (28/28), done.
[root@rocks7 ~]# cd slurm-spank-x11/
[root@rocks7 slurm-spank-x11]# grep "define X11_" slurm-spank-x11.c
#define X11_LIBEXEC_PROG "/usr/libexec/slurm-spank-x11"
[root@rocks7 slurm-spank-x11]# grep "define X11_LIBEXEC_PROG"
slurm-spank-x11-plug.c
#define X11_LIBEXEC_PROG "/usr/libexec/slurm-spank-x11"
[root@rocks7 slurm-spank-x11]# gcc -g -o slurm-spank-x11 slurm-spank-x11.c
[root@rocks7 slurm-spank-x11]# gcc -g -shared -fPIC -o x11.so
slurm-spank-x11-plug.c
[root@rocks7 slurm-spank-x11]# install -m 755 slurm-spank-x11 /usr/libexec/
[root@rocks7 slurm-spank-x11]# install -m 755 x11.so /lib64/slurm/
[root@rocks7 slurm-spank-x11]# echo -e "optional\tx11.so" >> ./plugstack.conf
[root@rocks7 slurm-spank-x11]# ls -l /usr/libexec/slurm-spank-x11
-rwxr-xr-x 1 root root 22328 May 15 23:00 /usr/libexec/slurm-spank-x11
[root@rocks7 slurm-spank-x11]# ls -l /lib64/slurm/x11.so
-rwxr-xr-x 1 root root 39544 May 15 23:00 /lib64/slurm/x11.so
[root@rocks7 slurm-spank-x11]# srun --x11
srun: unrecognized option '--x11'
srun: unrecognized option '--x11'
Try "srun --help" for more information



Any idea?


[1] https://slurm.schedmd.com/faq.html#x11

Regards,
Mahmood

Nadav Toledo

unread,
May 17, 2018, 1:30:05 AM5/17/18
to slurm...@lists.schedmd.com
Maybe you've got a mistake?
replace:

echo -e "optional\tx11.so" >> ./plugstack.conf
with
echo -e "optional\x11.so" >> ./plugstack.conf
Reply all
Reply to author
Forward
0 new messages