<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Matthew,<br>
<br>
<br>
this is exactly the question, I asked a few days before ;) It seems,
nearly none is using the native x11 forwarding, since there came no
answers.<br>
The only way, I got this functional, is to use salloc:<br>
<br>
salloc srun --x11 xterm<br>
<br>
See also my post [slurm-users] slurm 17.11.2 and X11 forwarding on
CentOS 7.4<br>
<br>
<br>
Best<br>
Marcus<br>
<br>
<div class="moz-cite-prefix">On 01/19/2018 10:13 PM, Mjelde, Matthew
J wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5f5c10d1e01341f4ab4f2eaba8edc5c9@exch-2p-mbx-t4.ads.tamu.edu">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;
color:black;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks Marcus.
I thought I had installed that dependency, but I guess I
installed it somewhere other than where I was compiling
slurm at. Once installed it compiled with x11 support.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">However, now I
have another problem. I am able to start an x11 job using
the command: `srun --pty --x11 bash` but no programs can
connect to the X server. In other words, I get “unable to
connect to X server localhost:50.0”. From what I see in the
logs, it looks like it is all working properly. This is
what I am seeing<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:24.924]
[1686.extern] debug2: remote accepted auth methods:
publickey,password<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.227]
[1686.extern] debug: public key auth successful<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.347]
[1686.extern] debug2: x11_set_xauth: result from xauth:
Using authority file /home/mjmjelde/.Xauthority<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Writing
authority file /home/mjmjelde/.Xauthority<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.347]
[1686.extern] X11 forwarding established on
DISPLAY=compute-01:50.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.347]
[1686.extern] debug: x11 forwarding - sending keepalive
message<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.347]
[1686.extern] debug: x11 forwarding local display is 50<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.760]
debug2: got this type of message 6001<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.760]
debug2: Processing RPC: REQUEST_LAUNCH_TASKS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.760]
launch task 1686.0 request from <a class="moz-txt-link-abbreviated" href="mailto:1569.1003@192.168.2.9">1569.1003@192.168.2.9</a> (port
41190)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.760]
debug: Checking credential with 340 bytes of sig data<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.762]
debug2: _group_cache_lookup_internal: found old entry for
mjmjelde, looking up again<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.765]
[1686.extern] debug: Handling REQUEST_X11_DISPLAY<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.765]
[1686.extern] debug: Leaving _handle_get_x11_display<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.765]
debug: Leaving stepd_get_x11_display<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">[2018-01-19T15:07:25.765]
debug2: _setup_x11_display: setting DISPLAY=localhost:50:0
for job 1686 step 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Is there
anything I am missing that I need to do to get x11
forwarding working?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Matthew<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> slurm-users
[<a class="moz-txt-link-freetext" href="mailto:slurm-users-bounces@lists.schedmd.com">mailto:slurm-users-bounces@lists.schedmd.com</a>]
<b>On Behalf Of </b>Marcus Wagner<br>
<b>Sent:</b> Monday, January 15, 2018 1:35 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:slurm-users@lists.schedmd.com">slurm-users@lists.schedmd.com</a><br>
<b>Subject:</b> Re: [slurm-users] Slurm 17.11 X11
support questions<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Matthew,<br>
<br>
yes, I have.<br>
I just needed to install libssh2-devel, then the native
support will be built in:<br>
<br>
$> ldd slurmstepd<br>
linux-vdso.so.1 => (0x00007fff4dbef000)<br>
libslurmfull.so =>
/opt/slurm/lib64/slurm/libslurmfull.so (0x00007f4fc4bd0000)<br>
libhwloc.so.5 => /usr/lib64/libhwloc.so.5
(0x00007f4fc4995000)<br>
libdl.so.2 => /usr/lib64/libdl.so.2
(0x00007f4fc4791000)<br>
libpam.so.0 => /usr/lib64/libpam.so.0
(0x00007f4fc4582000)<br>
libpam_misc.so.0 => /usr/lib64/libpam_misc.so.0
(0x00007f4fc437d000)<br>
libutil.so.1 => /usr/lib64/libutil.so.1
(0x00007f4fc417a000)<br>
libssh2.so.1 => /usr/lib64/libssh2.so.1
(0x00007f4fc3f50000)<br>
libpthread.so.0 => /usr/lib64/libpthread.so.0
(0x00007f4fc3d33000)<br>
libc.so.6 => /usr/lib64/libc.so.6
(0x00007f4fc3970000)<br>
libm.so.6 => /usr/lib64/libm.so.6
(0x00007f4fc366e000)<br>
libnuma.so.1 => /usr/lib64/libnuma.so.1
(0x00007f4fc3461000)<br>
libltdl.so.7 => /usr/lib64/libltdl.so.7
(0x00007f4fc3257000)<br>
/lib64/ld-linux-x86-64.so.2 (0x00005577dbb7f000)<br>
libaudit.so.1 => /usr/lib64/libaudit.so.1
(0x00007f4fc302f000)<br>
libssl.so.10 => /usr/lib64/libssl.so.10
(0x00007f4fc2dbc000)<br>
libcrypto.so.10 => /usr/lib64/libcrypto.so.10
(0x00007f4fc295b000)<br>
libz.so.1 => /usr/lib64/libz.so.1
(0x00007f4fc2745000)<br>
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1
(0x00007f4fc252e000)<br>
libcap-ng.so.0 => /usr/lib64/libcap-ng.so.0
(0x00007f4fc2328000)<br>
libgssapi_krb5.so.2 =>
/usr/lib64/libgssapi_krb5.so.2 (0x00007f4fc20db000)<br>
libkrb5.so.3 => /usr/lib64/libkrb5.so.3
(0x00007f4fc1df2000)<br>
libcom_err.so.2 => /usr/lib64/libcom_err.so.2
(0x00007f4fc1bee000)<br>
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3
(0x00007f4fc19bb000)<br>
libkrb5support.so.0 =>
/usr/lib64/libkrb5support.so.0 (0x00007f4fc17ac000)<br>
libkeyutils.so.1 => /usr/lib64/libkeyutils.so.1
(0x00007f4fc15a8000)<br>
libresolv.so.2 => /usr/lib64/libresolv.so.2
(0x00007f4fc138e000)<br>
libselinux.so.1 => /usr/lib64/libselinux.so.1
(0x00007f4fc1166000)<br>
libpcre.so.1 => /usr/lib64/libpcre.so.1
(0x00007f4fc0f04000)<br>
<br>
<br>
Best<br>
Marcus<span style="font-size:12.0pt"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 01/13/2018 12:16 AM, Mjelde, Matthew J
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Howdy,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am trying to get my cluster’s native
X11 support enabled, but am having some difficulty. I
generated the RPMs for slurm, installed them on my systems,
and added the “PrologFlags=X11” in the slurm.conf file as
well. However, when I start up slurmd with the flag added,
I get this error: <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Jan 12 16:23:52 node-01 slurmd[15904]:
error: X11 forwarding not built in, cannot enable.<o:p></o:p></p>
<p class="MsoNormal">Jan 12 16:23:52 node-01 slurmd[15904]:
fatal: PrologFlags invalid: X11<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I believe I need to generate the RPMs
with libssh2 support enabled, however I do not see any
documentation or options available in the slurm.spec to do
so. Has anyone else been able to generate the RPMs for
slurm 17.11 with X11 support enabled?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Matthew<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Marcus Wagner, Dipl.-Inf.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>IT Center<o:p></o:p></pre>
<pre>Abteilung: Systeme und Betrieb<o:p></o:p></pre>
<pre>RWTH Aachen University<o:p></o:p></pre>
<pre>Seffenter Weg 23<o:p></o:p></pre>
<pre>52074 Aachen<o:p></o:p></pre>
<pre>Tel: +49 241 80-24383<o:p></o:p></pre>
<pre>Fax: +49 241 80-624383<o:p></o:p></pre>
<pre><a href="mailto:wagner@itc.rwth-aachen.de" moz-do-not-send="true">wagner@itc.rwth-aachen.de</a><o:p></o:p></pre>
<pre><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.itc.rwth-2Daachen.de&d=DwMD-g&c=ODFT-G5SujMiGrKuoJJjVg&r=UR4LBHzF5b_cDw_j2wfxOEm8sPXAdiAPXCqKlI8ciL8&m=r3tDky9Dn5zcA_9YNNqHRuCYBm3NU4IgotvVf5i4MBE&s=0PlzY_0YxT4VMYzS9Ex0yvZmKjP_Dq2P41bbziktsAg&e=" moz-do-not-send="true">www.itc.rwth-aachen.de</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
<a class="moz-txt-link-abbreviated" href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.itc.rwth-aachen.de">www.itc.rwth-aachen.de</a>
</pre>
</body>
</html>