A colleague found this, and it resolved the issue for me. https://bugs.schedmd.com/show_bug.cgi?id=14134 The /etc/hosts on the compute nodes did not have this extra line, but the file on the login/slurmctld node did have it. I removed the line and now e.g. srun -x11 -N 1 xclock works. Allan