X11 forwarding batch interactive jobs

From ScientificComputing
Jump to: navigation, search

Introduction

In some cases it is useful to run a compute- or memory-intensive program with a graphical user interface (GUI). Such computations should not be run on a login node but on a compute node through the batch system. You can use batch interactive jobs with X11 forwarding.

Preparation

Please make sure that you have an SSH config file in your home directory

$HOME/.ssh/config

which contains the line

Host *
   ForwardX11Trusted yes

This is required for running a batch interactive job with X11 forwarding enabled.

Submitting X11 forwarding batch interactive jobs

To run xterm as an X11 forwarding batch interactive job, you would need to connect to Euler with X11 forwarding enabled and run the following command

Slurm:

[nmarounina@eu-login-40 ~]$  srun --pty --x11 bash
srun: job 1465178 queued and waiting for resources
srun: job 1465178 has been allocated resources
[nmarounina@eu-a2p-530 ~]

After submitting your interactive job, you would need to wait until the session gets dispatched on a compute node. You can request the resources for your interactive job the same way as for batch jobs.

Troubleshooting X11 forwarding batch interactive jobs

Check your settings for SSH and X11 forwarding.