Tutorial or Teaching Labs HowTo
- 1 Forewords about organizing a tutorial or a teaching lab in Grid5000
- 2 Trainees accounts creation
- 3 Resource reservation
- 4 Access to Grid'5000, connection using SSH
- 5 FAQ
- 5.1 Does every trainee account need to be validated before the trainee can use the platform?
- 5.2 What do the trainees need to do to get their account ready to use?
- 5.3 My trainees told me they did not received any email
- 5.4 One of my trainee is not able to log in
- 5.5 One of my trainee is not able to ssh the frontend
- 5.6 What happens if one of my trainees already has a Grid5000 account?
- 5.7 The g5k-create-tutorial-accounts script returned an error for one of trainee
- 6 List of the tutorials/labs using Grid5000
This page explains how to use Grid'5000 for tutorials/labs, for instance in a teaching course or project at the university, or in thematic schools.
Forewords about organizing a tutorial or a teaching lab in Grid5000
Although the Grid5000 charter does not explicitly mention tutorials or labs, the use Grid5000 for educational purposes is allowed.
First of all, using a single account shared between the multiple trainees is not allowed. Every trainee must have her own account.
Also, accounts have to be nominative (see below for the required information). Generic accounts are not allowed.
To that purpose, to ease the account creation phase for a large group of trainees, Grid'5000 provides a special procedure for a mass account creation.
Second, the teacher may consider reserving resources in the platform to insure trainees will be able to have access to some of them during the lab.
Third, the teacher may consider helping trainees with their first access to the platform, as a basic technical knowledge is required for the access setup.
Trainees accounts creation
The workflow for the trainees accounts creation is the following:
- Send an email to the Grid'5000 technical team at email@example.com, with the subject Tutorial Accounts Creation: ..., to inform about your wish to create a group of accounts for trainees. In this email, some information have to be provided, see the next section.
- Prepare a file containing the list of your trainees first names, last names and e-mail address. See below for an example of such a CSV file.
- Wait for the answer from the Grid'5000 technical team (support staff), that will provide an group/engine name. Connect to a Grid'5000 frontend and use the
g5k-create-tutorial-accountsto launch the actual creation of the accounts, using as parameters the provided engine name and the trainees CSV file your prepared.
Upon the execution of the script, each trainee will receive an email containing the instructions to setup her password and ssh keys.
Once a trainee will have set her password and ssh key, her account will be immediately active (only a few minutes may be required for the passwords and the ssh keys to be synchronized to all Grid'5000 sites and servers). No other action will be required from you.
Expected information in the e-mail to send to the technical team (support staff)
The mass creation of accounts requires a first manual step by the technical team, to setup in the User Management Service of Grid'5000 an account creation automation engine as well as a dedicated group of users for the tutorial trainees.
To that purpose, the technical team needs some information from you. Please send an e-mail to firstname.lastname@example.org with the following content :
Participants/students affiliation information --------------------------------------------- - COUNTRY: → <Country of residence of the participants in case of a lab of a university course (i.e. country of the university). Can be 'n/a' or 'various' for an international workshop tutorial, because the nationality or residence of the participants is unknown.> - UNIVERSITY: → <Name of the university of the students in case of a lab of a university course, e.g. Univ. Grenoble Alpes. Can be 'n/a' or 'various' for participants of a workshop tutorial for instance, because anything more precise would not be relevant.> - ACADEMIC DEPARTMENT/FACULTY: → <Name of the university department of the students in case of a lab of a university course, e.g. Grenoble INP/Ensimag, Master Recherche MOSIG. Can be 'n/a' or 'various' for participants of a workshop tutorial for instance, because anything more precise would not be relevant.> - TEACHING UNIT/MODULE: → <Name of the teaching unit or module of the students in case of a lab of a university course, e.g. Distributed System, Parallel Computing. Can be 'n/a' for participants of a workshop tutorial for instance, because anything more precise would not be relevant.> - EMPLOYEE TYPE: → <One of 'bachelor/master student' or 'PhD student' or 'post-doc', 'research/professor', 'engineer'. Can be 'n/a' or 'various' if the employee type is either not the same or not known for all participants.> Tutorial/lab information ------------------------ - YEAR: → <Year the tutorial/lab takes place in, e.g. the current year.> - NAME: → <Short name for tutorial/lab, e.g. 'uga-mosig-cp'. That name should be composed of the acronyms of the university, the academic department and the teaching unit/module. It will be prefixed by 'lab' and the year to compose the engine/group name, e.g. lab-2020-uga-mosig-cp. > - DESCRIPTION: → <One sentence describing the expected usage of the platform for the tutorial/lab.> - MANAGERS: → <Grid'5000 username(s) of the person(s) in charge for the tutorial (e.g. you). Beware that only the first username will be allowed to use the engine with the
g5k-create-tutorial-accountsscript to create the students accounts.> - END DATE: → <Date of the end of validity of the student access to Grid'5000, as granted thanks to the tutorial/lab. This is typically the end date of the tutorial/lab.> - EXTRA GROUPS: → <Optionally any extra Grid'5000 group(s) that the students have to be member of, e.g. to get access to some group storage (sto-*).>
Format of the trainees list CSV file
You have to create a CSV file containing the information about the trainees. Such a file must be structured as follows:
- one line per trainee
- lines formatted as
For example, if you want to create two trainee accounts for John Doe and Carrie Mathison, a valid CSV file list.csv should contain:
John, Doe, email@example.com Carrie, Mathison, firstname.lastname@example.org
We remind that the use of academic e-mail addresses is to be strongly preferred to gmail or any other non-professional services.
That CSV file will have to be uploaded (scp) to a Grid'5000 frontend for the next step.
Use g5k-create-tutorial-accounts on the frontend to create accounts
Assuming your are connected to Grenoble's frontend and where you uploaded the CSV file named list.csv.
To create the trainees user accounts, do the following:
Depending on your needs, you can reserve Grid'5000 resources in advance.
You probably don't need to reserve resources if:
- Your tutorial occurs during the usage policy restriction period (daytime in Paris timezone)
- and/or it does not require many resources
- and/or it does not have many participants
If you still want to reserve resources in advance, the best strategy is to reserve them as usual in Grid'5000, and kill your reservation just before the beginning of your tutorial. If the tutorial duration is important, you can use several reservations and kill them as the tutorial progress.
Access to Grid'5000, connection using SSH
Past experiences show that many problems are related to some difficulties with the connection to Grid'5000 with SSH keys.
To use Grid'5000, trainees must have basic knowledge of SSH, and especially know how to generate SSH private and public keys and use them to connect to a remote machines. Don't hesitate to spend time at the beginning of the tutorial to explain it. More information on this topic is available at SSH and Getting_Started#Connect_to_a_Grid.275000_access_machine.
If this FAQ does not cover one of your questions, do not hesitate to question by mail .
Does every trainee account need to be validated before the trainee can use the platform?
Contrary to what is done with the normal workflow using the account creation form, no validation is required when the engine is used. The script
g5k-create-tutorial-accounts creates active accounts.
What do the trainees need to do to get their account ready to use?
Created accounts are active right away after the initial procedure, but the trainees have to create their password and SSH keys before being able to connect for the first time. Otherwise, they are not able to connect to any of the grid5000 services.
To do so, they received by email an URL that they must open in a web browser. Every trainee must fill the form in the web browser, with a personal password and SSH public key.
My trainees told me they did not received any email
Do the following:
- Check that the email addresses you put in the CSV file are the correct.
- Ask the trainees to check their spam box.
- Ask the trainees to reset their password using Special:G5KChangePassword. This will send a new email to them, with the instruction to reset their password.
One of my trainee is not able to log in
Some possible causes:
- The trainee is not using the correct login. The login is not an email address. He should have received it by email.
- The trainee did not set up the password using the URL received by email.
- The trainee does not remember the password. In that case, the password can reset using Special:G5KChangePassword.
One of my trainee is not able to ssh the frontend
- The trainee is not using a correct login. The Grid'5000 login may differ from their usual login when using a workstation or another platform. In that case, the trainee can use the
G5K_USERNAMEoption in the SSH command.
- The trainee did not set their SSH private key in the machine (workstation) where the connection to Grid'5000 is made from.
- The trainee did not set up any SSH key when they used the URL to set up their password. To fix this, the trainee can connect to UMS, click on the left panel SSH keys, and then copy/past their public SSH key.
Note that one cannot connect to the Grid'5000 frontends directly (e.g.
fgrenoble.grenoble.grid5000.fr). One first needs first to connect to the access machine:
To avoid the two-steps connection (access machine, then frontend) and connect directly to frontends, one can configure the SSH config file
~/.ssh/config as follows:
Host g5k User
G5K_USERNAMEHostname access.grid5000.fr ForwardAgent no Host *.g5k User
G5K_USERNAMEProxyCommand ssh g5k -W "$(basename %h .g5k):%p" ForwardAgent no
- Accessing the frontend (here, of Grenoble) can be done with:
From there, resources access is managed with the Grid'5000 tools (OAR commands and so on). See the Getting Started tutorial.
What happens if one of my trainees already has a Grid5000 account?
This case is covered by the procedure: the CSV file can and must contain the email addresses of trainees that already have an account.
- Several cases then
- If the existing account is active, the account is just added in the group of the tutorial/lab.
- If the existing account is retired, the account is re-activated before being added to the groups of the tutorial/lab as above.
- However, if the existing account is locked, it needs an intervention from support-staff. For the record, an account can be locked for one of these two reasons: its email address bounces (mostly because invalid), or the user was sanctioned for a misuse of the platform.
- Last, by running the script it may happen that you create a new account for a trainee that already had one, that because the email address you provided for a trainee differs from the one of the trainee's existing account. The trainee may want to use their existing account rather than the new one you created. In that case, you can just run again the script with a CSV containing only one line with the information about that trainee, but changing the email address to the one of the previously existing account of the trainee.
The g5k-create-tutorial-accounts script returned an error for one of trainee
If you get an error, please contact support-staff.
List of the tutorials/labs using Grid5000
If you indeed organize a tutorial which uses Grid5000, we kindly ask it to be recorded in the list below.
- The following list contains the tutorials already organized on Grid'5000
- Un TP en Master 1 Informatique à l'Université de Lille, depuis 2010. Initiation à un environnement et des paradigmes de calcul distribué: réservation de machines et déploiement (oar/kadeploy), traitement d'applications Embarrassingly parallel en mode batch, programmation MPI, expérimentation, scalabilité et mesure de performance. Un groupe d'une vingtaine d'étudiants environ. 3 séances de TP environ.
- Un TP à Rennes, avec Nikos Parlavantzas et une intervention dans le master MRI (1 cours, 2 TP par D. Margery, années 2013-2014, 2014-2015 et 2015-2016. Repris par Matthieu Simonin depuis))
- Un TP au cours de http://sc-camp, en 2011
- Un TP à l'ENS Lyon (TP OpenStack aux master 2)
- Un TP à l'ENS Lyon (12/2013) sur OpenCL (Sujet )
- TP à l'ENS Lyon (2014-2015) "Distributed Systems" M1 course
- Un projet, sur 8 semaines, à l'Ensimag (Grenoble-INP) (automne 2015, automne 2016) "Systèmes distribués et Cloud Avancé" (enseignant: Grégory Mounié), une cinquantaine d'élèves de niveau M2, groupés en 12 équipes
- Un projet de Licence 3 informatique à l'Université de Montpellier (semestre pair 2016) "Prise en main d’OpenStack et mise en oeuvre d'un outil de déploiement d'applications simples sur des VMs" ) groupe de 4 étudiants, encadré par Hinde Lilia Bouziane.
- Un TP en Master 2 à l'Université de Montpellier, décembre 2016, octobre et novembre 2017, novembre 2018 dans le cadre d'un cours "E-applications". Il s'agit d'un TP d'initiation à l'utilisation d'une plateforme distribuée : réservation de machines, exécution d'une application à distance et importation des résultats. Une trentaine d'étudiants répartis en deux groupes en 2016, une cinquantaine d'étudiants en 2017 et une quarantaine en 2018. TP encadré par Hinde Lilia Bouziane.
- Un projet de Licence 3 informatique à l'Université de Montpellier, de novembre 2017 à juin 2018 (groupe de 2 étudiants). Le projet porte sur la programmation d'un traitement parallèle et distribué d'images. Projet encadré par Hinde Lilia Bouziane.
- Un TP à l'IMT Atlantique (campus de Nantes) de 4 étudiants encadré par Mario Südholt de octobre 2018 à janvier 2019.
- Un projet de Master 1 informatique à l'Université de Montpellier, de janvier à juin 2019 (groupe de 3 étudiants). Résumé "Nous disposons d'un algorithme d'apprentissage de relations sémantiques basé sur les relations existantes dans le réseau lexical du JeuxDeMots (http:www.jeuxdemots.org). La table générée est de grande taille, de l'ordre de plusieurs centaines de millions de lignes. L'objectif du projet est de distribuer cette table et de mettre en ouvre un algorithme d'apprentissage et d'exploitation de manière distribuée et parallèle.". Projet encadré par Hinde Bouziane et Mathieu Lafourcade.
- Un projet de Master 1 informatique à l'Université de Montpellier, de janvier à juin 2019 (groupe de 2 étudiants). Le projet porte sur la programmation d'un traitement parallèle et distribué d'images (photogrammétrie). Projet encadré par Hinde Lilia Bouziane.
- Un projet "deep learning" en M2 GI et Polytech INFO4 à l'université de Grenoble, de février à avril 2019, puis 2020. Projet encadré par Georges Quénot.
- TP de l'UE Parallélisme, du M1 de l'UCBL (Simon Delamare), 2019-2020
- TP de l'Université de Lille, M2 Data Science, MPI & GPU (Pierre Fortin), 2020-2021
- TP Ensimag 3A ISI, systèmes distribués (Grégory Mounié), 2020-2021
- TP de la filière MOSIG de l'UGA, calcul parallèle (Arnaud Legrand, Bruno Raffin, Frédéric Wagner), 2020-2021.
- TP de l'Université de Montpellier : dans le cadre d'un cours "E-applications" de Master 2, initiation à l'utilisation d'une plateforme distribuée partagée : réservation de machines, exécution d'une application à distance et importation des résultats. Deux groupes de 25 étudiants (Hinde Bouziane), 2020
- TP pour le Groupe Calcul, introduction à Grid'5000 (Simon Delamarre), 2020
- TP de l'Université de Lille, 5ème année de la spécialité Informatique et statistiques (IS5) à Polytech Lille. Teaching labs on GPU programming. Module CHP (Calcul Haute Performance). 2 sessions de 2 heures (Pierre Fortin), 2020-2021