admin:uml
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
admin:uml [2014/01/30 17:08] – orel | admin:uml [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== UML at HOME ====== | ====== UML at HOME ====== | ||
- | ====Comment installer UML à la maison ?==== | + | //Tutoriel valide à la fois pour Administration des Réseaux (AR) et Sécurité des Réseaux (SR). Veillez à remplacer AR ou SR selon le cas.// |
+ | |||
+ | ===Comment installer UML à la maison ?=== | ||
Vous devez tout d' | Vous devez tout d' | ||
- | | + | * le script de démarrage : / |
- | - le kernel : / | + | |
- | - le root filesystem : / | + | |
- | ====DOWNLOAD==== | + | En remplaçant < |
- | First, you have to download several files from the CREMI via SSH with your own account. | ||
- | |||
- | |||
- | $ mkdir UML ; cd UML | ||
$ scp < | $ scp < | ||
- | | + | $ scp < |
- | | + | $ scp < |
- | $ scp < | + | $ chmod +x launch.sh |
| | ||
- | ====SYNOPSIS==== | + | Attention, le fichier ' |
+ | |||
+ | ===Démarrons le TP1 === | ||
- | To start the UML network, type: | + | Placez vous dans le répertoire où se trouve les trois fichiers précédents (launch.sh, root_fs.tgz et linux), puis récupérez les fichiers du TP1 (archive_tp1.tgz et config) que vous renommez en tp1.tgz et tp1.txt |
- | $ launch.sh TP_CONFIG TP_ARCHIVE [ROOT_FS_ARCHIVE LINUX UML_COW_TMP] | + | $ scp < |
+ | $ scp < | ||
- | with: | + | Vous pouvez maintenant lancer le script de démarrage comme ceci : |
- | * Mandatory arguments. | + | |
- | | + | |
- | - TP_ARCHIVE: archive file with COWS (ex. demo.tgz) | + | |
- | * Optional arguments. | + | Les fichier |
- | - LINUX: a linux kernel (default, linux) | + | |
- | - ROOT_FS_ARCHIVE: | + | |
- | - UML_COW_TMP: | + | |
- | ====EXAMPLE==== | + | Enjoy :-) |
- | In the same directory where you have previously download files | + | ===Documentation=== |
- | (launch.sh, root_fs.tgz and linux), | + | |
- | that: | + | To start the UML network, type: |
+ | |||
+ | $ launch.sh | ||
+ | |||
+ | with: | ||
+ | |||
+ | * TP_CONFIG: config file (ex. demo.txt) | ||
+ | * TP_ARCHIVE: archive file with COWS (ex. demo.tgz) | ||
+ | * LINUX: a linux kernel (default, | ||
+ | * ROOT_FS_ARCHIVE: | ||
+ | * UML_COW_TMP: a temporary directory (default, /tmp/UML) [optional] | ||
- | $ scp mylogin@jaguar.emi.u-bordeaux.fr:/ | ||
- | $ scp mylogin@jaguar.emi.u-bordeaux.fr:/ | ||
- | $ ./launch.sh tp1.txt tp1.tgz | ||
- | ====SAVE YOUR WORK==== | + | __Sauvegarde__ |
If you have properly halted UMLs, you can save your works like this: | If you have properly halted UMLs, you can save your works like this: | ||
Line 56: | Line 59: | ||
Then, you can relaunch UML with this archive to continue your work. | Then, you can relaunch UML with this archive to continue your work. | ||
- | ====WARNING==== | + | __Remarques__ |
- | Each UML host requires about 100MB of shared memory (/dev/shm) in your | + | UML host requires about 100MB of shared memory (/dev/shm) in your Linux. The amount of memory required by each UML id defined by the the UML_MEM variable of the launch.sh script. One can check the available shared memory of your host with the following command: |
- | Linux. The amount of memory required by each UML id defined by the the | + | |
- | UML_MEM variable of the launch.sh script. One can check the available | + | |
- | shared memory of your host with the following command: | + | |
$ df -h /dev/shm | $ df -h /dev/shm | ||
- | This size must be greater than the amount of memory required for all | + | This size must be greater than the amount of memory required for all UMLs. For instance, if you have 4 UMLs with UML_MEM fixed at 100M. You need 400M in /dev/shm. |
- | UMLs. For instance, if you have 4 UMLs with UML_MEM fixed at 100M. You | + | |
- | need 400M in /dev/shm. | + | |
- | Enjoy! |
admin/uml.1391101713.txt.gz · Last modified: 2024/03/18 15:04 (external edit)