Summary: | Forwarding of local X11 display | ||
---|---|---|---|
Product: | Slurm | Reporter: | Michael Gutteridge <mrg> |
Component: | User Commands | Assignee: | Jason Booth <jbooth> |
Status: | RESOLVED INFOGIVEN | QA Contact: | |
Severity: | 4 - Minor Issue | ||
Priority: | --- | ||
Version: | 18.08.3 | ||
Hardware: | Linux | ||
OS: | Linux | ||
Site: | FHCRC - Fred Hutchinson Cancer Research Center | Alineos Sites: | --- |
Atos/Eviden Sites: | --- | Confidential Site: | --- |
Coreweave sites: | --- | Cray Sites: | --- |
DS9 clusters: | --- | Google sites: | --- |
HPCnow Sites: | --- | HPE Sites: | --- |
IBM Sites: | --- | NOAA SIte: | --- |
NoveTech Sites: | --- | Nvidia HWinf-CS Sites: | --- |
OCF Sites: | --- | Recursion Pharma Sites: | --- |
SFW Sites: | --- | SNIC sites: | --- |
Tzag Elita Sites: | --- | Linux Distro: | --- |
Machine Name: | CLE Version: | ||
Version Fixed: | Target Release: | --- | |
DevPrio: | --- | Emory-Cloud Sites: | --- |
Description
Michael Gutteridge
2018-12-13 10:41:07 MST
Hi Michael, 10.08.3 does support x11 forwarding. There are two methods which we currently support. https://slurm.schedmd.com/faq.html#x11 You can use the X11 builtin feature starting at version 17.11. This plugin is based on libssh2 and it supports hostbased and pubkey authentication. You just need to have libssh2 installed on compute nodes, libssh2 development package installed in the build host at build time and PrologFlags=x11 set in slurm.conf. You will need also user public/private keys available on compute nodes or otherwise a hostbased authentication setup in your ssh servers. Other X11 plugins must be deactivated. ... An alternative for older versions is to build and install an optional SPANK plugin for that functionality. We will be changing the builtin feature in 19.05 since there are some shortcomings with that implementation so until then I would suggest using the SPANK plugin. -Jason Sorry, I perhaps didn't make clear the exact problem. X forwarding is working great in most cases. I have one failure scenario- if I am on a local display (e.g. a Linux desktop running X) and attempt to forward that display, I get an error message: sp[~]: echo $DISPLAY :1020.0 sp[~]: srun --x11 xeyes srun: error: Cannot forward to local display. Can only use X11 forwarding with network displays. In src/common/x11_util.c, lines 92-96: if (display[0] == ':') { error("Cannot forward to local display. " "Can only use X11 forwarding with network displays."); exit(-1); } I'm hoping for some guidance on how I can get this working or perhaps why this is a bad idea. Thanks Michael Hi Michael,
Thank you for the additional information.
> It may be something I can work around locally- though to figure that out I think I'd need to know why Slurm won't do that. Are there security concerns? Or is this perhaps just something requiring additional development to support?
Our X11 forwarding implementation cannot connect to unix sockets at this time, this is something we may look at in a future release.
Two options:
- Use "ssh -X localhost", then run "srun --x11" within that SSH session. SSH itself will handle translation between a TCP socket that Slurm's implementation can use to the local unix socket.
- Disable our build-in integration, and use the SPANK X11 plugin instead. Due to differences in how it forwards traffic, it can accommodate use of a unix socket instead of a network socket.
-Jason
Ah, yes- that makes perfect sense. Thanks for the workaround- it's a hop, but it'll get us by. - Michael Resolving this now as info given. |