Changes

Jump to navigation Jump to search
157,526 bytes added ,  03:49, 24 November 2018
RC-0.0.1 // 2018-11-23 @ 20h49 HNE // Michel-André
<!-- ########################################################################### -->
{| style="float: left; margin-right:20px;margin-bottom:10px;"
|-
| style="vertical-align: top;" |
<div style="float:right">__TOC__</div>
|}
<!-- ########################################################################### -->= Description générale =

Ce document présente l'installation de l'environnement de virtualisation Proxmox VE.

L'environnement de virtualisation Proxmox VE, basé sur la distribution Debian, est livré sur un CD-ROM d'installation qui comprend un système Debian complet ''("Stretch" pour Proxmox VE 5.x)'', un noyau Linux 4.15.17 spécialement modifié et tous les paquets Proxmox VE nécessaires.

L'installateur vous pose seulement quelques questions, partitionne le''(s)'' disques locaux, installe tous les paquetages requis et configure le système comprenant une configuration de réseau de base. Vous pouvez obtenir un système entièrement fonctionnel en quelques minutes. C'est la méthode d'installation préférée et recommandée.

Alternativement, Proxmox VE peut être installé sur un système Debian existant. Cette option est seulement recommandée pour les utilisateurs avancés car, des connaissances détaillées sur Proxmox VE sont nécessaires.

* ''Conventions'': [[#Particularités de ce document]].


'''VirtualBox'''

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Habituellement, l'installation de Proxmox VE s'effectue sur une machine qui lui est complètement dédiée. Vu que nous voulons seulement étudier et nous familiariser avec le comportement de cet environnement, nous allons commencer par l'installer sur une machine virtuelle VirtualBox. Une fois que notre étude sera complétée, nous allons répéter les manipulations de ce document sur une machine physique dédiée à ProxmoxVE.

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Avec une installation VirtualBox, vous pourrez vérifier les modifications à l'environnement ProxmoxVE sur la machine virtuelle avant de les implémenter sur la machine physique ProxmoxVE.


'''''Mise en garde'''''

La création de machines virtuelles dans ProxmoxVE roulant sous VirtualBox est excessivement lente car il existe deux niveaux de virtualisation: un pour VirtualBox et un autre pour ProxmoxVE.

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Nous recommandons cet environnement uniquement pour la vérification des changements de configuration de ProxmoxVE.


'''Proxmox Virtual Environment'''

C'est une solution de virtualisation LIBRE ''(licence AGPLv3)'' basée sur l'hyperviseur Linux KVM ''(Kernel-based Virtual Machine)'' et offre aussi une solution de Conteneurs avec LXC. PVE propose un support payant.

PVE est fourni comme un packaging par Proxmox Server Solutions GmbH et est une solution de virtualisation de type "bare metal". PVE est fourni sur une image ISO.

L'installateur ''(basé sur Debian)'' configure tout:

* le système d'exploitation complet ''(Debian Stretch 64 bits)'',
* le partitionnement de disque dur avec LVM2,
* le support de LXC ''(conteneurs)'' et du module KVM ''(virtualisation complète)'',
* les outils de sauvegarde et de restauration,
* interface Web d'administration et de supervision, etc...

Les fonctions de grappe permettent la migration à chaud des machines virtuelles, d'un serveur physique à un autre serveur. ''(À condition d'utiliser un stockage partagé SAN ou Ceph sinon, la migration entraîne une courte interruption lors du redémarrage sur un autre nœud de la grappe)''.

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;L'installation du système à partir du CD formate le disque dur et entraîne l'effacement complet des données qui pourraient être présentes sur le serveur. Cependant, étant donné que Proxmox VE repose sur une distribution Debian, il est tout à fait possible de l'installer à partir de paquets sur une machine existante, sans pour autant perdre ses données.


'''Caractéristiques de Proxmox VE'''

PVE propose 2 types de virtualisation.

* Virtualisation matérielle ''(ou complète)'' - KVM: permettant la virtualisation de tout système d'exploitation sur des processeurs d'architectures x86_64 disposant des technologies Intel VT ou AMD-V.
* Virtualisation par conteneurs - LXC: permettant la création d'instances isolées de système d'exploitation ''(Linux uniquement)'' appelées Serveurs Privés Virtuels ''(VPS)'', Environnements Virtuels ''(VE)'' ou Conteneurs. Cette solution est plus performante ''(consomme moins de ressources)'' qu'une virtualisation matérielle du fait du peu de temps système requis.


'''Système requis'''

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Pour des services en mode production, il est fortement recommandé d'utiliser des serveurs modernes.

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Comme toute technologie de virtualisation, un problème touchant une machine physique affectera toutes les machines virtuelles installées sur celle-ci. Ce risque est cependant atténué par l'utilisation de la haute disponibilité ''(HA)'' offerte depuis la version 2.0. En effet, Proxmox VE supporte les grappes et signifie que des installations multiples de PVE peuvent être centralisées et contrôlées par l'intermédiaire de la fonction Cluster, incluse dans l'interface d'administration du logiciel.

Proxmox VE peut utiliser le stockage local ''(DAS)'', SAN, NAS et également le stockage distribué ''(Ceph RBD)'', voir le chapitre 8, Proxmox VE Storage du guide <span>[https://pve.proxmox.com/pve-docs/pve-admin-guide.pdf https://pve.proxmox.com/pve-docs/pve-admin-guide.pdf]</span>.

Depuis la version 1.5, il est désormais possible d'utiliser des disques iSCSI pour stocker les machines virtuelles permettant ainsi d'assouplir le fonctionnement en grappe. D'autres types de stockage sont utilisables tel NFS.

[[Image:SME-101.11-001-Proxmox-FS.png|top|center|700px|border]]
<br clear=all>


'''''Système minimum requis'''''

* CPU 64 bits ''(Intel EM64T ou AMD64)''.
* Carte-mère et BIOS compatible Intel VT/AMD-V ''(pour le support de la virtualisation par KVM)''.
* 1 GO de RAM.
* Disque dur.
* Une carte réseau.


'''''Système recommandé'''''

* CPU 64 bits ''(Intel EM64T ou AMD64)'', multi-cœur recommandé.
* Carte-mère et BIOS compatible Intel VT/AMD-V ''(pour le support de la virtualisation par KVM)''.
* 8 GO de RAM et mémoire additionnelle pour les systèmes invités.
* RAID matériel avec cache d'écriture protégé par batterie ''("BBU")'' ou protection par flash.
* Disques durs rapides; de meilleurs résultats sont obtenus avec des disques à 15 000 RPM en RAID 10.
* Au moins 2 cartes réseau en fonction de la technologie de stockage utilisée, vous pourriez en avoir besoin de plus.
* Système d'alimentation sans coupure.


'''Documentation'''

'''''PDF & HTML'''''
Anglais seulement: [https://pve.proxmox.com/pve-docs/ https://pve.proxmox.com/pve-docs/].


'''''Vidéo'''''

Français: [https://www.proxmox.com/en/training/video-tutorials/category/french https://www.proxmox.com/en/training/video-tutorials/category/french].

Anglais: [https://www.proxmox.com/en/training/video-tutorials/category/english https://www.proxmox.com/en/training/video-tutorials/category/english].

Youtube: [https://www.youtube.com/watch?v=Sjy0jll0Rx4 https://www.youtube.com/watch?v=Sjy0jll0Rx4].


'''Aide en ligne'''

Proxmox VE lui-même est entièrement LIBRE donc, il encourage toujours ses utilisateurs à discuter et à partager leurs connaissances en utilisant le Forum communautaire Proxmox VE à l'adresse [https://forum.proxmox.com/ https://forum.proxmox.com/]. Le forum est entièrement "pondéré" par l'équipe de support Proxmox et possède une vaste base d'utilisateurs tout autour du monde. Inutile de dire qu'un tel forum est un bon endroit pour obtenir des informations.

La principale source d'information est le Wiki Proxmox VE à l'adresse [https://forum.proxmox.com/ https://forum.proxmox.com/]. Cette source combine la documentation de référence aux contributions des utilisateurs.


=== Marche à suivre ===

* Vérification du BIOS.
* Téléchargement de l'ISO du fichier d'installation de ProxmoxVE et vérification de la somme de contrôle.
* Création et configuration de la machine virtuelle pour ProxmoxVE.


= BIOS =

Depuis 2006, les processeurs Intel et AMD supportent ce qu’on appelle la “virtualisation matérielle”. La virtualisation matérielle signifie que ces processeurs peuvent aider à intercepter des opérations potentiellement dangereuses que pourrait essayer d'exécuter le système d’exploitation invité et elle facilite la présentation du matériel à une machine virtuelle.

Les fonctionnalités du matériel diffèrent entre les CPU Intel et AMD. Intel a appelé sa techno VT-x<nowiki>; AMD a nommé la leur </nowiki>AMD-V. Le support d’Intel et d’AMD de la virtualisation est très différent dans le détail, mais pas si différent dans le principe.

Les processeurs modernes incluent des fonctionnalités de virtualisation matérielle qui aident à accélérer la virtualisation. <u>Intel VT-x n'est pas toujours activé par défaut</u>. Si tel est le cas, un message tel que "L'accélération matérielle VT-x/AMD-V n'est pas disponible sur votre système" ou "Cet hôte prend en charge Intel VT-x mais Intel, VT-x est désactivé".

Tout d'abord, cela n'est nécessaire que pour Intel VT-x. Le matériel Intel VT-x peut être désactivé via le BIOS ou le firmware UEFI et <u>il est régulièrement désactivé sur les nouveaux ordinateurs</u>.

AMD-V est toujours activé si vous utilisez un processeur AMD qui le prend en charge, il n'y a donc aucun BIOS ou UEFI que vous devez modifier.


'''''Activation'''''

[http://www.informatiweb.net/tutoriels/informatique/9-bios/89--activer-la-virtualisation-intel-vt-x-amd-v.html http://www.informatiweb.net/tutoriels/informatique/9-bios/89--activer-la-virtualisation-intel-vt-x-amd-v.html].

[http://www.pumbaa.ch/blog/tutoriaux/?d=2016/03/09/16/30/00-activer-vt-xamd-v-pour-installer-un-os-64-bits-dans-une-vm http://www.pumbaa.ch/blog/tutoriaux/?d=2016/03/09/16/30/00-activer-vt-xamd-v-pour-installer-un-os-64-bits-dans-une-vm].

[https://www.qnap.com/fr-fr/qa/con_show.php?op=showone&cid=258 https://www.qnap.com/fr-fr/qa/con_show.php?op=showone&cid=258].

[http://f4b1.com/comment-activer-la-virtualisation-vt-x-amd-v-dans-le-bios http://f4b1.com/comment-activer-la-virtualisation-vt-x-amd-v-dans-le-bios].


= Téléchargement de l'ISO Proxmox =

=== Page de téléchargement ===

[https://www.proxmox.com/en/downloads https://www.proxmox.com/en/downloads].

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-002-Proxmox-ISO-A.png|700px|border]]
|}
* <span style="font-family:Courier New;">On se rend à la page descriptive de la version ProxmoxVE 5.2 qui affichera aussi la somme de contrôle du fichier, elle nous servira à vérifier l'intégrité du fichier ISO téléchargé.</span>
<br clear=all>

<!-- ########################################################################### -->

=== Téléchargement ===

Nous allons télécharger la version Proxmox VE 5.2 ISO Installer ''(proxmox-ve_5.2-1.iso)'' et sauvegarder l'ISO sur notre poste de travail.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-004-Proxmox-ISO-C.png|250px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-003-Proxmox-ISO-B.png|650px|border]]
|}
* <span style="font-family:Courier New;">''Download''.</span>
* <span style="font-family:Courier New;">''Enregistrer le fichier''<span style="color:red"> &nbsp;>&nbsp; </span>''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->


'''Vérification de la somme de contrôle'''

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Il est toujours préférable de vérifier la somme de contrôle d'un fichier avant de l’utiliser.

'''''Calcul de la somme de contrôle'''''

Nous utilisons le calculateur de 7-Zip pour le calcul de <u>SHA-256</u> car, DigestIT ne calcule que la somme de contrôle <u>SHA-1</u>.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-006-Proxmox-ISO-E.png|500px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-005-Proxmox-ISO-D.png|300px|border]]
|}
* <span style="font-family:Courier New;">''Clac'' ''(clic droit)'' sur le fichier iso<span style="color:red"> &nbsp;>&nbsp; </span>''CRC SHA''<span style="color:red"> &nbsp;>&nbsp; </span>''SHA-256''. ''(Peut prendre quelques secondes)''.</span>
* <span style="font-family:Courier New;">La somme de contrôle SHA-256 est affichée.</span>
<br clear=all>

<!-- ########################################################################### -->

'''''Comparaison'''''

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-007-Proxmox-ISO-F.png|650px|border]]
|}
* <span style="font-family:Courier New;">La somme de contrôle SHA-256 affichée sur la page de téléchargement.</span>

Les sommes de contrôle SHA-256 coïncident, le fichier peut être utilisé en toute sécurité.

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;On brûle l'ISO sur un CD/DVD qu'on insérera dans le lecteur de notre machine physique dédiée avant son amorçage.
<br clear=all>

<!-- ########################################################################### -->

= Création d'une machine virtuelle Proxmox =

=== Description ===

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Avec une installation VirtualBox, vous pourrez vérifier les modifications à l'environnement ProxmoxVE sur la machine virtuelle avant de les implémenter sur la machine physique ProxmoxVE.

[[Image:SME-101.11-008-Proxmox-Diag-VirtualBox.png|top|center|800px]]

=== Paramètres de la machine virtuelle ProxmoxVE ===

Dans VirtualBox, nous allons créer une machine virtuelle <span style="color:DarkMagenta">ProxmoxVE_16Go</span>.

* Mémoire: 4096 MB. Si nous avons seulement 4 GB de mémoire totale pour la station de travail et que nous allouons plus de 1998 MB, VirtualBox affichera un "Avertissement".
* Disque: 16 GB.

=== Création ===

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-011-Proxmox-VB-Creation-C.png|325px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-010-Proxmox-VB-Creation-B.png|325px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-009-Proxmox-VB-Creation-A.png|150px|border]]
|}
* <span style="font-family:Courier New;">Machine<span style="color:red"> &nbsp;>&nbsp; </span>Nouvelle.</span>
* <span style="font-family:Courier New;">- Nom: <span style="color:DarkMagenta">''ProxmoxVE_16Go''</span>.<br>- Type: ''Linux''.<br>- Version: ''Debian'' ''(64-bit)'',<br>- Taille de la mémoire: <span style="color:DarkMagenta">''4096''</span>.<br>- ''Créer un disque virtuel maintenant''.<br>- ''Créer''.</span>
* <span style="font-family:Courier New;">- Taille du fichier: <span style="color:DarkMagenta">''16,00''</span> Go.<br>- type de fichier de disque dur: ''VDI (Image Disque VirtualBox)''.<br>- Stockage sur disque physique: ''Dynamiquement alloué''.<br>- ''Créer''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-012-Proxmox-VB-Creation-D.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On est retourné à l’écran principal de VirtualBox et on voit notre nouvelle machine virtuelle.<br>- On sélectionne la machine virtuelle et on clique ''Configuration''.</span>
<br clear=all>

<!-- ########################################################################### -->
=== Configuration ===

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-014-Proxmox-VB-Creation-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-013-Proxmox-VB-Creation-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Général''<span style="color:red"> &nbsp;>&nbsp; </span>onglet ''Avancé''<span style="color:red"> &nbsp;>&nbsp; </span>Presse-papier partagé: ''Bidirectionnel''<span style="color:red"> &nbsp;>&nbsp; </span>Glisser-Déposer: ''Bidirectionnel'' ''(non obligatoire)''.</span>
* <span style="font-family:Courier New;">Onglet ''Description''<span style="color:red"> &nbsp;>&nbsp; </span>on entre une description assez détaillée et <u>surtout le mot de passe</u> car, une fois qu’on aura plusieurs MV, il sera facile d’oublier…</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-016-Proxmox-VB-Creation-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-015-Proxmox-VB-Creation-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">- ''Système''<span style="color:red"> &nbsp;>&nbsp; </span>onglet ''Processeur''<span style="color:red"> &nbsp;>&nbsp; </span>on peut choisir le nombre de processeurs à allouer à cette machine virtuelle.<br>- Cocher ''Activer PAE/NX''.</span>
* <span style="font-family:Courier New;">''Affichage''<span style="color:red"> &nbsp;>&nbsp; </span>onglet ''Écran''<span style="color:red"> &nbsp;>&nbsp; </span>Mémoire Vidéo: on ajuste à ''32 MB'' ou jusqu'au max ''128 MB''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-018-Proxmox-VB-Creation-J.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-017-Proxmox-VB-Creation-I.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Stockage''<span style="color:red"> &nbsp;>&nbsp; </span>''Vide''<span style="color:red"> &nbsp;>&nbsp; </span>cliquer l’icône du ''CD/DVD''<span style="color:red"> &nbsp;>&nbsp; </span>''Choisissez un fichier de disque optique virtuel...''</span>
* <span style="font-family:Courier New;">On se rend au répertoire où on a téléchargé l’ISO de Proxmox, on sélectionne le ''fichier ISO''<span style="color:red"> &nbsp;>&nbsp; </span>''Ouvrir''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-020-Proxmox-VB-Creation-L.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-019-Proxmox-VB-Creation-K.png|400px|border]]
|}
* <span style="font-family:Courier New;">Le fichier ISO de Proxmox est maintenant attaché au CD/DVD de la machine virtuelle. Lorsque la MV amorcera, elle lancera l’installation de Proxmox-5.0.</span>
* <span style="font-family:Courier New;">''Son''<span style="color:red"> &nbsp;>&nbsp; </span>on décoche ''Activer le son''. Un serveur n’a pas besoin de carte de son.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-021-Proxmox-VB-Creation-M.png|400px|border]]
|}
'''Carte 1 ''(eth0)'''
* <span style="font-family:Courier New;">- ''Réseau''<span style="color:red"> &nbsp;>&nbsp; </span>onglet ''Carte 1''.<br>- Mode d’accès réseau: ''Accès par pont''.<br>- Cliquer ''Avancé'' pour afficher plus de choix.<br>- Type de carte: choisir la ''carte physique'', celle reliée au connecteur RJ-45.<br>- Mode Promiscuité<ref name="ftn2">'''Mode Promiscuité''': En informatique, se réfère à une configuration de la carte réseau, qui permet à celle-ci d'accepter tous les paquets qu'elle reçoit, même si ceux-ci ne lui sont pas adressés. Chaque paquet réseau envoyé inclut l'adresse '''(adresse MAC)''' de la carte réseau destinataire. Quand une carte réseau voit passer un paquet, elle vérifie si elle est la destinataire du paquet; si elle ne l'est pas, elle ne tient pas compte du paquet; mais en Mode Promiscuité, elle traite le paquet dans tous les cas, permettant ainsi à l'ordinateur de pouvoir lire tous les paquets.

'''Référence''': [https://fr.wikipedia.org/wiki/Promiscuous_mode https://fr.wikipedia.org/wiki/Promiscuous_mode].</ref>: ''Autoriser les VMs''.<br>- [[Image:Icone-AstuceAPT.png|25px]]&nbsp;On note l’<span style="color:DarkMagenta">adresse MAC</span> de la carte réseau. C'est cette carte qui servira pour l'interface de gestion ProxmoxVE. Voir le paragraphe: [[#Configuration de l'interface de gestion ProxmoxVE]].</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-022-Proxmox-VB-Creation-N.png|400px|border]]
|}
'''Carte 2 ''(eth1)'''

* <span style="font-family:Courier New;">Cette carte serait utilisée si nous voulions créer une machine virtuelle SME-9.2 dans ProxmoxVE.<br>- ''Réseau''<span style="color:red"> &nbsp;>&nbsp; </span>onglet ''Carte 2''.<br>- On coche ''Activer la carte réseau''.<br>- Mode d’accès réseau: ''Accès par pont''.<br>- Nom: on choisit la <u>carte sans fil</u> de la station de travail.<br>- Cliquer ''Avancé'' pour afficher plus de choix.<br>- Mode Promiscuité: ''Autoriser les VMs''.<br>[[Image:Icone-AstuceAPT.png|25px]]&nbsp;On note l’<span style="color:DarkMagenta">adresse MAC</span> de la carte réseau, elle pourrait servir plus tard pour identifier cette carte.<br>[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Si la station de travail ne possède pas de réseau sans fil, on utilisera aussi la carte reliée au connecteur RJ-45 de la station de travail pour la Carte-2 de la machine virtuelle; l'adresse MAC de cette carte sera tout de même différente de celle de la Carte-1.</span>
<br clear=all>

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-024-Proxmox-VB-Creation-P.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-023-Proxmox-VB-Creation-O.png|400px|border]]
|}
'''Interface utilisateur'''

* <span style="font-family:Courier New;">- On coche ''Afficher en plein écran/mode intégré'' et ''Afficher en haut de l'écran''.<br>- On coche la case [[Image:SME-101.11-024-Proxmox-VB-Creation-P-1.png|middle|20px]] en bas à gauche.</span>
* <span style="font-family:Courier New;">[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;On déroule tous les menus et on coche toutes les options offertes.</span>
<br clear=all>

<!-- ########################################################################### -->

<center><span style="font-size:120%">'''La machine virtuelle est prête pour recevoir l'installation de ProxmoxVE.'''</span></center>


= Installation & configuration de ProxmoxVE =

La machine virtuelle est configurée, elle possède deux cartes réseau et le CD/DVD est attaché au lecteur optique. On peut amorcer cette MV pour lancer l'installation de ProxmoxVE.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-026-Proxmox-VB-Installation-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-025-Proxmox-VB-Installation-A-1.png|400px|border]]
|}
=== Installation ===

* <span style="font-family:Courier New;">- On amorce la machine virtuelle ProxmoxVE.<br>- ''Install ProxmoxVE''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">- Voir [[#Virtualisation matérielle KVM]].<br>- ''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-028-Proxmox-VB-Installation-D.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-027-Proxmox-VB-Installation-C.png|400px|border]]
|}
* <span style="font-family:Courier New;"><span style="font-family:Courier New;"><span style="color:red"><u>Si on accepte les termes de la licence</u></span>, on clique ''I agree''.</span></span>
* <span style="font-family:Courier New;">''Next''.</span>
<br clear=all>

<!-- ########################################################################### -->

<span id="Configuration de l'interface de gestion ProxmoxVE"></span>
'''Configuration de l'interface de gestion ProxmoxVE'''
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-030-Proxmox-VB-Installation-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-029-Proxmox-VB-Installation-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">On entre le ''pays''<span style="color:red"> &nbsp;>&nbsp; </span>on choisit un fuseau horaire ''(Montréal n'est pas là mais, dans l'écran de gestion, il apparaîtra dans les choix)''<span style="color:red"> &nbsp;>&nbsp; </span>''Next''.</span>
* <span style="font-family:Courier New;">- On entre un mot de passe pour <span style="color:red">root</span> ''(au moins 5 caractères)'' et on le confirme.<br>- On entre l'adresse courriel qui recevra les messages de Proxmox.<br>- ''Next''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-032-Proxmox-VB-Installation-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-031-Proxmox-VB-Installation-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">- Les différents paramètres sont affichés, on peut les modifier.<br>- ''Next''.<br>- Le système ProxmoxVE s'installe.</span>
* <span style="font-family:Courier New;">Le système ProxmoxVE continue l'installation.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-035-Proxmox-VB-Installation-K.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-034-Proxmox-VB-Installation-J.png|400px|border]]
|}
* <span style="font-family:Courier New;">L'installation est terminée.</span>
* <span style="font-family:Courier New;">''Menu VirtualBox''<span style="color:red"> &nbsp;>&nbsp; </span>''Périphérique''<span style="color:red"> &nbsp;>&nbsp; </span>''Lecteurs optiques''<span style="color:red"> &nbsp;>&nbsp; </span>''Éjecter le disque du lecteur virtuel''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-036-Proxmox-VB-Installation-LA.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-036-Proxmox-VB-Installation-L.png|400px|border]]
|}
'''Réamorçage'''

* <span style="font-family:Courier New;">''Éjection forcée''.</span>
* <span style="font-family:Courier New;">On réamorce le système en cliquant ''Reboot''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-037-Proxmox-VB-Installation-M.png|600px|border]]
|}
=== Adresse du gestionnaire ProxmoxVE ===

* <span style="font-family:Courier New;">Après le réamorçage, l'écran de login s'affiche.<br>[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;On voit l'adresse pour accéder au gestionnaire ProxmoxVE.</span>
<br clear=all>

=== Instantané VirtualBox ===

Ici, on prend un ''Instantané VirtualBox'' afin d'avoir une sauvegarde de l'installation originale: "<span style="color:DarkMagenta">Proxmox-5.2.1_Sauvegarde_originale_AAMMJJ-HHMM</span>".


<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-038-Proxmox-VB-Installation-N.png|600px|border]]
|}
<span id="Inspection de la machine Proxmox"></span>
=== Inspection de la machine Proxmox ===

* <span style="font-family:Courier New;">- On se logue à la console de la machine Proxmox.<br>- Nom d'usager: <span style="color:red">root</span>.<br>- Mot de passe: ''le mot de passe entré lors de l'installation''.</span>
<br clear=all>


=== Groupe de volumes ===

Le programme d'installation crée un Groupe de Volumes ''(VG)'' appelé "pve" et des Volumes Logiques ''(LV)'' supplémentaires appelés: "data", "root" et "swap".

# vgs

VG <nowiki>#PV #LV #SN Attr </nowiki> VSize VFree
<span style="color:red">pve</span> 1 3 0 wz--n- 15.75g 1.88g


'''Volume physique'''
# pvs

PV VG Fmt Attr PSize PFree
<span style="color:red">/dev/sda3</span> pve lvm2 a-- 15.75g 1.88g


'''Volumes logiques'''
# lvs

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
<span style="color:red">data</span> pve twi-a-tz-- 6.25g 0.00 0.01
<span style="color:red">root</span> pve -wi-ao---- 3.75g
<span style="color:red">swap</span> pve -wi-ao---- 1.88g


'''''Volume data'''''

Ce volume logique utilise "LVM-thin", et est utilisé pour stocker les images de machines virtuelles. LVM-thin est préférable pour cette tâche car, il offre un support efficace pour les instantanés.


<span style="color:blue"><span style="font-size:120%">'''‡'''</span></span> '''''LVM-thin'''''

Certains systèmes de fichiers dont Qemu qcow2 ''(Quick emulator - Quick Copy On Write)''<ref name="ftn3">[https://fr.wikipedia.org/wiki/Qcow2 https://fr.wikipedia.org/wiki/Qcow2]</ref> supportent LVM-thin. Avec LVM-thin activé, seuls les blocs que le système invité utilisera réellement seront écrits sur le disque de stockage.

Par exemple, vous créez une machine virtuelle avec un disque dur de 32 Go et, après l'installation du système d'exploitation invité, le système de fichiers de la machine virtuelle contient seulement 3 Go de données. Dans ce cas, seulement 3 Go sont écrits sur le disque, même si la MV voit un disque dur de 32 Go. De cette façon, LVM-thin vous permet de créer des disques qui sont plus grands que les blocs de stockage actuellement disponibles. Vous pouvez créer de grands disques pour vos machines virtuelles et quand le besoin se présente, ajouter plus de disques à votre stockage sans redimensionner les systèmes de fichiers des machines virtuelles.

Tous les types de stockage qui possèdent la fonctionnalité "Instantané" supportent également LVM-thin.


'''''Volume root'''''

Le volume logique root est formaté en <span style="color:red">ext4</span>, et contient le système d'exploitation.
# cat /etc/fstab

<nowiki>#<file system> </nowiki> <mount point> <type> <options> <dump> <pass>
/dev/pve/<span style="color:red">root</span> / <span style="color:red">ext4</span> errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0


'''Vérification de la connexion Internet'''
# ping -c3 google.com

PING google.com (172.217.2.110) 56(84) bytes of data.
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=1 ttl=57 time=16.1 ms
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=2 ttl=57 time=13.6 ms
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=3 ttl=57 time=13.8 ms

--- google.com ping statistics ---
<span style="color:red">3 packets transmitted, 3 received, 0% packet loss</span>, time 2005ms
rtt min/avg/max/mdev = 13.664/14.548/16.152/1.140 ms


'''Performance de l'hôte'''
# pveperf

CPU BOGOMIPS: <span style="color:red">13973.88</span>
REGEX/SECOND: 1393109
HD SIZE: 3.63 GB (/dev/mapper/pve-root)
BUFFERED READS: 121.54 MB/sec
AVERAGE SEEK TIME: 5.11 ms
FSYNCS/SECOND: 249.86
DNS EXT: 39.50 ms
DNS INT: 26.27 ms (micronator.org)


'''Souscription'''
# pvesubscription get

message: There is no subscription key
serverid: 95591739A670F03DEA88D32431E375B4
status: NotFound
url: http://www.proxmox.com/products/proxmox-ve/subscription-service-plans


=== Configuration ===

Pour savoir l'adresse du gestionnaire ProxmoxVE, voir le paragraphe [[#Inspection de la machine Proxmox]].

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Il faut absolument autoriser les <span style="color:red">témoins</span> et <span style="color:red">JavaScript</span> dans le navigateur sinon, l'écran de login ne sera pas présenté.


'''Adresse du gestionnaire ProxmoxVE'''

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Par la console du serveur, on peut toujours retrouver l'adresse IP du gestionnaire ProxmoxVE en affichant le fichier <code>/etc/network/interfaces</code>.
# cat /etc/network/interfaces

auto lo
iface lo inet loopback

iface enp0s3 inet manual

auto vmbr0
iface vmbr0 inet static
<span style="color:red">address 192.168.1.44</span>
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports enp0s3
bridge_stp off
bridge_fd 0


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-040-Proxmox-VB-Installation-P.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-039-Proxmox-VB-Installation-O.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On pointe un navigateur vers: <span>[https://192.168.1.44:8006/ https://192.168.1.44:8006/]</span>.<br>- ''Avancé''.</span>
* <span style="font-family:Courier New;">Ajouter une exception...<br>[[Image:Icone-AstuceAPT.png|25px]]&nbsp;Si vous ne pouvez accéder à l'adresse du gestionnaire, voir le chapitre [[#Truc et astuces]].</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-042-Proxmox-VB-Installation-R.png|400px|border]]<br>


[[Image:SME-101.11-043-Proxmox-VB-Installation-S.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-041-Proxmox-VB-Installation-Q.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Confirmer l'exception de sécurité''.</span>
* <span style="font-family:Courier New;">Language: ''French'' ''(l'écran va se rafraîchir)''.</span>
* <span style="font-family:Courier New;">- Utilisateur: <span style="color:red">''root''</span>.<br>- Mot de passe: ''celui donné lors de l'installation''.<br>- ''Login''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-045-Proxmox-VB-Installation-U.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-044-Proxmox-VB-Installation-T.png|400px|border]]
|}
* <span style="font-family:Courier New;">On peut visiter le site ''[http://www.proxmox.com/ www.proxmox.com]'' pour plus d'informations sur les options de contrat de service.</span>
* <span style="font-family:Courier New;">Sur le site de Proxmox: [https://www.proxmox.com/en/proxmox-ve/pricing https://www.proxmox.com/en/proxmox-ve/pricing], les différents plans de souscription sont affichés.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-046-Proxmox-VB-Installation-V.png|600px|border]]
|}
* <span style="font-family:Courier New;">On retourne à l'écran du gestionnaire<span style="color:red"> &nbsp;>&nbsp; </span>OK.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-048-Proxmox-VB-Installation-X.png|400px|border]]<br>


[[Image:SME-101.11-049-Proxmox-VB-Installation-Y.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-047-Proxmox-VB-Installation-W-1.png|400px|border]]
|}
'''Fuseau horaire'''

Maintenant, nous pouvons ajuster le fuseau horaire à "America/Montreal".

* <span style="font-family:Courier New;">''Vue Stockage''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>''Système''<span style="color:red"> &nbsp;>&nbsp; </span>''Temps''<span style="color:red"> &nbsp;>&nbsp; </span>''Éditer''.</span>
* <span style="font-family:Courier New;">Choisir ''America/Montreal''<span style="color:red"> &nbsp;>&nbsp; </span>''OK''.</span>
* <span style="font-family:Courier New;">Au retour, on voit que la "Zone de temps" est bien America/Montreal.</span>
<br clear=all>

<!-- ########################################################################### -->
=== Mise à jour ===

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-051-Proxmox-VB-Installation-AA.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-050-Proxmox-VB-Installation-Z-1.png|400px|border]]
|}
Cette mise à jour s'appliquera au système complet.

* <span style="font-family:Courier New;">''Vue Serveur''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>''Système''<span style="color:red"> &nbsp;>&nbsp; </span>''Mise à jour''.</span>
* <span style="font-family:Courier New;">''Rafraîchir''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-053-Proxmox-VB-Installation-AC.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-052-Proxmox-VB-Installation-AB.png|400px|border]]
|}
* <span style="font-family:Courier New;">''OK''.</span>
* <span style="font-family:Courier New;">Après la recherche de mises à jour dans les référentiels, on ferme la fenêtre.<br>Certains fichiers n'ont pu être téléchargés.<br>L'erreur de téléchargement vient du fait que nous n'avons aucun plan de souscription à Proxmox.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-055-Proxmox-VB-Installation-AE.png|500px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-054-Proxmox-VB-Installation-AD.png|300px|border]]
|}
* <span style="font-family:Courier New;">Le chargement du cache des dépôts de référentiels locaux s'effectue.</span>
* <span style="font-family:Courier New;">''Appliquer les mises à jour''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-058-Proxmox-VB-Installation-AH.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em ;margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-057-Proxmox-VB-Installation-AG.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-056-Proxmox-VB-Installation-AF.png|275px|border]]
|}
* <span style="font-family:Courier New;">Pour continuer, entrer ''Y''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">Le système est à date<span style="color:red"> &nbsp;>&nbsp; </span>''exit''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]'' pour quitter.</span>
* <span style="font-family:Courier New;">On peut fermer cette fenêtre, la mise à jour est terminée.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-060-Proxmox-VB-Installation-AJ.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-059-Proxmox-VB-Installation-AI.png|400px|border]]
|}
* <span style="font-family:Courier New;">À l'écran du gestionnaire<span style="color:red"> &nbsp;>&nbsp; </span>''Rafraîchir''.</span>
* <span style="font-family:Courier New;">''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-062-Proxmox-VB-Installation-AL.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-061-Proxmox-VB-Installation-AK.png|400px|border]]
|}
* <span style="font-family:Courier New;">On peut fermer l'écran surgissant.</span>
* <span style="font-family:Courier New;">Un rechargement du cache s'effectue.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-063-Proxmox-VB-Installation-AM.png|600px|border]]
|}
* <span style="font-family:Courier New;">Il n'y a plus de mises à jour de disponibles.</span>
<br clear=all>

<!-- ########################################################################### -->

=== Connexion PuTTY ===

On lance PuTTY et on crée une nouvelle session pour se connecter en SSH au système ProxmoxVE.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-065-Proxmox-VB-Installation-AO.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-064-Proxmox-VB-Installation-AN.png|400px|border]]
|}
* <span style="font-family:Courier New;">On entre les informations demandées, port <span style="color:red">22</span><span style="color:red"> &nbsp;>&nbsp; </span>''Save''<span style="color:red"> &nbsp;>&nbsp; </span>''Open''.</span>
* <span style="font-family:Courier New;">''Oui'' pour accepter la clé RSA2.</span>
<br clear=all>

<!-- ########################################################################### -->

On utilise l'usager <span style="color:red">root</span> et on entre le ''mot de passe donné lors de l'installation''.

login as: <span style="color:red">root</span>
root@192.168.1.44's password: <span style="color:red">mot-de-passe</span>

Linux pve 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


=== Mise en garde ===

La création de machines virtuelles dans ProxmoxVE roulant sous VirtualBox <u>est excessivement lente</u> car il existe deux niveaux de virtualisation: un pour VirtualBox et un autre pour ProxmoxVE.

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Nous recommandons cet environnement uniquement pour la vérification des changements de configuration de ProxmoxVE.


<span id="Virtualisation matérielle KVM"></span>
=== Virtualisation matérielle KVM ===

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Si vous êtes sous VirtualBox et que vous créez une machine virtuelle, il faut, après sa création, désactiver ''(mettre à <span style="color:red">NON</span>)'' la Virtualisation matérielle KVM de cette machine.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-067-Proxmox-VB-Installation-AQ.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-066-Proxmox-VB-Installation-AP.png|400px|border]]
|}
* <span style="font-family:Courier New;">Vue serveur<span style="color:red"> &nbsp;>&nbsp; </span>Datacenter<span style="color:red"> &nbsp;>&nbsp; </span>pve<span style="color:red"> &nbsp;>&nbsp; </span>sélectionner la machine virtuelle<span style="color:red"> &nbsp;>&nbsp; </span>Options<span style="color:red"> &nbsp;>&nbsp; </span>Virtualisation matérielle KVM<span style="color:red"> &nbsp;>&nbsp; </span>''Éditer''<span style="color:red"> &nbsp;>&nbsp; </span>décocher ''Activé:''<span style="color:red"> &nbsp;>&nbsp; </span>OK.</span>
* <span style="font-family:Courier New;">Au retour, Virtualisation matérielle KVM est à "<span style="color:red">Non</span>"</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-140-Proxmox-VM-SME-O.png|700px|border]]
|}
[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Si vous ne désactivez pas cette option, la machine virtuelle ne démarrera pas.

* <span style="font-family:Courier New;">Pour afficher le message d'erreur, cliquer ''Erreur: KVM virtualisation co...''</span>
<br clear=all>
<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-069-Proxmox-VB-Installation-AS.png|700px|border]]
|}
* <span style="font-family:Courier New;">Le message d'erreur s'affiche.</span>
<br clear=all>

<!-- ########################################################################### -->
= Serveur physique dédié à ProxmoxVE =
<br>

[[Image:SME-101.11-070-Proxmox-Physique-Diag-1.png|top|center|800px]]

=== Installation ===

On insère le CD/DVD de Proxmox-5.2.1 dans le lecteur du serveur physique et on amorce.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-072-Proxmox-Physique-Inst-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-071-Proxmox-Physique-Inst-A.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Install ProxmoxVE''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;"><u><span style="color:red">Si on accepte les termes de la licence</span></u>, on clique ''I agree''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-074-Proxmox-Physique-Inst-D.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-073-Proxmox-Physique-Inst-C.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Next''.</span>
* <span style="font-family:Courier New;">On entre le ''pays''<span style="color:red"> &nbsp;>&nbsp; </span>on choisit un fuseau horaire ''(Montréal n'est pas là mais, dans l'écran de gestion, il apparaîtra dans les choix)''<span style="color:red"> &nbsp;>&nbsp; </span>''Next''.</span>
<br clear=all>

<!-- ########################################################################### -->

'''Configuration de l'interface de gestion ProxmoxVE'''

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-076-Proxmox-Physique-Inst-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-075-Proxmox-Physique-Inst-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On entre un mot de passe robuste pour <span style="color:red">root</span> ''(au moins 5 caractères)'' et on le ''confirme''.<br>- On entre l'''adresse'' courriel qui recevra les messages de Proxmox.<br>- ''Next''.</span>
* <span style="font-family:Courier New;">- Les différents paramètres sont affichés, on peut les modifier.<br>- ''Next''.<br>- Le système ProxmoxVE s'installe.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-079-Proxmox-Physique-Inst-I.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-077-Proxmox-Physique-Inst-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">Le système ProxmoxVE continue l'installation.</span>

'''Réamorçage'''

* <span style="font-family:Courier New;">- L'installation est terminée.<br>- On réamorce le système en cliquant ''Reboot''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-080-Proxmox-Physique-Inst-J.png|700px|border]]
|}
=== Adresse du gestionnaire ProxmoxVE ===

* <span style="font-family:Courier New;">- Après le réamorçage, l'écran de login s'affiche.<br>- [[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;<span id="L'adresse pour accéder au gestionnaire ProxmoxVE"></span>L'adresse pour accéder au gestionnaire ProxmoxVE s'affiche.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-081-Proxmox-Physique-Inst-K.png|700px|border]]
|}
=== Inspection de la machine Proxmox ===

* <span style="font-family:Courier New;">- On se logue à la console de la machine Proxmox.<br>- Nom d'usager: <span style="color:red">root</span>.<br>- Mot de passe: ''le mot de passe entré lors de l'installation''.</span>
<br clear=all>

<!-- ########################################################################### -->
=== Stockage ===

Le programme d'installation crée un Groupe de Volumes ''(VG)'' appelé pve et des Volumes Logiques ''(LV)'' supplémentaires appelés: data, root et swap.

<center><span style="font-size:120%">'''Basic Concepts of Proxmox Virtual Environment'''</span></center>

[[Image:SME-101.11-082-Proxmox-Physique-Stockage-A.png|top|center|700px|border]]
<center>[https://www.packtpub.com/books/content/basic-concepts-proxmox-virtual-environment https://www.packtpub.com/books/content/basic-concepts-proxmox-virtual-environment]</center>

'''Groupe de volumes'''
# vgs

VG <nowiki>#PV #LV #SN Attr </nowiki> VSize VFree
<span style="color:red">pve</span> 1 11 0 wz--n- <span style="color:red">465.51g</span> 15.99g


'''Volume physique'''
# pvs

PV VG Fmt Attr PSize PFree
<span style="color:red">/dev/sda3</span> pve lvm2 a-- <span style="color:red">465.51g</span> 15.99g


'''Volumes logiques'''
# lvs

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
<span style="color:red">data</span> pve twi-aotz-- <span style="color:red">339.58g</span> 3.81 0.27
<span style="color:red">root</span> pve -wi-ao---- 96.00g
<span style="color:red">swap</span> pve -wi-ao---- 7.00g


'''''Volume data'''''

Ce volume logique utilise "LVM-thin", et est utilisé pour stocker les images de machines virtuelles. LVM-thin est préférable pour cette tâche car, il offre un support efficace pour les instantanés.


<span style="color:blue"><span style="font-size:120%">'''‡'''</span></span> '''''LVM-thin'''''

Certains systèmes de fichiers dont Qemu qcow2 ''(<u>Q</u>uick <u>emu</u>lator - <u>Q</u>uick <u>C</u>opy <u>O</u>n <u>W</u>rite)''<ref name="ftn4">[https://fr.wikipedia.org/wiki/Qcow2 https://fr.wikipedia.org/wiki/Qcow2]</ref> supportent LVM-thin. Avec LVM-thin activé, seuls les blocs que le système invité utilisera réellement seront écrits sur le disque de stockage.

Par exemple, vous créez une machine virtuelle avec un disque dur de 32 Go et, après l'installation du système d'exploitation invité, le système de fichiers de la machine virtuelle contient seulement 3 Go de données. Dans ce cas, seulement 3 Go sont écrits sur le disque, même si la MV voit un disque dur de 32 Go. De cette façon, LVM-thin vous permet de créer des disques qui sont plus grands que les blocs de stockage actuellement disponibles. Vous pouvez créer de grands disques pour vos machines virtuelles et quand le besoin se présente, ajouter plus de disques à votre stockage sans redimensionner les systèmes de fichiers des machines virtuelles.

Tous les types de stockage qui possèdent la fonctionnalité "Instantané" supportent également LVM-thin.


'''''Volume root'''''

Le volume logique root est formaté en <span style="color:red">ext4</span>, et contient le système d'exploitation.

# cat /etc/fstab

<nowiki># <file system> </nowiki> <mount point> <type> <options> <dump> <pass>
/dev/pve/<span style="color:red">root</span> / <span style="color:red">ext4</span> errors=remount-ro 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0


=== Communication ===

'''Dispositifs réseau'''

# ip link show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: <span style="color:red">enp2s0</span>: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP mode DEFAULT group default qlen 1000
link/ether ec:08:6b:04:bf:7e brd ff:ff:ff:ff:ff:ff
3: <span style="color:red">eno1</span>: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 00:26:b9:7a:8e:dc brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether ec:08:6b:04:bf:7e brd ff:ff:ff:ff:ff:ff


''Référence'': [https://pve.proxmox.com/wiki/Network_Configuration https://pve.proxmox.com/wiki/Network_Configuration].

'''Noms des interfaces réseau Systemd'''

Systemd utilise le préfixe de deux caractères '''en''' pour les périphériques réseau "Éthernet". Les caractères suivants dépendent du pilote de périphérique et de quel modèle il correspond.

* <span style="font-family:Courier New;">o<index>[n<phys_port_name>|d<dev_port>] — devices on board.</span>
* <span style="font-family:Courier New;">s<slot>[f<function>][n<phys_port_name>|d<dev_port>] — device by hotplug id.</span>
* <span style="font-family:Courier New;">[P<domain>]p<bus>s<slot>[f<function>][n<phys_port_name>|d<dev_port>] — devices by bus id.</span>
* <span style="font-family:Courier New;">x<MAC> — device by MAC address.</span>

Les modèles les plus courants sont:

'''enp2s0''' → est la carte réseau sur '''<u>p</u>'''cibus '''<u>2</u>''' '''<u>s</u>'''lot '''<u>0</u>'''.

'''eno1''' → est la première carte réseau embarqué.

Affichage des cartes réseau de notre serveur ProxmoxVE.
# lspci<span style="color:red"> &nbsp;>&nbsp; </span>grep Ethernet

<span style="color:red">02</span>:00.0 Ethernet controller: <span style="color:red">Realtek Semiconductor Co., Ltd.</span> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller ''(rev 06)''
<span style="color:red">04</span>:00.0 Ethernet controller: <span style="color:red">Broadcom Limited</span> NetXtreme BCM5722 Gigabit Ethernet PCI Express


# cat /proc/net/dev

Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed

<span style="color:DarkGreen">eno1</span>: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
<span style="color:DarkMagenta">vmbr0</span>: 249837 1712 0 0 0 0 0 0 59650 412 0 0 0 0 0 0
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
<span style="color:red">enp2s0</span>: 273865 1713 0 1 0 0 0 1118 59650 412 0 0 0 0 0 0


'''Adresses'''
root@pve:~# ip address show

1: <span style="color:red">lo</span>: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state <span style="color:red">UNKNOWN</span> group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet <span style="color:red">127.0.0.1</span>/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: <span style="color:red">enp2s0</span>: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state <span style="color:red">UP</span> group default qlen 1000
link/ether <span style="color:DarkMagenta">ec:08:6b:04:bf:7e</span> brd ff:ff:ff:ff:ff:ff
3: <span style="color:blue">eno1</span>: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state <span style="color:blue">DOWN</span> group default qlen 1000
link/ether <span style="color:blue">00:26:b9:7a:8e:dc</span> brd ff:ff:ff:ff:ff:ff
4: <span style="color:green">vmbr0</span>: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether <span style="color:DarkMagenta">ec:08:6b:04:bf:7e</span> brd ff:ff:ff:ff:ff:ff
inet <span style="color:DarkGreen">192.168.1.52</span>/24 brd 192.168.1.255 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::ee08:6bff:fe04:bf7e/64 scope link
valid_lft forever preferred_lft forever

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Le dispositif <span style="color:green">vmbr0</span> prend l'adresse MAC ''(<span style="color:DarkMagenta">ec:08:6b:04:bf:7e</span>)'' du dispositif <span style="color:red">enp2s0</span>.


'''Vérification de la connexion Internet'''
# ping -c3 google.com

PING google.com (172.217.2.110) 56(84) bytes of data.
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=1 ttl=57 time=16.1 ms
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=2 ttl=57 time=13.6 ms
64 bytes from yyz10s05-in-f14.1e100.net (172.217.2.110): icmp_seq=3 ttl=57 time=13.8 ms

--- google.com ping statistics ---
<span style="color:red">3 packets transmitted, 3 received, 0% packet loss</span>, time 2005ms
rtt min/avg/max/mdev = 13.664/14.548/16.152/1.140 ms


=== Performance de l'hôte ===
# pveperf

CPU BOGOMIPS: <span style="color:red">40431.12</span>
REGEX/SECOND: 1199608
HD SIZE: 93.99 GB (/dev/mapper/pve-root)
BUFFERED READS: 75.32 MB/sec
AVERAGE SEEK TIME: 9.54 ms
FSYNCS/SECOND: 41.08
DNS EXT: 40.21 ms
DNS INT: 24.97 ms (micronator.org)


'''Souscription'''
# pvesubscription get

message: There is no subscription key
serverid: 95591739A670F03DEA88D32431E185B4
status: NotFound
url: <nowiki>http://www.proxmox.com/products/proxmox-ve/subscription-service-plans</nowiki>


<span id="Adresse du gestionnaire ProxmoxVE"></span>
=== Adresse du gestionnaire ProxmoxVE ===

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Par la console du serveur, on peut toujours retrouver l'adresse IP du gestionnaire ProxmoxVE en affichant le fichier <code>/etc/network/interfaces</code>.

# cat /etc/network/interfaces

auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
address <span style="color:red">192.168.1.52</span>
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports enp2s0
bridge_stp off
bridge_fd 0


= Interface Web =

=== Adresse et navigateur ===

Pour savoir l'adresse du gestionnaire ProxmoxVE, voir le paragraphe [[#L'adresse pour accéder au gestionnaire ProxmoxVE]] ou utiliser la commande <code>cat /etc/network/interfaces</code> du paragraphe précédent.

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Si vous ne pouvez accéder à l'adresse du gestionnaire, voir le chapitre [[#Truc et astuces]].


=== Connexion ===

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Il faut absolument autoriser les <span style="color:red">témoins</span> et <span style="color:red">JavaScript</span> dans le navigateur sinon, l'écran de login ne sera pas présenté.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-084-Proxmox-Web-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-083-Proxmox-Web-A.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On pointe un navigateur vers: [https://192.168.1.52:8006/ http<span style="color:red"><u>s</u></span>://<span style="color:DarkMagenta">192.168.1.52</span><span style="color:red"><u>:8006</u></span>].<br>- ''Avancé''.</span>
* <span style="font-family:Courier New;">C'est une nouvelle installation, il faut ''Ajouter une exception...''</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-086-Proxmox-Web-D.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-085-Proxmox-Web-C.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Confirmer l'exception de sécurité''.</span>
* <span style="font-family:Courier New;">Language: ''French'' ''(l'écran va se rafraîchir)''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-088-Proxmox-Web-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-087-Proxmox-Web-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">- Utilisateur: <span style="color:red">root</span>.<br>- Mot de passe: ''celui donné lors de l'installation''.<br>- ''Login''.</span>
* <span style="font-family:Courier New;">On peut visiter le site [http://www.proxmox.com/ www.proxmox.com] pour plus d'informations sur les options de contrat de service.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-090-Proxmox-Web-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-089-Proxmox-Web-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">Sur le site de Proxmox [https://www.proxmox.com/en/proxmox-ve/pricing https://www.proxmox.com/en/proxmox-ve/pricing], les différents plans de souscription sont affichés.</span>
* <span style="font-family:Courier New;">''OK'' pour accéder à l'écran du gestionnaire.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-092-Proxmox-Web-J.png|400px|border]]<br>


[[Image:SME-101.11-093-Proxmox-Web-K.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-091-Proxmox-Web-I-1.png|400px|border]]
|}
=== Fuseau horaire ===

Maintenant, nous pouvons ajuster le fuseau horaire à "America/Montreal".

* <span style="font-family:Courier New;">''Vue Stockage''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>''Système''<span style="color:red"> &nbsp;>&nbsp; </span>''Temps''<span style="color:red"> &nbsp;>&nbsp; </span>''Éditer''.</span>
* <span style="font-family:Courier New;">Choisir ''America/Montreal''<span style="color:red"> &nbsp;>&nbsp; </span>''OK''.</span>
* <span style="font-family:Courier New;">Au retour, on voit que la Zone de temps est bien "America/Montreal".</span>
<br clear=all>

<!-- ########################################################################### -->
=== Mise à jour ===

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-095-Proxmox-Web-M.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-094-Proxmox-Web-L-1.png|400px|border]]
|}
Cette mise à jour s'appliquera au système complet.

* <span style="font-family:Courier New;">''Vue Serveur''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>''Système''<span style="color:red"> &nbsp;>&nbsp; </span>''Mise à jour''.</span>
* <span style="font-family:Courier New;">''Rafraîchir''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-097-Proxmox-Web-O.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-096-Proxmox-Web-N.png|400px|border]]
|}
* <span style="font-family:Courier New;">''OK''.</span>
* <span style="font-family:Courier New;">Après la recherche de mises à jour dans les référentiels, ''on ferme la fenêtre''.<br>Certains fichiers n'ont pu être téléchargés.<br>[[Image:Icone-NoteAPT.png|25px]]&nbsp;L'erreur de téléchargement vient du fait que nous n'avons aucun plan de souscription à Proxmox.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-099-Proxmox-Web-Q.png|500px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-098-Proxmox-Web-P.png|300px|border]]
|}
* <span style="font-family:Courier New;">Le chargement du cache des dépôts de référentiels locaux s'effectue.</span>
* <span style="font-family:Courier New;">''Appliquer les mises à jour''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-102-Proxmox-Web-T.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-101-Proxmox-Web-S.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-100-Proxmox-Web-R.png|275px|border]]
|}
* <span style="font-family:Courier New;">Pour continuer, entrer ''Y''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">Le système est à date<span style="color:red"> &nbsp;>&nbsp; </span>''exit''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée''] pour quitter.</span>
* <span style="font-family:Courier New;">On peut ''fermer cette fenêtre'', la mise à jour est terminée.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-104-Proxmox-Web-V.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-103-Proxmox-Web-U.png|400px|border]]
|}
* <span style="font-family:Courier New;">À l'écran du gestionnaire<span style="color:red"> &nbsp;>&nbsp; </span>''Rafraîchir''.</span>
* <span style="font-family:Courier New;">''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-107-Proxmox-Web-Y.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-106-Proxmox-Web-X.png|275px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-105-Proxmox-Web-W.png|275px|border]]
|}
* <span style="font-family:Courier New;">On peut ''fermer l'écran surgissant''.</span>
* <span style="font-family:Courier New;">Un rechargement du cache s'effectue.
</span>
* <span style="font-family:Courier New;">Il n'y a plus de mises à jour de disponibles.</span>
<br clear=all>
<!-- ########################################################################### -->
=== Cartes réseau ===

On peut examiner les cartes réseau: ''Vue Serveur''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>''Réseau''.

Les cartes ont été détectées correctement.

[[Image:SME-101.11-108-Proxmox-Reseau-A-1.png|top|center|900px|border]]


=== Connexion PuTTY ===

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-110-Proxmox-PuTTY-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-109-Proxmox-PuTTY-A.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On ajoute une nouvelle entrée, port <span style="color:red">22</span><span style="color:red"> &nbsp;>&nbsp; </span>''Save''.<br>- On sélectionne la nouvelle entrée de ProxmoxVE<span style="color:red"> &nbsp;>&nbsp; </span>''Open''.</span>
* <span style="font-family:Courier New;">''Oui'' pour accepter la clé RSA2.</span>
<br clear=all>

<!-- ########################################################################### -->


On se logue au nouveau serveur ProxmoxVE.

login as: <span style="color:red">root</span>
root@192.168.1.52's password: <span style="color:red">mot-de-passe-de-root</span>
Linux pve 4.15.17-1-pve #1 SMP PVE 4.15.17-9 (Wed, 9 May 2018 13:31:43 +0200) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
indivi dual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


Affichage des cartes réseau
# lspci<span style="color:red"> &nbsp;>&nbsp; </span>grep Ethernet

02:00.0 Ethernet controller: <span style="color:red">Realtek Semiconductor Co., Ltd.</span> RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
04:00.0 Ethernet controller: <span style="color:red">Broadcom Limited</span> NetXtreme BCM5722 Gigabit Ethernet PCI Express


= Création d'une machine virtuelleSME-9.2 =

=== Prérequis ===

'''Fichier ISO pour le Serveur SME'''

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-111-Proxmox-VM-A.png|600px|border]]
|}
* <span style="font-family:Courier New;">On télécharge, sur notre station de travail, les fichiers <code>smeserver-9.2-x86_64.iso</code> et sa somme de contrôle <code>SHA‑1</code> depuis l'URL: [http://mirror.canada.pialasse.com/releases/9.2/iso/x86_64/ http://mirror.canada.pialasse.com/releases/9.2/iso/x86_64/].</span>
<br clear=all>

<!-- ########################################################################### -->

'''Vérification de la somme de contrôle de l'ISO SME'''

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Il est préférable de vérifier la somme de contrôle du fichier avant de l’utiliser.

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-113-Proxmox-VM-C.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-112-Proxmox-VM-B.png|400px|border]]
|}
* <span style="font-family:Courier New;">Pour calculer la somme de contrôle: ''clac'' ''(clic droit)'' sur le fichier iso dans le répertoire de la station de travail<span style="color:red"> &nbsp;>&nbsp; </span>''DigestIT 2004''<span style="color:red"> &nbsp;>&nbsp; </span>''Calculate SHA-1 Hash''. ''(Peut prendre un certain temps.)'</span>
* <span style="font-family:Courier New;">La somme de contrôle SHA-1 est calculée et affichée.</span>
<br clear=all>

<!-- ########################################################################### -->

On compare avec la somme de contrôle contenu dans le fichier <code>smeserver-9.2-x86_64.iso.sha1sum</code>.

cb3d5e499d5b7798e0b58f0c4ecd21b64484cdec smeserver-9.2-x86_64.iso

Les sommes de contrôle SHA-1 coïncident, le fichier ISO est valide.


'''Téléversement du fichier ISO dans l'environnement Proxmox'''
<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-114-Proxmox-VM-D-1.png|815px|border]]
|}
* <span style="font-family:Courier New;">''Vue Serveur''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''pve''<span style="color:red"> &nbsp;>&nbsp; </span>local ''(pve)''<span style="color:red"> &nbsp;>&nbsp; </span>''Contenu''<span style="color:red"> &nbsp;>&nbsp; </span>''Upload''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-116-Proxmox-VM-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-115-Proxmox-VM-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Choisir fichier''</span>
* <span style="font-family:Courier New;">Sélectionner le fichier ISO<span style="color:red"> &nbsp;>&nbsp; </span>''Ouvrir''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-118-Proxmox-VM-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-117-Proxmox-VM-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Upload''.</span>
* <span style="font-family:Courier New;">Le fichier ISO se téléverse ''(peut prendre un certain temps)''.</span>
<br clear=all>

<!-- ########################################################################### -->

Le fichier ISO pour l'installation d'un Serveur SME-9.2 est maintenant dans l'environnement Proxmox.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-119-Proxmox-VM-I.png|815px|border]]
|}
* <span style="font-family:Courier New;">[[Image:Icone-AstuceAPT.png|25px]]&nbsp;Si la taille du fichier indique une grandeur moindre, simplement faire un rafraîchissement de la page du fureteur.</span>
<br clear=all>


'''''Vérification par Proxmox'''''

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-120-Proxmox-VM-J.png|815px|border]]
|}
* <span style="font-family:Courier New;">- ''Vue par pools''<span style="color:red"> &nbsp;>&nbsp; </span>''Datacenter''<span style="color:red"> &nbsp;>&nbsp; </span>''Stockage''.<br>- On voit que le fichier ISO est emmagasiné dans le répertoire <code>/var/lib/vz</code>.</span>
<br clear=all>


'''''Vérification par WinSCP'''''

On crée une nouvelle connexion dans WinSCP pour accéder à ProxmoxVE.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-122-Proxmox-VM-L.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-121-Proxmox-VM-K.png|400px|border]]
|}
* <span style="font-family:Courier New;">On entre les informations demandées<span style="color:red"> &nbsp;>&nbsp; </span>''Sauver...''</span>
* <span style="font-family:Courier New;">On entre un ''nom pour cette connexion''<span style="color:red"> &nbsp;>&nbsp; </span>''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-124-Proxmox-VM-N.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-123-Proxmox-VM-M.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Connexion''<span style="color:red"> &nbsp;>&nbsp; </span>on accepte le certificat.</span>
* <span style="font-family:Courier New;">On entre le mot de passe de <span style="color:red">root</span><span style="color:red"> &nbsp;>&nbsp; </span>''OK''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-125-Proxmox-VM-O-1.png|815px|border]]
|}
* <span style="font-family:Courier New;">- On se rend dans le répertoire <code>/var/lib/vz/template/iso</code>.<br>- Le fichier ISO pour le Serveur SME-9.2 s'y trouve.<br>- [[Image:Icone-NoteAPT.png|25px]]&nbsp;Nous avons aussi téléchargé les fichiers ISO pour SME-10A3 et CentOS-7.5 pour faire des tests/développements pour la future version SME-10.
</span>
<br clear=all>

<!-- ########################################################################### -->

=== Création de la machine virtuelle SME-9.2 ===

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-126-Proxmox-VM-SME-A.png|815px|border]]
|}
* <span style="font-family:Courier New;">On clique ''Créer VM''.</span>
<br clear=all>

<!-- ########################################################################### -->

'''Paramètres de la machine virtuelle'''

* Nom de la machine virtuelle: SME-9.2-8GB.
* Nom du serveur virtuel: sme-92.
* Le nom complet FQDN: sme-92.<span style="color:DarkMagenta">micronator-101.com</span>.
* Mémoire: 4096 MB.
* Disque: 8 GB.
* ''(réseau local)'': <span style="color:DarkMagenta">192.168.2.11</span> / Masque: 255.255.255.0.
* IP ''(réseau externe)'': <span style="color:DarkMagenta">192.168.1.11</span> / Masque: 255.255.255.0.
* Passerelle: <span style="color:DarkMagenta">192.168.1.1</span>.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-128-Proxmox-VM-SME-C.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-127-Proxmox-VM-SME-B.png|400px|border]]
|}
<span id="Nom du serveur et Fichier ISO"></span>
'''Nom du serveur et Fichier ISO'''

* <span style="font-family:Courier New;">Onglet ''Général''<span style="color:red"> &nbsp;>&nbsp; </span>''sme-9.2-8G''.</span>
* <span style="font-family:Courier New;">Onglet ''OS''<span style="color:red"> &nbsp;>&nbsp; </span>on sélectionne ''l'ISO SME-9.2''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-129-Proxmox-VM-SME-D.png|350px|border]]
|}
* <span style="font-family:Courier New;">Si le nombre de CPU alloué à la machine virtuelle ''(ex: 4)'' dépasse le nombre de CPU de l'hôte ''(ex: 2)'', vous recevrez l'erreur ci-contre.<br><br>[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Dans notre cas, nous avons 4 coeurs avec 2 CPU/coeur = 8 CPU.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-131-Proxmox-VM-SME-F-1.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-130-Proxmox-VM-SME-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">- Onglet ''Disque Dur''<span style="color:red"> &nbsp;>&nbsp; </span>8 Go.<br>- "VirtIO<ref name="ftn5">'''VIRTIO''' est une abréviation pour '''Virtual Input-Output''', que l'on pourrait traduire en français par '''Entrées-Sorties Virtuelles'''.

'''Virtio''' est une interface de programmation du Noyau Linux utile aux machines virtuelles.

'''''Problème'''''

Les machines virtuelles, pour des raisons de performance, tendent de plus en plus à devenir des hyperviseurs afin d'accélérer le transit des données entre l'hôte et les invités en présentant au système d'exploitation invité un matériel virtuel nécessitant un pilote spécifique. Ceci contrairement aux machines virtuelles classiques qui simulent la présence d'un matériel existant réellement, généralement répandu, pour lequel le système invité a déjà un pilote.

La multiplication des hyperviseurs a entraîné une multiplication dans les mêmes proportions des pilotes nécessaires, des pilotes qui, sous Linux, devaient être adaptés à chaque version du noyau. Virtio tente de répondre à ce problème en mettant en œuvre directement dans la branche officielle du noyau Linux une interface de programmation dédiée aux pilotes de périphériques de machines virtuelles.

'''''Fonctionnement'''''

L'interface de programmation de virtio est très minimaliste, toutes les communications entre l'hyperviseur et le noyau invité se font au travers d'une file d'attente '''FIFO1'''. Des pilotes, eux aussi présents dans le noyau, se basent sur cette interface : il existe à l'heure actuelle des pilotes pour une carte réseau et un contrôleur de disques, utilisés par '''KVM2'''. Les développeurs de '''KVM''' ont également écrit un pilote réseau pour Microsoft Windows XP et 2000 mettant en œuvre '''virtio'''.

'''''Référence''''': [https://fr.wikipedia.org/wiki/Virtio https://fr.wikipedia.org/wiki/Virtio].</ref> Block" est plus rapide.</span>
* <span style="font-family:Courier New;">- Onglet ''CPU'':<span style="color:red"> &nbsp;>&nbsp; </span>Sockets: ''2''<span style="color:red"> &nbsp;>&nbsp; </span>Coeurs: ''2''.<br>- Donne un total de 4 coeurs.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-133-Proxmox-VM-SME-H-1.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-132-Proxmox-VM-SME-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">Onglet ''Mémoire''<span style="color:red"> &nbsp;>&nbsp; </span><span style="color:DarkMagenta">4096 Mo</span>.</span>
* <span style="font-family:Courier New;">Onglet ''Réseau''<span style="color:red"> &nbsp;>&nbsp; </span>on prend les défauts surtout pour Modèle: ''VirtIO'' ''(Paravirtualisé<ref name="ftn6">'''Paravirtualisation''': En informatique, la paravirtualisation est une technique de virtualisation qui présente une interface logicielle similaire à du matériel réel à une machine virtuelle mais optimisée pour ce type de fonctionnement, contrairement à l'émulation d'un périphérique matériel existant qui peut s'avérer laborieuse et surtout lente.

'''Référence''': [https://fr.wikipedia.org/wiki/Paravirtualisation https://fr.wikipedia.org/wiki/Paravirtualisation].</ref>)''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-134-Proxmox-VM-SME-I.png|600px|border]]
|}
* <span style="font-family:Courier New;">On vérifie<span style="color:red"> &nbsp;>&nbsp; </span>''Terminé''.</span>
<br clear=all>

<!-- ########################################################################### -->

'''Ajout d'une deuxième carte réseau'''

Un Serveur SME a besoin de deux cartes réseau.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-135-Proxmox-VM-SME-J.png|815px|border]]
|}
* <span style="font-family:Courier New;">''Matériel''<span style="color:red"> &nbsp;>&nbsp; </span>''Ajouter''<span style="color:red"> &nbsp;>&nbsp; </span>''Carte réseau''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-137-Proxmox-VM-SME-L.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-136-Proxmox-VM-SME-K.png|400px|border]]
|}
* <span style="font-family:Courier New;">On prend les défauts surtout pour Modèle: ''VirtIO'' ''(Paravirtualisé)''<span style="color:red"> &nbsp;>&nbsp; </span>''Ajouter''.</span>
* <span style="font-family:Courier New;">Notre nouvelle carte réseau a été ajoutée.</span>
<br clear=all>

<!-- ########################################################################### -->

<center><span style="font-size:120%">'''Nous sommes prêt pour l'installation de notre premier Serveur SME sous ProxmoxVE.'''</span></center>


= Installation du Serveur SME =

=== Diagramme réseau ===

Le Serveur SME virtuel ''(sme-92)'' créé dans ProxmoxVE s'intégrera dans le diagramme réseau ci-dessous.


[[Image:SME-101.11-142-Proxmox-SME-Inst-A.png|top|center|900px]]


=== Démarrage et installation ===

Le fichier ISO de SME-9.2 est attaché au lecteur CD/DVD de la machine virtuelle voir: [[#Nom du serveur et Fichier ISO]].

Tout est prêt pour l'installation du Serveur SME virtuel ''(sme-92)''.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-143-Proxmox-SME-Inst-B.png|815px|border]]
|}
* <span style="font-family:Courier New;">- On amorce la machine virtuelle en cliquant ''Démarrer''.<br>- On ouvre une console en cliquant ''Console''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="width: 80%; background-color:#ffffff;" align="center"
|- style="vertical-align:bottom;font-family: Courier New;text-align: left;"
|
À l'invite, faire ''[RETOUR]''.
|
L'installation du serveur s'amorce.
||
On peut vérifier le média en cliquant ''OK'' ou passer cette étape en cliquant <''Skip''>.
||
À bas l'anglolâtrie! Choisir la langue d'installation et ''OK''.
|- style="vertical-align:top;"
|[[Image:SME-101.11-144-Proxmox-SME-Inst-C.png|center|top|275px|border]]
||[[Image:SME-101.11-145-Proxmox-SME-Inst-D.png|center|top|275px|border]]
||[[Image:SME-101.11-146-Proxmox-SME-Inst-E.png|center|top|275px|border]]
||[[Image:SME-101.11-147-Proxmox-SME-Inst-F.png|center|top|275px|border]]
|}


{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-149-Proxmox-SME-Inst-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-148-Proxmox-SME-Inst-G.png|400px|border]]
|}
''' Clavier et fuseau horaire '''

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Pour le clavier, on évite les malentendus de Français ''(Canada)'', Canadien multilingue standard, etc... en utilisant le clavier US.

* <span style="font-family:Courier New;">Choisir le clavier pour l'installation <span style="color:red">></span> ''Valider''.</span>
* <span style="font-family:Courier New;">Choisir le fuseau horaire <span style="color:red">></span> ''Valider''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-151-Proxmox-SME-Inst-J.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-150-Proxmox-SME-Inst-I.png|400px|border]]
|}
'''Modifications et démarrage de l'installation'''

* <span style="font-family:Courier New;">''Écrire les modifications sur le disque''.</span>

* <span style="font-family:Courier New;">''Démarrage de l'installation''.</span>
<br clear=all>


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-153-Proxmox-SME-Inst-L.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-152-Proxmox-SME-Inst-K.png|400px|border]]
|}
'''Paquets'''

* <span style="font-family:Courier New;">Installation des paquets.</span>

* <span style="font-family:Courier New;">L'installation des paquets est terminée. La suite peut prendre un certain temps, être patient..</span>
<br clear=all>


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-156-Proxmox-SME-Inst-O.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-155-Proxmox-SME-Inst-N.png|400px|border]]
|}
''' Fin de l'installation et réamorçage '''

* <span style="font-family:Courier New;">''Redémarrer''.</span>

* <span style="font-family:Courier New;">Le serveur réamorce.</span>
<br clear=all>


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-159-Proxmox-SME-Inst-R.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-158-Proxmox-SME-Inst-Q.png|400px|border]]
|}
''' Possibilité de restauration et mot de passe de root '''

* <span style="font-family:Courier New;">Si on veut restaurer à partir d'une sauvegarde, on choisit <Oui> sinon, on clique ''<Non>''.</span>

* <span style="font-family:Courier New;">On entre un mot de passe pour l'usager root <span style="color:red">></span> ''<Suivant>''.</span>
<br clear=all>


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-161-Proxmox-SME-Inst-T.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-160-Proxmox-SME-Inst-S.png|400px|border]]
|}
''' Vérification de la conformité du mot de passe '''

* <span style="font-family:Courier New;">- On est averti si le mot de passe est trop court ou pas assez complexe.<br>- <Non> on continue en gardant ce mot de passe.<br>- <Oui> on entre un meilleur mot de passe <span style="color:red">></span> <Suivant>.</span>

* <span style="font-family:Courier New;">''On retape le mot de passe'' pour confirmer <span style="color:red">></span> ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-163-Proxmox-SME-Inst-V.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-162-Proxmox-SME-Inst-U.png|400px|border]]
|}
''' Nom du domaine et du serveur '''

* <span style="font-family:Courier New;">On inscrit le ''nom de notre domaine'' <span style="color:red">></span> ''<Suivant>''.</span>

* <span style="font-family:Courier New;">On entre le ''nom du nouveau serveur''. ''(Les majuscules seront converties en minuscules)'' <span style="color:red">></span> ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

''' Adresse IP '''

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Il faut absolument que l'adresse IP du serveur sur le <u>réseau LOCAL</u> soit sur un segment IP différent de celui du <u>réseau externe</u>.

Exemple:

# - adresse IP fixe du Serveur SME sur son <u>réseau LOCAL</u>: <span style="color:DarkMagenta">192.168.2.11</span>/255.255.255.0.
# - adresse IP fixe pour la carte sur son <u>réseau externe</u> sera: <span style="color:DarkMagenta">192.168.1.11</span>/255.255.255.0.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-165-Proxmox-SME-Inst-X.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-164-Proxmox-SME-Inst-W.png|400px|border]]
|}
''' Réseau LOCAL '''

* <span style="font-family:Courier New;">''On choisit la carte réseau'' qu'on reliera au réseau LOCAL <span style="color:red">></span> ''<Suivant>''.</span>

* <span style="font-family:Courier New;"><nowiki>-</nowiki> On donne l'''adresse IP du serveur'' pour le réseau LOCAL <span style="color:DarkMagenta">192.168.2.11</span>.<br><nowiki>-</nowiki> ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-167-Proxmox-SME-Inst-Z.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-166-Proxmox-SME-Inst-Y.png|400px|border]]
|}
'''Masque réseau et mode de fonctionnement'''

* <span style="font-family:Courier New;">On entre le ''masque du réseau LOCAL'' <span style="color:red">></span> ''<Suivant>''.</span>

* <span style="font-family:Courier New;">Le mode ''Serveur et passerelle'' est utilisé. <span style="color:red">></span> ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-169-Proxmox-SME-Inst-AB-1.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-168-Proxmox-SME-Inst-AA.png|400px|border]]
|}
''' Interface du réseau externe '''

* <span style="font-family:Courier New;">Le pilote pour la carte du <u>réseau externe</u> s'affiche<span style="color:red"> &nbsp;>&nbsp; </span>''<Suivant>''.</span>

* <span style="font-family:Courier New;">- On choisit ''Utiliser une adresse IP fixe''.<br>- ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-171-Proxmox-SME-Inst-AD.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-170-Proxmox-SME-Inst-AC.png|400px|border]]
|}
<span id="Configuration de l'interface externe"></span>
'''Configuration de l'interface externe'''

* <span style="font-family:Courier New;">- On entre l'''adresse IP externe'' <span style="color:DarkMagenta">192.168.1.11</span>.<br>- ''<Suivant>''.</span>
* <span style="font-family:Courier New;">- On entre le ''masque réseau''.<br>- ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-172-Proxmox-SME-Inst-AE.png|400px|border]]
|}
* <span style="font-family:Courier New;">- L'adresse de la passerelle du réseau est affichée.<br>- ''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-174-Proxmox-SME-Inst-AG.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-173-Proxmox-SME-Inst-AF.png|400px|border]]
|}
'''Service DHCP pour le réseau LOCAL et début de la plage d'adresses'''

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Il faut faire très attention au service DHCP <u>sur le réseau LOCAL de eth0</u> car, il ne peut y avoir qu'un seul serveur DHCP <u>par segment IP</u> sinon, le service pourrait avoir un comportement très erratique dont la cause pourrait être des plus difficile à identifier.

* <span style="font-family:Courier New;">On choisit ''Activé Fournit le service DHCP au réseau local'' <span style="color:red">></span> ''<Suivant>''.</span>

* <span style="font-family:Courier New;">L'<u>''adresse de début de la plage d'adresses''</u> pour le DHCP. Par défaut elle est de x.x.x.65 <span style="color:red">></span> ''<Suivant>''.</span>
<br clear=all>
<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-176-Proxmox-SME-Inst-AI.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-175-Proxmox-SME-Inst-AH.png|400px|border]]
|}
'''Adresse de fin de la plage et serveur DNS'''

* <span style="font-family:Courier New;">- L'<u>''adresse de fin de la plage d'adresses''</u> pour le DHCP.<br>- Par défaut elle est de x.x.x.250 <span style="color:red">></span> ''<Suivant>''.</span>

* <span style="font-family:Courier New;">Le Serveur SME principal du réseau <span style="color:DarkMagenta">LAN Micronator</span> c.-à-d. <span style="color:DarkMagenta">192.168.1.1</span><span style="color:red"> &nbsp;>&nbsp; </span>''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-178-Proxmox-SME-Inst-AK.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-177-Proxmox-SME-Inst-AJ.png|400px|border]]
|}
'''Activation des modifications'''

* <span style="font-family:Courier New;">''Oui''<span style="color:red"> &nbsp;>&nbsp; </span>''<RETOUR>'' pour activer les modifications apportées.</span>

* <span style="font-family:Courier New;">Patience...</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-180-Proxmox-SME-Inst-AM.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-179-Proxmox-SME-Inst-AL.png|400px|border]]
|}
'''Réamorçage'''

* <span style="font-family:Courier New;">Le serveur réamorce.</span>

* <span style="font-family:Courier New;">Le serveur est actif et prêt à l'usage.</span>
<br clear=all>

<!-- ########################################################################### -->

= Configuration du Serveur SME =

=== Usagers par défaut ===

Par défaut, un Serveur SME possède deux usagers après son installation: '''''root''''' et '''''admin'''''.


'''root'''

L’usager qui a tous les droits sur le Serveur SME.


'''admin'''

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;L'administrateur du Serveur SME par l'entremise de la console graphique ou du gestionnaire Web "Server Manager".


'''Shell'''

L’usager admin est un usager “équivalent” à root. La différence réside dans le fait que root utilise le shell <code>/bin/bash</code> tandis qu’admin utilise <code>/sbin/e-smith/console</code>.


'''Mot de passe'''

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Les mots de passe de root et d’admin sont les mêmes par défaut.

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Si on change le mot de passe de root il est préférable, mais non nécessaire, de changer aussi celui d’admin.


<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-182-Proxmox-SME-Config-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[File:SME-101.11-181-Proxmox-SME-Config-A.png|400px|border]]
|}

=== Login de root ===

* <span style="font-family:Courier New;">À la fin d’un amorçage, le login est présenté.</span>

* <span style="font-family:Courier New;">On se logue avec <u>root</u> et le mot de passe qu’on lui a attribué lors de l’installation.</span>
<br clear=all>

<!-- ########################################################################### -->

=== Accès à distance ===

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;<u>Après une installation</u>, pour des raisons de sécurité, vous ne pouvez accéder au gestionnaire du serveur <u>que depuis le réseau LOCAL</u>.

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Pour un accès à distance ou si pour une raison quelconque, il faut alors autoriser l'accès à distance pour le <u>réseau externe</u> afin que la station de travail puisse se connecter à travers la carte eth1 ''(<span style="color:DarkMagenta">192.168.1.11</span>)'' du Serveur SME.

À l'écran du Serveur SME, on lance la console graphique en changeant d'utilisateur ''(su - <u>'''s'''</u>witch <u>'''u'''</u>ser)'' et on se logue avec l'usager <span style="color:red">admin</span>.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-184-Proxmox-SME-Config-D.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-183-Proxmox-SME-Config-C.png|400px|border]]
|}
* <span style="font-family:Courier New;">''<code>su - admin</code>''.</span>
* <span style="font-family:Courier New;">''Accéder au gestionnaire du serveur''<span style="color:red"> &nbsp;>&nbsp; </span>''<Suivant>''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-186-Proxmox-SME-Config-F.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-185-Proxmox-SME-Config-E.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Oui''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">- On se logue <span style="color:red">admin</span> avec le mot de passe utilisé lors de l'installation du serveur.<br>- Sur le champ Login<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
<br clear=all>

<!-- ########################################################################### -->

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Dans les écrans de la console graphique, on se déplace en utilisant les flèches: ← ↑ → ↓ pour changer de ligne ou de paragraphe et [Tab] pour changer de panneau.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-188-Proxmox-SME-Config-H.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-187-Proxmox-SME-Config-G.png|400px|border]]
|}
* <span style="font-family:Courier New;">- ''Accès à distance''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]'' pour accéder aux paramètres d'''Accès à distance''.<br>- ''[Tab]'' pour entrer dans le panneau de droite.</span>
* <span style="font-family:Courier New;">- On se rend au paragraphe ''Réseau'' et on entre le ''segment IP'' et le ''masque du réseau'' de la station de travail.<br>- [[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;Pour connaître l'adresse IP et le masque réseau de la carte externe du Serveur SME, consulter le paragraphe [[#Configuration de l'interface externe]].</span>
<br clear=all>
<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-190-Proxmox-SME-Config-J.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-189-Proxmox-SME-Config-I.png|400px|border]]
|}
* <span style="font-family:Courier New;">Utilisant les flèches pour se déplacer, on descend à ''Enregistrer''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">On s'assure du succès de l'opération.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-192-Proxmox-SME-Config-L.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-191-Proxmox-SME-Config-K.png|400px|border]]
|}
* <span style="font-family:Courier New;">- ''[Échap]'' pour afficher les menus.<br>- On sélectionne ''Quitter''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">''Oui''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-194-Proxmox-SME-Config-N.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-193-Proxmox-SME-Config-M.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Quitter''<span style="color:red"> &nbsp;>&nbsp; </span>''[Entrée]''.</span>
* <span style="font-family:Courier New;">On est de retour à la console texte.</span>
<br clear=all>

<!-- ########################################################################### -->

'''Connexion à Server Manager'''

Au paragraphe précédent, on a autorisé l'accès au gestionnaire du Serveur SME ''(Server Manager)'' aux stations sur le réseau externe ''(<span style="color:DarkMagenta">192.168.1.0/24</span>)'' du serveur. La station de travail <span style="color:DarkMagenta">192.168.1.81</span> peut donc maintenant accéder à Server Manager en passant par l'<u>adresse IP externe</u> du Serveur SME virtuel.

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Il faut activer Javascript et les témoins ''(cookies)''.

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;On lance le gestionnaire: [https://192.168.1.11/server-manager https://<span style="color:DarkMagenta">192.168.1.11</span>/server-manager] en utilisant l'adresse IP de la <u>carte externe</u> du serveur virtuel.
<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-197-Proxmox-SME-Config-Q.png|225px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-196-Proxmox-SME-Config-P.png|300px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-195-Proxmox-SME-Config-O.png|300px|border]]
|}
* <span style="font-family:Courier New;">''Avancé''.</span>
* <span style="font-family:Courier New;">''Ajouter une exception''.</span>
* <span style="font-family:Courier New;">''Confirmer l'exception de sécurité''.</span>
<span style="font-family:Courier New;">[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Si nous avons déjà accédé au Serveur SME par son adresse Locale [https://192.168.2.11 https://<span style="color:DarkMagenta">192.168.<span style="color:red">2</span>.11</span>] et accepté son certificat, il ne nous sera pas demandé de l'accepter à nouveau car, le navigateur l'aura déjà emmagasiné.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-198-Proxmox-SME-Config-R.png|350px|border]]
|}
'''Login'''

* <span style="font-family:Courier New;">Lorsque vous parvenez à l'URL, vous serez invités à entrer votre nom d’utilisateur ''(qui est obligatoirement admin)'' et le mot de passe ''(donné au cours du processus d’installation)''. Entrez ces informations et cliquez sur ''Login'' afin d’être amené jusqu’au gestionnaire du serveur.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-199-Proxmox-SME-Config-S.png|815px|border]]
|}
* <span style="font-family:Courier New;">L’écran du gestionnaire s’affiche.</span>
<br clear=all>

<!-- ########################################################################### -->

=== Usager michelandre ===

On crée un usager standard <span style="color:DarkMagenta">michelandre</span>. Si on installe WordPress, il sera le récepteur des courriels de notification.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-201-Proxmox-SME-Config-U.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-200-Proxmox-SME-Config-T.png|400px|border]]
|}
* <span style="font-family:Courier New;">''Utilisateurs''<span style="color:red"> &nbsp;>&nbsp; </span>''Ajouter un utilisateur''.</span>
* <span style="font-family:Courier New;">–&nbsp;Entrer les informations pour michelandre.<br>–&nbsp;Accès par client VPN: ''Oui''.<br>- ''Enregistrer''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-203-Proxmox-SME-Config-W.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-202-Proxmox-SME-Config-V.png|400px|border]]
|}
* <span style="font-family:Courier New;">- On s’assure du succès de la création de l'utilisateur.<br>- ''Réinitialiser le mot de passe''.</span>
* <span style="font-family:Courier New;">- On entre un ''mot de passe'', on ''confirme''.<br>- ''Enregistrer''.<br>- [[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;Il faut que le mot de passe soit composé d’au moins <u>sept</u> caractères avec des lettres <u>minuscules</u> et <u>majuscules</u>, des <u>chiffres</u> et au moins <u>un caractère non-alphanumérique</u>.</span>
<br clear=all>
<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-204-Proxmox-SME-Config-X.png|700px|border]]
|}
* <span style="font-family:Courier New;">- On s’assure du succès de l’opération.<br>- <span style="color:blue">Réinitialiser le mot de passe</span> devient bleu pour indiquer que le mot de passe a été réinitialisé.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-205-Proxmox-SME-Config-Y.png|700px|border]]
|}
=== Peaufinage de l'Accès à distance ===

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;On change le port SSH de 22 à <span style="color:DarkMagenta">2222</span> pour dérouter, un peu plus, les intrusions malveillantes.

* <span style="font-family:Courier New;">- [[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;Accès par terminal sécurisé (SSH): –&nbsp;''Autoriser l’accès complet (LAN et Internet)''.<br><br>- Autoriser l'administrateur à se connecter au serveur par SSH: ''Oui''.<br><br>- Autoriser l'authentification par SSH à l'aide de mots de passe standards: ''Oui''.<br><br>– Port TCP pour l’accès SSH: <span style="color:DarkMagenta">2222</span>.</span>
<br clear=all>


[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;Maintenant, si on utilise PuTTY, pour accéder à la console du serveur, il faudra utiliser le protocole SSH et le port <span style="color:DarkMagenta">2222</span>.

[[Image:Icone-NoteAPT.png|25px]]&nbsp;Dans notre exemple, le serveur est sur le réseau <span style="color:DarkMagenta">192.168.1.0/24</span>.

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;<u>Ceux qui ont le mot de passe d’admin</u> et qui sont sur le <u>réseau externe</u> ''(<span style="color:DarkMagenta">192.168.1.0/24</span>)'' pourront accéder à la Gestion à distance c.-à-d. Server Manager.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-206-Proxmox-SME-Config-Z.png|700px|border]]
|}
* <span style="font-family:Courier New;">[[Image:Icone-NoteAPT.png|25px]]&nbsp;- Pour conserver notre sécurité, il n'est pas obligatoire d'accorder l'<u>Accès FTP</u> à l'Internet complet, on peut choisir: ''N'autoriser l'accès que depuis les réseaux locaux seulement''.<br><br>- Idem pour l'<u>Accès FTP par mot de passe</u>, on peut choisir ''N'autoriser l'authentification que depuis les réseaux locaux seulement''.<br><br>- On clique ''Enregistrer'' pour sauvegarder tous les nouveau paramètres de cette page.</span>
<br clear=all>

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-207-Proxmox-SME-Config-AA.png|700px|border]]
|}
* <span style="font-family:Courier New;">[[Image:Icone-NoteAPT.png|25px]]&nbsp;Il n’est pas nécessaire d’ajouter le réseau LOCAL <span style="color:DarkMagenta">192.168.<span style="color:red">2</span>.0/24</span> pour la gestion à distance car, <u>le réseau LOCAL est autorisé par défaut</u>.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-208-Proxmox-SME-Config-AB.png|700px|border]]
|}
=== Services Proxy ===

* <span style="font-family:Courier New;">- On <u>''désactive''</u> État du service Proxy HTTP.<br><br>- On <u>''désactive''</u> État du service Proxy SMTP.<br><br>- ''Enregistrer''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-209-Proxmox-SME-Config-AC-1.png|700px|border]]
|}
=== Date et heure ===

* <span style="font-family:Courier New;">Il est recommandé de prendre les paramètres par défaut.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-210-Proxmox-SME-Config-AD.png|700px|border]]
|}
=== Groupe de travail ===

* <span style="font-family:Courier New;">- Modifier le nom du groupe de travail ''(<span style="color:DarkMagenta">Micronator-101</span>)''.<br><br>- ''Enregistrer''.</span>
<br clear=all>


=== Annuaire LDAP ===

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Il est préférable de ne pas utiliser de caractères accentués ou spéciaux <u>dans les champs</u> de Server Manager sinon on aura une erreur dans le journal "messages" ''(log messages)''.

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-212-Proxmox-SME-Config-AF.png|400px|border]]<br>


[[Image:SME-101.11-213-Proxmox-SME-Config-AG.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-211-Proxmox-SME-Config-AE.png|400px|border]]
|}
* <span style="font-family:Courier New;">- ''Annuaire LDAP''.<br>- Entrer les informations demandées.<br>- ''Les mettre à jour avec les nouvelles valeurs par défaut''.<br>- ''Enregistrer''.</span><br>

* <span style="font-family:Courier New;">On s'assure du succès de l'opération.</span><br>

* <span style="font-family:Courier New;">- Vu que les informations LDAP ont changées, ce qui change le certificat SSL détecté par votre navigateur Web, il faudra refaire la procédure pour <u>ajouter une exception</u> afin d’accepter le nouveau certificat de chiffrement.<br>- De plus, il faudra aussi se reloguer.<br>- [[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;Si Server Manager refuse de vous reloguer à cause du certificat, simplement supprimer l’historique du navigateur et ré-essayer.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-215-Proxmox-SME-Config-AI-1.png|300px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-214-Proxmox-SME-Config-AH.png|500px|border]]
|}
'''''Vérification'''''

* <span style="font-family:Courier New;">''Utilisateur''<span style="color:red"> &nbsp;>&nbsp; </span>Modifier.</span>
* <span style="font-family:Courier New;">Les nouveaux paramètres LDAP ont été appliqués à tous les usagers.</span>
<br clear=all>
<!-- ########################################################################### -->

=== Domaine ===

'''Serveurs DNS du Domaine'''

'''''i-bay Primary'''''

[[Image:SME-101.11-216-Proxmox-SME-Config-AJ.png|top|right|700px|border]]
Si nous voulons accéder à notre future installation de WordPress depuis l'Internet, il faut avoir un nom de domaine et celui-ci doit pointer vers une i-bay. Plus tard, on pourrait installer un client de service DNS dynamique.

Notre nom de domaine pour ce document est: <span style="color:DarkMagenta">micronator-101.com</span> et si une future installation de WordPress est installée, elle la sera dans l'i-bay Primary.

Par défaut, si on utilise une <u>adresse IP non publique</u> ''(<span style="color:red">notre cas</span>)'' pour la carte du réseau externe du Serveur SME, ce paramètre pour l'i-bay Primary doit être à <u>Résolu localement</u>.
<br clear=all>

<!-- ########################################################################### -->

{| style="width: 70%; background-color:#FFEED9; border:10pt solid #FFEED9;" align="center"
|- style="vertical-align:bottom;font-family: Courier New;text-align: left;"
|
[[Image:Icone-AstuceAPT.png|25px]]&nbsp;- Si on utilise une <u>adresse IP publique</u> pour la carte du réseau externe du Serveur SME, "Serveurs DNS du domaine" pour l'<u>i-bay Primary</u> doit être à <span style="color:red"><u>Serveurs DNS de l'Internet</u></span>.


* <span style="font-family:Courier New;"><span style="font-family:Courier New;">''Domaine''<span style="color:red"> &nbsp;>&nbsp; </span>''Modifier''<span style="color:red"> &nbsp;>&nbsp; </span>Serveurs DNS du domaine on choisit ''Serveur DNS de l'Internet''<span style="color:red"> &nbsp;>&nbsp; </span>''Modifier''.</span></span>
* <span style="font-family:Courier New;"><span style="font-family:Courier New;">On s'assure du succès de l'opération. Le redémarrage du service Web ne prend qu'une seconde.</span></span>


<span style="font-family:Courier New;"><span style="font-family:Courier New;">[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;Si Server Manager refuse de vous reloguer, simplement supprimer l’historique du navigateur et ré-essayer.</span>
|}
{| style="width: 70%; background-color:#FFEED9; border:10pt solid #FFEED9;" align="center"
|- style="vertical-align:top;"
|[[Image:SME-101.11-217-Proxmox-SME-Config-AK.png|center|top|400px|border]]
||[[Image:SME-101.11-218-Proxmox-SME-Config-AL.png|center|top|400px|border]]
|}


'''''Autre i-bay'''''

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Si nous installons <u>un site WEB dans une <span style="color:DarkMagenta">autre i-bay</u></span> que Primary, le paramètre "Serveur DNS du domaine" doit toujours être, <u>dans tous les cas</u>, à <u><span style="color:red">Résolu localement</span></u> que nous utilisions une adresse publique, ou privée, ou domaine FQDN ou non.

Il en sera de même si le mode de fonctionnement du serveur est:

* Serveur privé et passerelle ou
* si les stations qui accèdent au site Web sont toutes sur le réseau local du serveur.

{| style="width: 60%; background-color:#FFEED9; border:10pt solid #FFEED9;" align="center"
|- style="vertical-align:top;"
|[[Image:SME-101.11-220-Proxmox-SME-Config-AN.png|center|top|400px|border]]
||[[Image:SME-101.11-219-Proxmox-SME-Config-AM.png|center|top|400px|border]]
|}


<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-221-Proxmox-SME-Config-AO.png|700px|border]]
|}
=== Messagerie électronique ===

* <span style="font-family:Courier New;">Cliquer chaque ''Modifier les paramètres...'' et ajuster tel que ci-contre.<br>[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Si Server Manager refuse de vous reloguer, <u>Supprimer l’historique du navigateur</u> et ré-essayer.<br>[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Pour le "Blocage des pièces jointes exécutables", <u>ce choix vous revient</u>.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-222-Proxmox-SME-Config-AP.png|700px|border]]
|}
'''Antivirus ''(ClamAV)'''

* <span style="font-family:Courier New;">- Ajuster tel que ci-contre.<br>- Enregistrer.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:150px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-223-Proxmox-SME-Config-AQ.png|300px|border]]
|}
=== Vérification de la communication ===

* <span style="font-family:Courier New;">On crée une nouvelle entrée dans PuTTY pour le Serveur SME-9.2. Ici le port est <span style="color:red">2222</span>.<br>On se connecte et on accepte le certificat.<br>On se logue au Serveur SME virtuel en tant que <span style="color:red">root</span>.<br></span>
<br clear=all>

<!-- ########################################################################### -->

'''Cartes eth0 et eth1'''

Si la commande <code>ifconfig</code> ne fonctionne pas, voir: [[#Logiciels supplémentaires]] pour l'installation de <code>net-tools</code>.
# ifconfig

<span style="color:red">eth0</span> Link encap:Ethernet HWaddr <span style="color:red">36:EF:04:BA:43:F5</span>
inet adr:<span style="color:DarkMagenta">192.168.2.11</span> Bcast:192.168.2.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:74720 errors:0 dropped:0 overruns:0 frame:0
TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:14398441 ''(13.7 MiB)'' TX bytes:57560 ''(56.2 KiB)''

<span style="color:red">eth1</span> Link encap:Ethernet HWaddr <span style="color:red">A2:9D:0C:F7:A3:07</span>
inet adr:<span style="color:DarkMagenta">192.168.1.11</span> Bcast:192.168.1.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77609 errors:0 dropped:0 overruns:0 frame:0
TX packets:2983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:15519823 ''(14.8 MiB)'' TX bytes:398103 ''(388.7 KiB)''

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1119 errors:0 dropped:0 overruns:0 frame:0
TX packets:1119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:423549 ''(413.6 KiB)'' TX bytes:423549 ''(413.6 KiB)''


[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;L'adresse externe <span style="color:DarkMagenta">192.168.2.11</span> ''(eth1/inet0)'' est celle sur le réseau externe c.-à-d. sur le réseau <span style="color:DarkMagenta">LAN Micronator</span>.

[[Image:SME-101.11-224-Proxmox-SME-Config-AR.png|top|center|800px|border]]


'''Routes'''
# route

Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.1 <nowiki>* </nowiki> 255.255.255.255 UH 0 0 0 eth1
<span style="color:red">192.168.2.0</span> <nowiki>* </nowiki> 255.255.255.0 U 0 0 0 <span style="color:red">eth0</span>
192.168.1.0 <nowiki>* </nowiki> 255.255.255.0 U 0 0 0 eth1
<span style="color:red">default</span> <span style="color:DarkMagenta">192.168.1.1</span> 0.0.0.0 UG 0 0 0 <span style="color:red">eth1</span>

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;L'adresse <span style="color:DarkMagenta">192.168.1.1</span> est celle de l'aiguilleur du réseau <span style="color:DarkMagenta">LAN Micronator</span> qui sert de passerelle vers l'Internet pour notre Serveur SME virtuel.


'''Serveur DNS pour le réseau local'''

# cat /etc/resolv.conf

<nowiki>#------------------------------------------------------------</nowiki>
<nowiki># </nowiki> !!DO NOT MODIFY THIS FILE!!
<nowiki>#</nowiki>
<nowiki># Manual changes will be lost when this file is regenerated.</nowiki>
<nowiki>#</nowiki>
<nowiki># Please read the developer's guide, which is available</nowiki>
<nowiki># at http://www.contribs.org/development/</nowiki>
<nowiki>#</nowiki>
<nowiki># Copyright ''(C)'' 1999-2006 Mitel Networks Corporation</nowiki>
<nowiki>#------------------------------------------------------------</nowiki>
domain <span style="color:red">micronator-101.com</span>
nameserver 192.168.2.11


'''DNS & aiguilleur'''
# ping -c2 google.com

PING google.com (<span style="color:red">172.217.1.174</span>) 56(84) bytes of data.
64 bytes from yyz10s04-in-f14.1e100.net (172.217.1.174): icmp_seq=1 ttl=57 time=12.7 ms
64 bytes from yyz10s04-in-f14.1e100.net (172.217.1.174): icmp_seq=2 ttl=57 time=15.2 ms

--- google.com ping statistics ---
2 packets transmitted, 2 received, <span style="color:red">0% packet loss</span>, time 1016ms
rtt min/avg/max/mdev = 12.725/14.000/15.275/1.275 ms

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Le domaine google.com répond; impliquant que le DNS a trouvé son adresse ''(<span style="color:red">172.217.1.174</span>)'' et que le serveur-aiguilleur ''(192.168.1.1)'' fonctionne correctement.


=== Mise à jour du Serveur SME-9.2 ===

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Pour une mise à jour d'un Serveur SME, voir le chapitre [https://wiki.contribs.org/SME-101.02_Serveur_SME#Mise_.C3.A0_jour Mise à jour] du Cahier-2 du cours SME-101.


=== Certificat Let's Encrypt ===

Si on veut que notre Serveur SME soit pris au sérieux sur le Web, il est préférable d'installer un certificat SSL gratuit de [https://fr.wikipedia.org/wiki/Let's_Encrypt Let's Encrypt]. Voir le Cahier-4 du cours SME-101 [https://wiki.contribs.org/SME-101.04_Certificat_Let%27s_Encrypt SME-101.04 Certificat Let's Encrypt].


<center><span style="font-size:120%">'''Le Serveur SME est installé et fonctionnel.'''</span></center>


= Instantané d'une machine virtuelle =

Grâce aux instantanés, vous pouvez enregistrer l'état particulier d'une machine virtuelle à un moment donné pour pouvoir l'utiliser plus tard. Ainsi, après avoir pris un instantané, vous pourrez à n'importe quel moment revenir à cet état, même si la machine virtuelle a été complètement changée ou endommagée.

Les instantanés sont particulièrement utiles pour disposer d'un système toujours propre et s'assurer que la machine virtuelle est dépourvue de bogues causés par l'installation de logiciels, virus ou autres.

=== Création d'un instantané du Serveur SME ===

Maintenant que notre Serveur SME est fonctionnel, il serait dommage de faire une manipulation quelconque et de ruiner tout le travail qu'on a fait à date.

[[Image:Icone-AstuceAPT.png|25px]]&nbsp;&nbsp;Si nous prenons un Instantané d'une MV qui roule, l'Instantané peut inclure le contenu de la mémoire ce qui augmentera la taille de l'Instantané.

=== Création d'un instantané ===

On crée notre premier instantané avec la machine en marche.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-226-Proxmox-Instantane-B.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-225-Proxmox-Instantane-A.png|400px|border]]
|}
* <span style="font-family:Courier New;">On sélectionne la machine<span style="color:red"> &nbsp;>&nbsp; </span>''Snapshots''<span style="color:red"> &nbsp;>&nbsp; </span>''Créer un snapshot''.</span>
* <span style="font-family:Courier New;">- On entre les informations demandées.<br>- Il n'est pas nécessaire d'inclure la mémoire.<br>- ''Créer un snapshot''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-227-Proxmox-Instantane-C.png|700px|border]]
|}
* <span style="font-family:Courier New;">Notre premier instantané a été créé.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-228-Proxmox-Instantane-D.png|700px|border]]
|}
* <span style="font-family:Courier New;">On répète l'opération pour avoir quelques instantanés.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-229-Proxmox-Instantane-E.png|700px|border]]
|}
* <span style="font-family:Courier New;">On crée un instantané avec la machine arrêtée.</span>
<br clear=all>

<!-- ########################################################################### -->

'''Hiérarchie des instantanés'''

Votre instantané apparaîtra dans la liste des instantanés. Sous Description, vous verrez apparaître “Vous êtes ici!”, ce qui signifie que l'état actuel de votre machine virtuelle est dérivé de l'instantané précédemment créé; il est basé sur ce dernier.

Si, à ce moment-là, vous prenez un autre instantané n°2 puis un autre n°3, chacun d'entre eux sera un instantané dérivé de l'instantané précédent. L'état actuel peut dériver de l'instantané n°3 qui lui-même dérive du n°2 qui lui-même dérive du premier.

[[Image:Icone-AsurveillerAPT.png|25px]]&nbsp;&nbsp;Vous pouvez ainsi créer autant d'instantanés que vous voulez pour créer autant d'états que vous le souhaitez. Mais attention, <u>si on inclut la mémoire, les instantanés utiliseront beaucoup plus d'espace disque</u>.


'''Utiliser les instantanés'''

'''''Mise en garde'''''

<span style="color:red">'''Attention'''</span>, lorsque vous faites un <u>retour sur instantané</u> c'est tout le disque dur ''(c.-à.d. le fichier du disque virtuel)'' de la machine virtuelle qui est restauré. Autrement dit, si vous aviez créé des documents sur ce disque ''(pour une machine virtuelle Windows, si vous avez enregistré vos documents sur le Bureau ou dans “Mes Documents”)'', vous ne les retrouverez plus!

[[Image:Icone-SeTirerDembarrasAPT.png|20px]]&nbsp;&nbsp;Pensez donc à enregistrer vos documents ailleurs que sur la machine virtuelle avant de faire un <u>retour sur instantané</u>!


=== Restauration d'un instantané ===

On restaure le deuxième instantané.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-231-Proxmox-Instantane-G.png|300px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-230-Proxmox-Instantane-F.png|500px|border]]
|}
* <span style="font-family:Courier New;">- On sélectionne le deuxième instantané.<br>- ''Restauration''.</span>
* <span style="font-family:Courier New;">''Oui''.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-232-Proxmox-Instantane-H.png|700px|border]]
|}
* <span style="font-family:Courier New;">Le deuxième instantané a été restauré.</span>
<br clear=all>

<!-- ########################################################################### -->

=== Suppression d'un instantané ===

"Supprimer" permet de supprimer l'instantané que vous avez sélectionné sans modifier l'état de la machine virtuelle.

Vous ne pourrez plus revenir à l'ancien état sauvegardé par cet instantané mais, la machine virtuelle courante garde son état actuel.

Utile si vous avez trop abusé des instantanés et que vous manquez d'espace libre sur votre disque dur, supprimez ainsi les instantanés qui vous serviront probablement le moins.

On supprime le troisième instantané.

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-234-Proxmox-Instantane-J.png|250px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-233-Proxmox-Instantane-I.png|550px|border]]
|}
* <span style="font-family:Courier New;">- On sélectionne le troisième instantané.<br>- ''Supprimer''.</span>
* <span style="font-family:Courier New;">''Oui''.</span>
<br clear=all>


<center><span style="font-size:120%">'''* * * * *&nbsp;&nbsp;Proxmos est installé, configuré et parfaitement fonctionnel&nbsp; &nbsp;* * * * *'''</span></center>


<!-- ########################################################################### -->

<span id="Truc et astuces"></span>
= Truc et astuces =

=== Gestionnaire ProxmoxVE ===

'''Adresse IP'''

Si vous ne pouvez accéder à l'adresse du gestionnaire, à la console du serveur ProxmoxVE, vérifiez le fichier <code>/etc/network/interfaces</code>.
# cat /etc/network/<span style="color:red">interfaces</span>

<nowiki># network interface settings; autogenerated</nowiki>
<nowiki># Please do NOT modify this file directly, unless you know what</nowiki>
<nowiki># you're doing.</nowiki>
<nowiki>#</nowiki>
<nowiki># If you want to manage part of the network configuration manually,</nowiki>
<nowiki># please utilize the 'source' or 'source-directory' directives to do</nowiki>
<nowiki># so.</nowiki>
<nowiki># PVE will preserve these directives, but will NOT its network</nowiki>
<nowiki># configuration from sourced files, so do not attempt to move any of</nowiki>
<nowiki># the PVE managed interfaces into external files!</nowiki>

auto lo
iface lo inet loopback

iface enp0s3 inet manual

iface enp0s8 inet manual

auto vmbr0
iface vmbr0 inet static
address <span style="color:red">192.168.1.44</span>
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports enp0s3
bridge_stp off
bridge_fd 0

Assurez-vous que l'adresse utilisée est bien celle du gestionnaire affichée sur la console lors d'un amorçage sinon, modifiez l'adresse dans ce fichier et réamorcez pour que le système en tienne compte.


=== Souscription ===

''Référence'': [https://it.izero.fr/proxmox-quelques-infos-en-vrac/ https://it.izero.fr/proxmox-quelques-infos-en-vrac/].

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-235-Proxmox-Truc-A.png|700px|border]]
|}
* <span style="font-family:Courier New;">Pour supprimer l'écran surgissant "No valid subscription".</span>
<br clear=all>

<!-- ########################################################################### -->

À la console du serveur.
# sed -i.bak 's/<span style="color:blue">NotFound</span>/<span style="color:red">Active</span>/g' /usr/share/perl5/PVE/API2/Subscription.pm && systemctl restart pveproxy.service


Fichier <code>/usr/share/perl5/PVE/API2/Subscription.pm</code> original.

{| class="wikitable" style="width: 80%; background-color:#FFEED9;"
|- style="vertical-align:top;font-family: Courier New;"
|
<nowiki>&nbsp; ...</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my $info = PVE::INotify::read_file('subscription');</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!$info) {</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return {</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status =></nowiki> "<span style="color:red">NotFound</span>",<br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message => "There is no subscription key",</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serverid => $server_id,</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url => $url,</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</nowiki><br>
<nowiki>&nbsp;...</nowiki>
|}


Fichier <code>/usr/share/perl5/PVE/API2/Subscription.pm</code> modifié.

{| class="wikitable" style="width: 80%; background-color:#FFEED9;"
|- style="vertical-align:top;font-family: Courier New;"
|
<nowiki>&nbsp; ...</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my $info = PVE::INotify::read_file('subscription');</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!$info) {</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return {</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;status =></nowiki> "<span style="color:red">Active</span>",<br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;message => "There is no subscription key",</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;serverid => $server_id,</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url => $url,</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</nowiki><br>
<nowiki>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</nowiki><br>
<nowiki>&nbsp;...</nowiki>
|}


=== Langue de connexion ===

Pour ne pas avoir a choisir constamment la langue à l'écran de connexion:

* On se logue dans l'interface graphique de ProxmoxVE.
* On efface tous les témoins ''(cookies)'' du navigateur: ''Outils''<span style="color:red"> &nbsp;>&nbsp; </span>''Options''<span style="color:red"> &nbsp;>&nbsp; </span>''Vie privée et sécurité''<span style="color:red"> &nbsp;>&nbsp; </span>''Cookies et données de sites''<span style="color:red"> &nbsp;>&nbsp; </span>''Effacer les données''<span style="color:red"> &nbsp;>&nbsp; </span>on sélectionne seulement "Cookies et données de sites"<span style="color:red"> &nbsp;>&nbsp; </span>''Effacer''<span style="color:red"> &nbsp;>&nbsp; </span>''Effacer maintenant''.
* On rafraîchit la page de ProxmoxVE.

ProxmoxVE affichera alors l'écran de connexion en français.

[[Image:Icone-NoteAPT.png|25px]]&nbsp;&nbsp;Fonctionnel avec Firefox et non pas avec Chrome.


=== Sauvegarde ===

Pour la sauvegarde, nous recommandons de créer une grappe ''(cluster)'' avec un ou deux autres serveurs ProxmoxVE.

On peut aussi utiliser BackupPC voir: [https://wiki.contribs.org/SME-101.09:_Suppl%C3%A9ment:_SME_%26_BackupPC-4.2 SME-101.09: Supplément: SME & BackupPC-4.2].


<span id="Logiciels supplémentaires"></span>
=== Logiciels supplémentaires ===

On peut installer quelques logiciels supplémentaires qui sont souvent utilisés et qui ne sont pas fournis par ProxmoxVE.


'''net-tools'''

Pour pouvoir utiliser la commande <code>ifconfig</code>.
# apt-get install -y net-tools

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 248 kB of archives.
After this operation, 963 kB of additional disk space will be used.
Get:1 <nowiki>http://ftp.ca.debian.org/debian stretch/main</nowiki> amd64 net-tools amd64 1.60+git20161116.90da8a0-1 [248 kB]
Fetched 248 kB in 0s (1,333 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 40421 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20161116.90da8a0-1_amd64.deb ...
Unpacking net-tools (1.60+git20161116.90da8a0-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up net-tools (1.60+git20161116.90da8a0-1) ...


'''''Exemple'''''
# ifconfig vmbr0

vmbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.52 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe5c:c3ee prefixlen 64 scopeid 0x20<link>
ether 08:00:27:5c:c3:ee txqueuelen 1000 (Ethernet)
RX packets 49861 bytes 16585768 (15.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 32149 bytes 18759413 (17.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


'''locate'''

Pour la recherche de fichiers.
# apt-get install -y locate

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
locate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 212 kB of archives.
After this operation, 322 kB of additional disk space will be used.
Get:1 <nowiki>http://ftp.ca.debian.org/debian stretch/main</nowiki> amd64 locate amd64 4.6.0+git+20161106-2 [212 kB]
Fetched 212 kB in 0s (838 kB/s)
Selecting previously unselected package locate.
(Reading database ... 40867 files and directories currently installed.)
Preparing to unpack .../locate_4.6.0+git+20161106-2_amd64.deb ...
Unpacking locate (4.6.0+git+20161106-2) ...
Setting up locate (4.6.0+git+20161106-2) ...
Processing triggers for man-db (2.7.6.1-2) ...


'''''Exemple'''''

On met à jour la BD de <code>locate</code>.
# updatedb


Recherche du fichier <code>os-release</code>.
# locate os-release

<span style="color:red">/etc/os-release</span>
/usr/lib/os-release
/usr/share/man/man5/os-release.5.gz


'''Midnight Commander ''(mc)'''
# apt-get install -y mc

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mc-data unzip
Suggested packages:
arj catdvi | texlive-binaries dbview djvulibre-bin gv imagemagick libaspell-dev odt2txt
poppler-utils python-boto python-tz xpdf | pdf-viewer zip
The following NEW packages will be installed:
mc mc-data unzip
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,950 kB of archives.
After this operation, 7,722 kB of additional disk space will be used.
Get:1 <nowiki>http://ftp.ca.debian.org/debian stretch/main amd64</nowiki> mc-data all 3:4.8.18-1 [1,267 kB]
Get:2 <nowiki>http://ftp.ca.debian.org/debian stretch/main</nowiki> amd64 mc amd64 3:4.8.18-1 [513 kB]
Get:3 <nowiki>http://ftp.ca.debian.org/debian stretch/main</nowiki> amd64 unzip amd64 6.0-21 [170 kB]
Fetched 1,950 kB in 2s (934 kB/s)
Selecting previously unselected package mc-data.
(Reading database ... 40477 files and directories currently installed.)
Preparing to unpack .../mc-data_3%3a4.8.18-1_all.deb ...
Unpacking mc-data (3:4.8.18-1) ...
Selecting previously unselected package mc.
Preparing to unpack .../mc_3%3a4.8.18-1_amd64.deb ...
Unpacking mc (3:4.8.18-1) ...
Selecting previously unselected package unzip.
Preparing to unpack .../unzip_6.0-21_amd64.deb ...
Unpacking unzip (6.0-21) ...
Processing triggers for mime-support (3.60) ...
Setting up mc-data (3:4.8.18-1) ...
Setting up unzip (6.0-21) ...
Setting up mc (3:4.8.18-1) ...
update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode
Processing triggers for man-db (2.7.6.1-2) ...


'''''Exemple'''''

On lance la commande <code>mc</code> à l'invite de la console du serveur. <nowiki>[</nowiki><span style="color:red"> F-10 </span><nowiki>]</nowiki> pour quitter.
# mc


[[Image:SME-101.11-236-Proxmox-Truc-B.png|top|center|600px|border]]


=== Ajout d'un nouvel administrateur ===

La commande pour créer, modifier, etc... un utilisateur est <code>pveum</code> ''(<u>P</u>roxmox<u>VE</u> <u>U</u>ser <u>M</u>anager)''.

On crée l'utilisateur <span style="color:DarkMagenta">michelandre</span>.
# pveum useradd <span style="color:DarkMagenta">michelandre</span><span style="color:red">@pve</span> -comment "<span style="color:red">Créateur</span>"


On lui donne un mot de passe.
# pveum passwd <span style="color:DarkMagenta">michelandre</span><span style="color:red">@pve</span>

Enter new password: *********
Retype new password: *********


On crée un nouveau groupe.
# pveum groupadd <span style="color:Green">administrateur</span> -comment "<span style="color:Green">Administrateur PVE</span>"


On accorde au nouveau groupe <span style="color:Green">administrateur</span> les mêmes permissions que celles du rôle <span style="color:red">Administrator</span>.
# pveum aclmod / -group <span style="color:Green">administrateur</span> -role <span style="color:red">Administrator</span>


On ajoute <span style="color:DarkMagenta">michelandre</span> au nouveau groupe <span style="color:Green">administrateur</span>.
# pveum usermod <span style="color:DarkMagenta">michelandre</span><span style="color:red">@pve</span> -group <span style="color:Green">administrateur</span>


'''Vérification'''

<!-- ########################################################################### -->
{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-238-Proxmox-Truc-D.png|400px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-237-Proxmox-Truc-C.png|400px|border]]
|}
* ''Permissions''<br><span style="font-family:Courier New;">- Le nouveau groupe <span style="color:Green">administrateur</span> est présent et il possède les permissions du rôle <span style="color:red">Administrator</span>.</span>
* ''Utilisateurs''<br><span style="font-family:Courier New;">- Le nouvel utilisateur <span style="color:DarkMagenta">michelandre</span> est aussi présent.<br>- L'utilisateur <span style="color:red">root</span> a été crée lors de l'installation de ProxmoxVE.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-239-Proxmox-Truc-F.png|550px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-239-Proxmox-Truc-E.png|250px|border]]
|}
* ''Groupes''<br><span style="font-family:Courier New;">- Le nouveau groupe <span style="color:Green">administrateur</span> est présent.</span>
* ''Rôles''<br><span style="font-family:Courier New;">- Les rôles standards de ProxmoxVE n'ont pas été modifiés.</span>
<br clear=all>

<!-- ########################################################################### -->

{| style="float: right; margin-left:0.5em ;margin-right:40px;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-241-Proxmox-Truc-G.png|500px|border]]
|}
{| style="float: right; margin-left:0.5em; margin-right:0.5em;"
|-
| style="vertical-align: top;" |[[Image:SME-101.11-240-Proxmox-Truc-F.png|300px|border]]
|}
* <span style="font-family:Courier New;">On se déconnecte et on se reconnecte en tant que <span style="color:DarkMagenta">michelandre</span>.</span>
* <span style="font-family:Courier New;">Nous sommes connecté et le groupe <span style="color:Green">administrateur</span> possède les mêmes permissions que celles du rôle <span style="color:red">Administrator</span>.</span>
<br clear=all>

<!-- ########################################################################### -->
{{ParticularitesDeCeDocument}}
<!-- ########################################################################### -->
{{SME-101-Transclusion}}
----
<references/>

[[Category:Howto]] [[Category:Howto/fr]]
2,785

edits

Navigation menu