Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:centos:8:avance:l105 [2021/09/11 06:24] adminelearning:workbooks:centos:8:avance:l105 [2022/02/22 15:15] (Version actuelle) – created admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
 +
 +Version : **2022.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======LCF605 - Présentation, Installation et Configuration de KVM======+======LCF605 - Installation de Machines Virtuelles KVM======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **LCF605 - Présentation, Installation et Configuration de KVM**+  * **LCF605 - Installation de Machines Virtuelles KVM**
     * Contenu du Module     * Contenu du Module
-    * Présentation +    * LAB #1 - Installation d'une Machine Virtuelle CentOS 8 
-    * LAB #1 - Installation de KVM +      * 1.1 - Identification du Short ID 
-      * 1.1 - Installation des Paquets Requis +      * 1.2 - Configuration du Stockage des ISOs 
-      * 1.2 - Activation et Démarrage du Service libvirtd  +      * 1.3 - Installation du Domaine 
-      * 1.3 - Modules du Noyau +        Format des Images 
-    LAB #2 - Configuration de KVM        +        * Convertir le Format de l'Image 
-      * 2.1 - Configuration du Pare-feu +      * 1.4 - Configuration de l'Installation de l'OS Invité 
-      * 2.Configuration du Réseau des VMs +        * Language Settings 
-      2.3 - Configuration du Stockage+        * Network configuration 
 +        * Time settings 
 +        * Root password 
 +        * Installation source 
 +        * Software selection 
 +        * Installation Destination 
 +        * Démarrer l'Installation 
 +        * Démarrer la VM 
 +      * 1.Vérification de la VM Invitée 
 +        * Réseau 
 +        Internet
  
-=====Présentation=====+=====LAB #1 - Installation d'une Machine Virtuelle CentOS 8=====
  
-====La Virtualisation====+====1.1 - Identification du Short ID====
  
-Le système de base hébergeant les machines virtuelles est appelé l'**hôte** tandis que les machines virtuelles sont appelées les **invités**.+KVM sait virtualiser un grand nombre de systèmes d'exploitations. Pour consulter la liste complète des systèmes, il convient d'utiliser la commande **osinfo-query os** :
  
-Il existe différentes méthodes de virtualisation :+<code> 
 +[root@centos8 ~]# osinfo-query os | more 
 + Short ID             | Name                                               | Version  | ID                                       
 +----------------------+----------------------------------------------------+----------+----------------------------------------- 
 + alpinelinux3.10      | Alpine Linux 3.10                                  | 3.10     | http://alpinelinux.org/alpinelinux/3.10  
 + alpinelinux3.11      | Alpine Linux 3.11                                  | 3.11     | http://alpinelinux.org/alpinelinux/3.11  
 + alpinelinux3.12      | Alpine Linux 3.12                                  | 3.12     | http://alpinelinux.org/alpinelinux/3.12  
 + alpinelinux3.13      | Alpine Linux 3.13                                  | 3.13     | http://alpinelinux.org/alpinelinux/3.13  
 + alpinelinux3.5       | Alpine Linux 3.5                                   | 3.5      | http://alpinelinux.org/alpinelinux/3.5   
 + alpinelinux3.6       | Alpine Linux 3.6                                   | 3.6      | http://alpinelinux.org/alpinelinux/3.6   
 + alpinelinux3.7       | Alpine Linux 3.7                                   | 3.7      | http://alpinelinux.org/alpinelinux/3.7   
 + alpinelinux3.8       | Alpine Linux 3.8                                   | 3.8      | http://alpinelinux.org/alpinelinux/3.8   
 + alpinelinux3.9       | Alpine Linux 3.9                                   | 3.9      | http://alpinelinux.org/alpinelinux/3.9   
 + alt.p8               | ALT p8 StarterKits                                 | p8       | http://altlinux.org/alt/p8.starterkits   
 + alt.p9               | ALT p9 StarterKits                                 | p9       | http://altlinux.org/alt/p9.starterkits   
 + alt.sisyphus         | ALT regular                                        | sisyphus | http://altlinux.org/alt/sisyphus         
 + alt8.0               | ALT 8 Education                                    | 8.0      | http://altlinux.org/alt/8.0              
 + alt8.1               | ALT 8.1                                            | 8.1      | http://altlinux.org/alt/8.1              
 + alt8.2               | ALT 8.2                                            | 8.2      | http://altlinux.org/alt/8.2              
 + alt9.0               | ALT 9.0                                            | 9.0      | http://altlinux.org/alt/9.0              
 + alt9.1               | ALT 9.1                                            | 9.1      | http://altlinux.org/alt/9.1              
 + altlinux1.0          | Mandrake RE Spring 2001                            | 1.0      | http://altlinux.org/altlinux/1.0         
 + altlinux2.0          | ALT Linux 2.0                                      | 2.0      | http://altlinux.org/altlinux/2.0         
 + altlinux2.2          | ALT Linux 2.2                                      | 2.2      | http://altlinux.org/altlinux/2.2         
 + altlinux2.4          | ALT Linux 2.4                                      | 2.4      | http://altlinux.org/altlinux/2.4         
 + altlinux3.0          | ALT Linux 3.0                                      | 3.0      | http://altlinux.org/altlinux/3.0         
 + altlinux4.0          | ALT Linux 4.0                                      | 4.0      | http://altlinux.org/altlinux/4.0         
 + altlinux4.1          | ALT Linux 4.1                                      | 4.1      | http://altlinux.org/altlinux/4.1         
 + altlinux5.0          | ALT Linux 5.0                                      | 5.0      | http://altlinux.org/altlinux/5.0         
 + altlinux6.0          | ALT Linux 6.0                                      | 6.0      | http://altlinux.org/altlinux/6.0         
 + altlinux7.0          | ALT Linux 7.0                                      | 7.0      | http://altlinux.org/altlinux/7.0         
 + android-x86-8.1      | Android-x86 8.1                                    | 8.1      | http://android-x86.org/android-x86/8.1   
 + android-x86-9.0      | Android-x86 9.0                                    | 9.0      | http://android-x86.org/android-x86/9.0   
 + archlinux            | Arch Linux                                                  | http://archlinux.org/archlinux/rolling   
 + asianux-unknown      | Asianux unknown                                    | unknown  | http://asianux.com/asianux/unknown       
 + asianux4.6           | Asianux Server 4 SP6                                        | http://asianux.com/asianux/4.6           
 + asianux4.7           | Asianux Server 4 SP7                                        | http://asianux.com/asianux/4.7           
 + asianux7.0           | Asianux Server 7                                   | 7.0      | http://asianux.com/asianux/7.0           
 + asianux7.1           | Asianux Server 7 SP1                               | 7.1      | http://asianux.com/asianux/7.1           
 + asianux7.2           | Asianux Server 7 SP2                               | 7.2      | http://asianux.com/asianux/7.2           
 + asianux7.3           | Asianux Server 7 SP3                               | 7.3      | http://asianux.com/asianux/7.3           
 + asianux8.0           | Asianux Server 8                                   | 8.0      | http://asianux.com/asianux/8.0           
 + caasp-unknown        | SUSE CaaS Platform Unknown                         | unknown  | http://suse.com/caasp/unknown            
 + caasp1.0             | SUSE CaaS Platform 1.0                             | 1.0      | http://suse.com/caasp/1.0                
 + caasp2.0             | SUSE CaaS Platform 2.0                             | 2.0      | http://suse.com/caasp/2.0                
 + caasp3.0             | SUSE CaaS Platform 3.0                             | 3.0      | http://suse.com/caasp/3.0                
 +--More-- 
 +</code>
  
-  * **Virtualisation au niveau du système d'exploitation ou //L'Isolation//** +La liste des versions de Red Hat peut être consultée en recherchant la chaîne **Red Hat** dans la sortie de la commande précédente :
-    * **Description** : Les systèmes invités utilisent le même noyau et une partie du système de fichiers de l'hôte. +
-    * **L'avantage principal** : Économise des ressources. +
-    * **L'inconvénient principal** : Les OS des invités ont besoin d'être modifiés pour fonctionner en tant que machine virtuelle. L'hôte et les invités doivent utiliser le même OS. +
-    * **Logiciels concernés** : %%OpenVZ%%, Linux %%VServer%%, BSD Jails, LXC (Linux Containers), Solaris Zones, Docker.+
  
-{{ :elearning:workbooks:centos:6:senior:inheritedpackageszones.png?nolink&300 |}}+<code> 
 +[root@centos8 ~]# osinfo-query os | grep "Red Hat" 
 + rhel-atomic-7.0      | Red Hat Enterprise Linux Atomic Host 7.0           | 7.0      | http://redhat.com/rhel-atomic/7.0        
 + rhel-atomic-7.1      | Red Hat Enterprise Linux Atomic Host 7.1           | 7.1      | http://redhat.com/rhel-atomic/7.1        
 + rhel-atomic-7.2      | Red Hat Enterprise Linux Atomic Host 7.2           | 7.2      | http://redhat.com/rhel-atomic/7.2        
 + rhel-atomic-7.3      | Red Hat Enterprise Linux Atomic Host 7.3           | 7.3      | http://redhat.com/rhel-atomic/7.3        
 + rhel-atomic-7.4      | Red Hat Enterprise Linux Atomic Host 7.4           | 7.4      | http://redhat.com/rhel-atomic/7.4        
 + rhel-unknown         | Red Hat Enterprise Linux Unknown                   | unknown  | http://redhat.com/rhel/unknown           
 + rhel2.1              | Red Hat Enterprise Linux 2.1                       | 2.1      | http://redhat.com/rhel/2.1               
 + rhel2.1.1            | Red Hat Enterprise Linux 2.1 Update 1              | 2.1.1    | http://redhat.com/rhel/2.1.1             
 + rhel2.1.2            | Red Hat Enterprise Linux 2.1 Update 2              | 2.1.2    | http://redhat.com/rhel/2.1.2             
 + rhel2.1.3            | Red Hat Enterprise Linux 2.1 Update 3              | 2.1.3    | http://redhat.com/rhel/2.1.3             
 + rhel2.1.4            | Red Hat Enterprise Linux 2.1 Update 4              | 2.1.4    | http://redhat.com/rhel/2.1.4             
 + rhel2.1.5            | Red Hat Enterprise Linux 2.1 Update 5              | 2.1.5    | http://redhat.com/rhel/2.1.5             
 + rhel2.1.           | Red Hat Enterprise Linux 2.1 Update 6              | 2.1.6    | http://redhat.com/rhel/2.1.6             
 + rhel2.1.7            | Red Hat Enterprise Linux 2.1 Update 7              | 2.1.7    | http://redhat.com/rhel/2.1.7             
 + rhel3                Red Hat Enterprise Linux 3                         | 3        | http://redhat.com/rhel/                
 + rhel3.1              | Red Hat Enterprise Linux 3 Update 1                | 3.1      | http://redhat.com/rhel/3.1               
 + rhel3.2              | Red Hat Enterprise Linux 3 Update 2                | 3.2      | http://redhat.com/rhel/3.2               
 + rhel3.3              | Red Hat Enterprise Linux 3 Update 3                | 3.3      | http://redhat.com/rhel/3.3               
 + rhel3.4              | Red Hat Enterprise Linux 3 Update 4                | 3.4      | http://redhat.com/rhel/3.4               
 + rhel3.5              | Red Hat Enterprise Linux 3 Update 5                | 3.5      | http://redhat.com/rhel/3.5               
 + rhel3.6              | Red Hat Enterprise Linux 3 Update 6                | 3.6      | http://redhat.com/rhel/3.6               
 + rhel3.7              | Red Hat Enterprise Linux 3 Update 7                | 3.7      | http://redhat.com/rhel/3.7               
 + rhel3.8              | Red Hat Enterprise Linux 3 Update 8                | 3.8      | http://redhat.com/rhel/3.8               
 + rhel3.9              | Red Hat Enterprise Linux 3 Update 9                | 3.9      | http://redhat.com/rhel/3.9               
 + rhel4.0              | Red Hat Enterprise Linux 4.0                       | 4.0      | http://redhat.com/rhel/4.0               
 + rhel4.1              | Red Hat Enterprise Linux 4.1                       | 4.1      | http://redhat.com/rhel/4.1               
 + rhel4.2              | Red Hat Enterprise Linux 4.2                       | 4.2      | http://redhat.com/rhel/4.2               
 + rhel4.3              | Red Hat Enterprise Linux 4.3                       | 4.3      | http://redhat.com/rhel/4.3               
 + rhel4.4              | Red Hat Enterprise Linux 4.4                       | 4.4      | http://redhat.com/rhel/4.4               
 + rhel4.5              | Red Hat Enterprise Linux 4.5                       | 4.5      | http://redhat.com/rhel/4.5               
 + rhel4.6              | Red Hat Enterprise Linux 4.6                       | 4.6      | http://redhat.com/rhel/4.6               
 + rhel4.7              | Red Hat Enterprise Linux 4.7                       | 4.7      | http://redhat.com/rhel/4.7               
 + rhel4.8              | Red Hat Enterprise Linux 4.8                       | 4.8      | http://redhat.com/rhel/4.8               
 + rhel4.9              | Red Hat Enterprise Linux 4.9                       | 4.9      | http://redhat.com/rhel/4.9               
 + rhel5.0              | Red Hat Enterprise Linux 5.0                       | 5.0      | http://redhat.com/rhel/5.0               
 + rhel5.1              | Red Hat Enterprise Linux 5.1                       | 5.1      | http://redhat.com/rhel/5.1               
 + rhel5.10             | Red Hat Enterprise Linux 5.10                      | 5.10     | http://redhat.com/rhel/5.10              
 + rhel5.11             | Red Hat Enterprise Linux 5.11                      | 5.11     | http://redhat.com/rhel/5.11              
 + rhel5.2              | Red Hat Enterprise Linux 5.2                       | 5.2      | http://redhat.com/rhel/5.2               
 + rhel5.3              | Red Hat Enterprise Linux 5.3                       | 5.3      | http://redhat.com/rhel/5.3               
 + rhel5.4              | Red Hat Enterprise Linux 5.4                       | 5.4      | http://redhat.com/rhel/5.4               
 + rhel5.5              | Red Hat Enterprise Linux 5.5                       | 5.5      | http://redhat.com/rhel/5.5               
 + rhel5.6              | Red Hat Enterprise Linux 5.6                       | 5.6      | http://redhat.com/rhel/5.6               
 + rhel5.7              | Red Hat Enterprise Linux 5.7                       | 5.7      | http://redhat.com/rhel/5.7               
 + rhel5.8              | Red Hat Enterprise Linux 5.8                       | 5.8      | http://redhat.com/rhel/5.8               
 + rhel5.9              | Red Hat Enterprise Linux 5.9                       | 5.9      | http://redhat.com/rhel/5.9               
 + rhel6-unknown        | Red Hat Enterprise Linux 6 Unknown                 | 6-unknown | http://redhat.com/rhel/6-unknown         
 + rhel6.0              | Red Hat Enterprise Linux 6.0                       | 6.0      | http://redhat.com/rhel/6.0               
 + rhel6.1              | Red Hat Enterprise Linux 6.1                       | 6.1      | http://redhat.com/rhel/6.1               
 + rhel6.10             | Red Hat Enterprise Linux 6.10                      | 6.10     | http://redhat.com/rhel/6.10              
 + rhel6.2              | Red Hat Enterprise Linux 6.2                       | 6.2      | http://redhat.com/rhel/6.2               
 + rhel6.3              | Red Hat Enterprise Linux 6.3                       | 6.3      | http://redhat.com/rhel/6.3               
 + rhel6.4              | Red Hat Enterprise Linux 6.4                       | 6.4      | http://redhat.com/rhel/6.4               
 + rhel6.5              | Red Hat Enterprise Linux 6.5                       | 6.5      | http://redhat.com/rhel/6.5               
 + rhel6.6              | Red Hat Enterprise Linux 6.6                       | 6.6      | http://redhat.com/rhel/6.6               
 + rhel6.7              | Red Hat Enterprise Linux 6.7                       | 6.7      | http://redhat.com/rhel/6.7               
 + rhel6.8              | Red Hat Enterprise Linux 6.8                       | 6.8      | http://redhat.com/rhel/6.8               
 + rhel6.9              | Red Hat Enterprise Linux 6.9                       | 6.9      | http://redhat.com/rhel/6.9               
 + rhel7-unknown        | Red Hat Enterprise Linux 7 Unknown                 | 7-unknown | http://redhat.com/rhel/7-unknown         
 + rhel7.0              | Red Hat Enterprise Linux 7.0                       | 7.0      | http://redhat.com/rhel/7.0               
 + rhel7.1              | Red Hat Enterprise Linux 7.1                       | 7.1      | http://redhat.com/rhel/7.1               
 + rhel7.2              | Red Hat Enterprise Linux 7.2                       | 7.2      | http://redhat.com/rhel/7.2               
 + rhel7.3              | Red Hat Enterprise Linux 7.3                       | 7.3      | http://redhat.com/rhel/7.3               
 + rhel7.4              | Red Hat Enterprise Linux 7.4                       | 7.4      | http://redhat.com/rhel/7.4               
 + rhel7.5              | Red Hat Enterprise Linux 7.5                       | 7.5      | http://redhat.com/rhel/7.5               
 + rhel7.6              | Red Hat Enterprise Linux 7.6                       | 7.6      | http://redhat.com/rhel/7.6               
 + rhel7.7              | Red Hat Enterprise Linux 7.7                       | 7.7      | http://redhat.com/rhel/7.7               
 + rhel7.8              | Red Hat Enterprise Linux 7.8                       | 7.8      | http://redhat.com/rhel/7.8               
 + rhel7.9              | Red Hat Enterprise Linux 7.9                       | 7.9      | http://redhat.com/rhel/7.9               
 + rhel8-unknown        | Red Hat Enterprise Linux 8 Unknown                 | 8-unknown | http://redhat.com/rhel/8-unknown         
 + rhel8.0              | Red Hat Enterprise Linux 8.0                       | 8.0      | http://redhat.com/rhel/8.0               
 + rhel8.1              | Red Hat Enterprise Linux 8.1                       | 8.1      | http://redhat.com/rhel/8.1               
 + rhel8.2              | Red Hat Enterprise Linux 8.2                       | 8.2      | http://redhat.com/rhel/8.2               
 + rhel8.3              | Red Hat Enterprise Linux 8.3                       | 8.3      | http://redhat.com/rhel/8.3               
 + rhel8.4              | Red Hat Enterprise Linux 8.4                       | 8.4      | http://redhat.com/rhel/8.4               
 + rhel9-unknown        | Red Hat Enterprise Linux 9 Unknown                 | 9-unknown | http://redhat.com/rhel/9-unknown         
 + rhel9.0              | Red Hat Enterprise Linux 9.0                       | 9.0      | http://redhat.com/rhel/9.0               
 + rhl1.0               | Red Hat Linux 1.0                                  | 1.0      | http://redhat.com/rhl/1.0                
 + rhl1.1               | Red Hat Linux 1.1                                  | 1.1      | http://redhat.com/rhl/1.1                
 + rhl2.0               | Red Hat Linux 2.0                                  | 2.0      | http://redhat.com/rhl/2.0                
 + rhl2.1               | Red Hat Linux 2.1                                  | 2.1      | http://redhat.com/rhl/2.1                
 + rhl3.0.3             | Red Hat Linux 3.0.3                                | 3.0.3    | http://redhat.com/rhl/3.0.3              
 + rhl4.0               | Red Hat Linux 4.0                                  | 4.0      | http://redhat.com/rhl/4.0                
 + rhl4.1               | Red Hat Linux 4.1                                  | 4.1      | http://redhat.com/rhl/4.1                
 + rhl4.2               | Red Hat Linux 4.2                                  | 4.2      | http://redhat.com/rhl/4.2                
 + rhl5.0               | Red Hat Linux 5.0                                  | 5.0      | http://redhat.com/rhl/5.0                
 + rhl5.1               | Red Hat Linux 5.1                                  | 5.1      | http://redhat.com/rhl/5.1                
 + rhl5.2               | Red Hat Linux 5.2                                  | 5.2      | http://redhat.com/rhl/5.2                
 + rhl6.0               | Red Hat Linux 6.0                                  | 6.0      | http://redhat.com/rhl/6.0                
 + rhl6.1               | Red Hat Linux 6.1                                  | 6.1      | http://redhat.com/rhl/6.1                
 + rhl6.2               | Red Hat Linux 6.2                                  | 6.2      | http://redhat.com/rhl/6.2                
 + rhl7                 | Red Hat Linux 7                                    | 7        | http://redhat.com/rhl/                 
 + rhl7.1               | Red Hat Linux 7.1                                  | 7.1      | http://redhat.com/rhl/7.1                
 + rhl7.2               | Red Hat Linux 7.2                                  | 7.2      | http://redhat.com/rhl/7.2                
 + rhl7.3               | Red Hat Linux 7.3                                  | 7.3      | http://redhat.com/rhl/7.3                
 + rhl8.0               | Red Hat Linux 8.0                                  | 8.0      | http://redhat.com/rhl/8.0                
 + rhl9                 | Red Hat Linux 9                                    | 9        | http://redhat.com/rhl/9  
 +</code>
  
-  * **Paravirtualisation ou //Hyperviseur de type 1//** +Afin d'installer une machine virtuelle nous avons besoin d'identifier le **Short ID** de la version à installer. Cette information se trouve dans la première colonne de la sortie de la commande. Les trois autres colonnes indiquent :
-    * **Description** : Le système hôte met à disposition une machine virtuelle dans laquelle les autres invités s'exécutent. Les systèmes invités sont modifiés et communiquent directement avec l'hyperviseur. +
-    * **L'avantage principal** : Efficacité. +
-    * **L'inconvénient principal** : Les OS des invités ont besoin d'être modifiés pour fonctionner en tant que machine virtuelle. +
-    * **Logiciels concernés** Xen, VMWare(tm) ESX, Microsoft(tm) Hyper-V.+
  
-{{ :elearning:workbooks:centos:6:senior:hyperviseur1.png?nolink&300 |}}+  * Colonne 2, 
 +    * **Name**, 
 +      * Le nom officiel du système d'exploitation, 
 +  * Colonne 3, 
 +    * **Version**, 
 +      * La version du système d'exploitation, 
 +  * Colonne 4, 
 +    * **ID**, 
 +      * Un URL censé pointer vers la page officielle de la version de la distribution. Attention ces URLs sont bien souvent inexactes, 
 +       
 +Pour rechercher le Short ID de CentOS 8, recherchez **centos** dans la sortie de la commande **osinfo-query os** : 
 +  
 +<code> 
 +[root@centos8 ~]# osinfo-query os | grep centos 
 + centos-stream8       | CentOS Stream 8                                    | 8        | http://centos.org/centos-stream/       
 + centos5.0            | CentOS 5.0                                         | 5.0      | http://centos.org/centos/5.0             
 + centos5.1            | CentOS 5.1                                         | 5.1      | http://centos.org/centos/5.1             
 + centos5.10           | CentOS 5.10                                        | 5.10     | http://centos.org/centos/5.10            
 + centos5.11           | CentOS 5.11                                        | 5.11     | http://centos.org/centos/5.11            
 + centos5.2            | CentOS 5.2                                         | 5.2      | http://centos.org/centos/5.2             
 + centos5.3            | CentOS 5.3                                         | 5.3      | http://centos.org/centos/5.3             
 + centos5.4            | CentOS 5.4                                         | 5.4      | http://centos.org/centos/5.4             
 + centos5.5            | CentOS 5.5                                         | 5.5      | http://centos.org/centos/5.5             
 + centos5.           | CentOS 5.6                                         | 5.6      | http://centos.org/centos/5.6             
 + centos5.7            | CentOS 5.7                                         | 5.7      | http://centos.org/centos/5.7             
 + centos5.8            CentOS 5.8                                         | 5.8      | http://centos.org/centos/5.8             
 + centos5.9            | CentOS 5.9                                         | 5.9      | http://centos.org/centos/5.9             
 + centos6.0            | CentOS 6.0                                         | 6.0      | http://centos.org/centos/6.0             
 + centos6.1            | CentOS 6.1                                         | 6.1      | http://centos.org/centos/6.1             
 + centos6.10           | CentOS 6.10                                        | 6.10     | http://centos.org/centos/6.10            
 + centos6.2            | CentOS 6.2                                         | 6.2      | http://centos.org/centos/6.2             
 + centos6.3            | CentOS 6.3                                         | 6.3      | http://centos.org/centos/6.3             
 + centos6.4            | CentOS 6.4                                         | 6.4      | http://centos.org/centos/6.4             
 + centos6.5            | CentOS 6.5                                         | 6.5      | http://centos.org/centos/6.5             
 + centos6.6            | CentOS 6.6                                         | 6.6      | http://centos.org/centos/6.6             
 + centos6.7            | CentOS 6.7                                         | 6.7      | http://centos.org/centos/6.7             
 + centos6.8            | CentOS 6.8                                         | 6.8      | http://centos.org/centos/6.8             
 + centos6.9            | CentOS 6.9                                         | 6.9      | http://centos.org/centos/6.9             
 + centos7.0            | CentOS 7                                           | 7        | http://centos.org/centos/7.0             
 + centos8              | CentOS 8                                           | 8        | http://centos.org/centos/8  
 + </code>
  
-  * **Virtualisation complète ou //Hyperviseur de type 2//** +<WRAP center round important 60%> 
-    * **Description** : Le programme simule du matériel virtuel qui apparaît du point de vue de l'invité comme du matériel réellement existant. Un **hyperviseur** ou **VMM** ( //Virtual Machine Manager// ) contrôle l'invité et remplace certaines opérations par d'autres afin de gérer le processeur, le disque dur, la mémoire, les processus etc.+**Important** : Notez que le Short ID de CentOS 8 est actuellement **centos8** quelque soit la version
-    * **L'avantage principal** : Les OS des invités n'ont pas besoin d'être modifiés pour fonctionner en tant que machine virtuelle. +</WRAP>
-    * **L'inconvénient principal** : La lenteur. +
-    * **Logiciels concernés** : VMWare(tm) Fusion, VMWare(tm) Player, VMWare(tm) Server, VMWare(tm) Fusion, Parallels Desktop, Parallels Server, Sun/Oracle %%VirtualBox%%, Microsoft(tm) VirtualPC, Microsoft(tm) VirtualServer, QEMU, BOSCH.+
  
-{{ :elearning:workbooks:centos:6:senior:hyperviseur2.png?nolink&300 |}}+====1.2 - Configuration du Stockage des ISOs====
  
-  * **Paravirtualisation avec prise en charge de matériel** +Afin d'installer la machine virtuelle il est nécessaire d'avoir accès à l'ISO de celui-ci. Pour des raisons de performances il est souhaitable que cet ISO soit stocké localement ou bien sur un système de fichiers distant sans latenceUn ISO de CentOS 8 a été préchargé dans le répertoire **/root** de votre VMCet ISO doit être placé dans un en droit accessible par l'utilisateur et le groupe **qemu**. Créez donc le répertoire **/isos**, placez l'ISO dans ce répertoire et accordez les permissions adéquates :
-    * **Description** : Les processeurs Intel-VT et AMD-V contiennent des instructions matérielles pour faciliter la virtualisation. Pour déterminer si le processeur dispose des fonctionnalités de virtualisation matérielles, soit Intel-VT, soit AMD-V, lancez la commande **# egrep '^flags.*(vmx|svm)' /proc/cpuinfo [Entrée]**. Dans le cas où vous ne voyez rien, le processeur ne dispose **pas** de fonctionnalités de virtualisation matériellesPar contre, même dans le cas de la prise en charge, vérifiez que les fonctionnalités soient activées dans le BIOS de la machine. +
-    * **L'avantage principal** : Efficacité liée au fait que la plupart des OS des invités n'ont pas besoin d'être modifiés pour fonctionner en tant que machine virtuelle. +
-    * **L'inconvénient principal** Nécessite un processeur spécial. +
-    * **Logiciels concernés** : Xen, KVM+
  
-{{ :elearning:workbooks:centos:6:senior:xen-schema.png?nolink&300 |}}+<code> 
 +[root@centos8 ~]# ls -l | grep CentOS 
 +-rw-r--r--. 1 root root 625999872 Sep  3 04:44 CentOS-8.1.1911-x86_64-boot.iso
  
-====Xen====+[root@centos8 ~]# chmod 755 CentOS-8.1.1911-x86_64-boot.iso 
  
-  * **[[http://www.xenproject.org/|Xen]]** a vu le jour en 2001 à l'**[[http://www.cl.cam.ac.uk/research/srg/netos/xen/index.html|Université de Cambridge]]**, +[root@centos8 ~]# mkdir /isos
-  * Xen est un produit en licence GPL, +
-  * Il existe des systèmes de virtualisation commerciaux à base de Xen dont le plus connu est actuellement **Citrix %%XenServer%%**, +
-  * Xen est un système de virtualisation principalement destiné à la virtualisation de serveurs, +
-  * Xen est un système de **paravirtualisation** qui nécessite un noyau Linux modifié, +
-  * Xen ne peut pas lancé donc un système non-modifié tel Windows(tm) en mode paravirtualisation, +
-  * Xen peut lancer des systèmes non modifiés dans des **HVM** ( //Hardware Virtual Machine/) depuis sa version 3 en utilisant une partie du code de QEMU combinée avec l'utilisation d'un processeur de virtualisation+
  
-====KVM====+[root@centos8 ~]# mv CentOS-8.1.1911-x86_64-boot.iso /isos
  
-**[[http://www.linux-kvm.org|KVM]]** ou **K**ernel based **V**irtual **M**achine :+[root@centos8 ~]# chown -R qemu:qemu /isos 
 +</code>
  
-  * est un hyperviseur libre sous Linux, +====1.3 Installation du Domain====
-  * ne fonctionne que sur les architectures x86 disposant des extensions Intel-VT ou AMD-V, +
-  * est un projet issu de QEMU.+
  
-<WRAP center round important> +Démarrez maintenant l'installation d'une machine virtuelle **CentOS 8** grâce à la commande **virt-install** : 
-Important : Le module KVM est intégré dans le noyau Linux depuis la version 2.6.20 et permet la paravirtualisation depuis le noyau **2.6.25**.+       
 +<code> 
 +[root@centos8 ~]# virt-install --network bridge:virbr0 --name testvm1 --os-variant=centos8 --ram=2048 --vcpus=1 --disk path=/var/lib/libvirt/images/testvm1-os.qcow2,bus=virtio,size=5 --graphics none --location=/isos/CentOS-8.1.1911-x86_64-boot.iso --extra-args="console=tty0 console=ttyS0,115200" --check all=off 
 + 
 +Starting install... 
 +Retrieving file vmlinuz...                                                                                                                        | 7.7 MB  00:00:00      
 +Retrieving file initrd.img...                                                                                                                      59 MB  00:00:00      
 +Allocating 'testvm1-os.qcow2'                                                                                                                     | 5.0 GB  00:00:00      
 +WARNING  Overriding memory to 3072 MiB needed for centos8 network install. 
 +Connected to domain testvm1 
 +Escape character is ^] 
 +[    0.000000] Linux version 4.18.0-147.el8.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) #1 SMP Wed Dec 4 21:51:45 UTC 2019 
 +... 
 +</code> 
 + 
 +<WRAP center round important 60%
 +**Important** Notez que la quantité de mémoire est automatiquement et provisoirement augmentée à 3072 Mo afin que l'installation se déroule correctement. Notez aussi l'utilisation du mot **domain**. Un domain sous KVM est un terme utilisé pour décrire une machine virtuelle
 </WRAP> </WRAP>
  
-**KVM** appartient à la société **Red Hat**.+Dans cette commande on peut constater l'utilisation de plusieurs options importantes :
  
-KVM permet de virtualiser :+^ Option ^ Commentaire ^ 
 +| --network bridge| Fixe la valeur du pont à utiliser par la VM à virbr0 | 
 +| --name  | Indique le nom de la VM | 
 +| --os-variant= | Egal à la valeur du Short ID identifié au-dessus 
 +| --ram= | Fixe la quantité de la RAM de la VM en Mo | 
 +| --vcpus= | Fixe le nombre de vCPUs de la VM | 
 +| --disk path= | Crée une image pour la VM, au format indiqué et de la taille indiquée en Go, à l'emplacement spécifié | 
 +| --graphics | La valeur **none** indique que l'installation aura lieu en mode texte. Notez que dans le cas d'une VM Windows(tm), la valeur doit être **spice** | 
 +| --location= | Indique l'emplacement de l'ISO à utiliser pour l'installation | 
 +| --extra-args= | Indique les options de la connectivité de la console |
  
-  * Windows(tm) à partir de Windows(tm) 2000, +===Format des Images===
-  * Toutes les distributions Linux, +
-  * La majorité des Unix BSD, +
-  * Solaris(tm) et openSolaris, +
-  * Minux, Hurd, QNX, +
-  * MSDOS.+
  
-KVM offre un support du matériel suivant :+Une image est un disque virtuel. KVM reconnait les formats d'image suivants :
  
-  * USB, +<code> 
-  * Ethernet, +[root@centos8 ~]# qemu-img -h | grep Supported 
-  * PCI Hotplug, +Supported formats: blkdebug blklogwrites blkreplay blkverify copy-on-read file ftp ftps gluster host_cdrom host_device http https iscsi iser luks nbd null-aio null-co nvme qcow2 quorum raw rbd ssh throttle vhdx vmdk vpc 
-  * Carte Son, +</code>
-  * **VirtIO** un périphérique disque para-virtualisé.+
  
-Les avantages de KVM par rapport à Xen sont :+<WRAP center round important 60%> 
 +**Important** Consultez **[[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-using_qemu_img-supported_qemu_img_formats|cette page]]** pour plus d'informations. 
 +</WRAP>  
  
-  * l’utilisation de noyaux non-modifiés au niveaux des invités, +===Convertir le Format de l'Image===
-  * l'intégration direct dans le noyau Linux.+
  
-=====LAB #1 - Installation de KVM=====+Il est possible de convertir un format d'image existante au format qcow2 avec la commande **qemu-img convert**, notamment les images au format **qed**, **raw**, **vdi**, **vhd** et **vmdk**. Par exemple :
  
-====1.1 Installation des Paquets Requis====+<file> 
 +# qemu-img convert -f vmdk -O qcow2 myimage.vmdk mynewimage.qcow2 
 +</file>
  
-Avant d'installer KVM, il convient de savoir si le processeur de l'hôte supporte les extensions de virtualisation. Les extensions necessaires sont soit **vmx** soit **svm** selon que le processeur du système hôte soit de la marque Intel(tm) ou AMD(tm) : +Dans le cas d'une image au format **vdi** d'Oracle VirtualBox, il est préférable de créer une image au format **raw** en utilisant la commande **VBoxManage** :
-         +
-<code>         +
-[root@centos8 ~]# egrep '(vmx|svm)' /proc/cpuinfo | wc -l  +
-+
-</code>+
  
-La majorité des paquets nécessaires pour la virtualisation sous KVM ont été regroupés dans un **module** dénommé **virt**Il convient donc de l'installer avec la commande **dnf** :+<file> 
 +# VBoxManage clonehd myimage.vdi myrawimage.img --format raw 
 +</file>
  
-<code>  +Ensuite il convient d'utiliser la commande **qemu-img convert** pour convertir l'image au format raw en qcow2 :
-[root@centos8 ~]# dnf module install virt -y  +
-</code>+
  
-Si vous souhaitez utiliser l'interface graphique (non-recommandée) pour administrer les machines virtuelles, vous devez installer le paquet **virt-viewer** :+<file> 
 +# qemu-img convert -f raw -O qcow2 myrawimage.img mynewimage.qcow2 
 +</file>
  
-<code>  +====1.4 Configuration de l'Installation de l'OS Invité====
-[root@centos8 ~]# dnf install virt-install virt-viewer -y    +
-</code>+
  
-Le paquet **bridge-utils** est requis pour la gestion des bridges réseau. Installez donc celui-ci :+===Language Settings=== 
 + 
 +Commencez par appuyer sur le choix **1** :
  
 <code> <code>
-[root@centos8 ~]# dnf install epel-release -y   +... 
-[root@centos8 ~]# dnf install bridge-utils -y  +Starting installer, one moment... 
-</code>+anaconda 29.19.1.13-1.el8 for CentOS Linux 8 started. 
 + * installation log files are stored in /tmp during the installation 
 + * shell is available on TTY2 
 + * if the graphical installation interface fails to start, try again with the 
 +   inst.text bootoption to start text installation 
 + * when reporting a bug add logs from /tmp as separate text/plain attachments 
 +14:08:33 Not asking for VNC because we don't have a network 
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-Dernièrement, les outils dont vous aurez besoin se trouvent dans les paquets **virt-top** et **libguestfs-tools** :+1) [x] Language settings                 2) [x] Time settings 
 +       (English (United States))                (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Processing...)                          (Processing...) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-<code>  +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-[root@centos8 ~]# dnf install virt-top libguestfs-tools -y +'r' to refresh]: 1 
-</code>+================================================================================ 
 +================================================================================
  
-====1.2 - Activation et Démarrage du Service libvirtd====+3) Arabic                  29) Hebrew                 55) Norwegian Nynorsk 
 +4) Assamese                30) Hindi                  56) Northern Sotho 
 +5) Asturian                31) Croatian               57) Odia 
 +6) Belarusian              32) Hungarian              58) Punjabi 
 +7) Bulgarian               33) Interlingua            59) Polish 
 +8) Bangla                  34) Indonesian             60) Portuguese 
 +9) Tibetan                 35) Icelandic              61) Romanian 
 +10) Bosnian                36) Italian                62) Russian 
 +11) Catalan                37) Japanese               63) Sinhala 
 +12) Czech                  38) Georgian               64) Slovak 
 +13) Welsh                  39) Kazakh                 65) Slovenian 
 +14) Danish                 40) Khmer                  66) Albanian 
 +15) German                 41) Kannada                67) Serbian 
 +16) Greek                  42) Korean                 68) Swedish 
 +17) English                43) Lithuanian             69) Tamil 
 +18) Spanish                44) Latvian                70) Telugu 
 +19) Estonian               45) Maithili               71) Tajik 
 +20) Basque                 46) Macedonian             72) Thai 
 +21) Persian                47) Malayalam              73) Turkish 
 +22) Finnish                48) Marathi                74) Ukrainian 
 +23) Filipino               49) Malay                  75) Urdu 
 +24) French                 50) Burmese                76) Vietnamese 
 +25) Friulian               51) Norwegian Bokmål       77) Mandarin Chinese
  
-Activez et démarrez le service **libvirtd** pour démarrer KVM. Notez l'utilisation de l'option **--now** qui permet de faire les deux actions en une seule ligne de commande +Press ENTER to continue:  
- +26) Irish                  52) Low German             78) Zulu
-<code> +
-[root@centos8 ~]# systemctl enable --now libvirtd+
 </code> </code>
  
-Vérifiez le statut du service avant de poursuivre :+Choisissez l'option **24** puis l'option **1** :
  
 <code> <code>
-[root@centos8 ~]# systemctl status libvirtd +Please select language support to install ['b' to return to language list, 'c' 
-● libvirtd.service - Virtualization daemon +to continue, 'q' to quit, 'r' to refresh]: 24 
-   Loadedloaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) +================================================================================ 
-   Active: active (running) since Wed 2021-09-01 10:19:05 EDT; 11s ago +================================================================================ 
-     Docs: man:libvirtd(8) +Language settings
-           https://libvirt.org +
- Main PID: 7502 (libvirtd) +
-    Tasks: 19 (limit: 32768) +
-   Memory: 49.3M +
-   CGroup: /system.slice/libvirtd.service +
-           ├─1942 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper +
-           ├─1943 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper +
-           └─7502 /usr/sbin/libvirtd --timeout 120+
  
-Sep 01 10:19:05 centos8.ittraining.loc systemd[1]: Starting Virtualization daemon... +Available locales 
-Sep 01 10:19:05 centos8.ittraining.loc systemd[1]: Started Virtualization daemon. +1) French (France)         3) French (Belgium)        5) French (Luxembourg) 
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read /etc/hosts - addresses +2) French (Canada)         4) French (Switzerland)
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses +
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq-dhcp[1942]: read /var/lib/libvirt/dnsmasq/default.hostsfile +
-</code>+
  
-====1.3 - Modules du Noyau====+Please select language support to install ['b' to return to language list, 'c' 
 +to continue, 'q' to quit, 'r' to refresh]: 1 
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-Votre VM présente aux système hôte un processeur de type Intel(tm). Pour que KVM puisse fonctionner dans cet environnement il a besoin que deux modules soient chargés :+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.
 +9) [!] User creation 
 +       (No user will be created)
  
-  * **kvm** +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-  * **kvm-intel** +'r' to refresh]:  
-   +[anaconda]1:main* 2:shell  3:log  4:storage-log >Switch tabAlt+Tab | Help: F1 
-Vérifiez donc le bon chargement des modules concernés : +
- +
-<code> +
-[root@centos8 ~]# modinfo kvm +
-filename:       /lib/modules/4.18.0-305.7.1.el8.i2tch.x86_64/kernel/arch/x86/kvm/kvm.ko.xz +
-license       GPL +
-author        Qumranet +
-rhelversion   8.4 +
-srcversion    0B52FB25C4DD9865FC4FABA +
-depends:        irqbypass +
-intree:         Y +
-name:           kvm +
-vermagic:       4.18.0-305.7.1.el8.i2tch.x86_64 SMP mod_unload modversions  +
-sig_id        PKCS#7 +
-signer:         CentOS kernel signing key +
-sig_key:        38:77:B1:DF:46:4F:B7:5C:99:8B:B9:BF:70:A4:10:85:91:7F:50:C1 +
-sig_hashalgo:   sha256 +
-signature:      24:2A:F9:57:2C:FB:D8:B1:3B:4B:FA:70:3B:FC:7E:23:E1:AC:06:5B: +
-                8D:0B:83:15:A5:56:43:04:23:FD:89:B1:BD:2C:8B:D0:0D:99:8C:9B: +
-                16:E5:E8:BB:C2:32:EE:62:18:E2:38:F9:2D:9D:1A:68:CA:63:3C:3B: +
-                B1:02:2E:46:FF:DF:6C:28:33:79:6D:FA:63:0A:B3:BA:DC:C7:FC:1D: +
-                FF:14:21:6C:AC:4B:67:2E:EC:A3:B8:96:A0:02:8C:BB:34:CA:CE:23: +
-                BD:34:10:B0:87:B6:55:7C:A9:24:1C:3A:94:9B:05:66:0D:E5:EE:28: +
-                CF:EE:74:9C:D3:CD:96:07:92:F6:D0:6C:FF:94:67:7A:C2:BB:26:BD: +
-                A9:AA:04:7C:19:64:1C:3D:9D:20:EE:1F:12:C1:D2:64:D3:36:62:22: +
-                CD:3D:F7:45:0F:E3:09:89:AC:11:54:AA:C5:56:E7:FE:CA:0C:AD:2A: +
-                FB:60:47:5A:70:6D:AF:F2:4D:6B:60:53:EA:95:4B:E9:BB:F0:F7:71: +
-                19:6A:60:F5:12:6D:C9:E3:86:37:AF:41:88:E3:08:47:F0:C1:C4:76: +
-                90:FE:47:81:36:3C:CE:BD:C9:44:30:99:B8:44:3E:F6:85:B3:44:9A: +
-                D9:76:64:92:3A:49:5A:67:91:35:B1:C7:E0:82:AF:8F:05:2C:CB:18: +
-                50:F1:4F:4E:B0:C3:D4:AE:37:9F:1B:FF:E9:AC:4C:7B:23:65:DA:0E: +
-                FE:98:1B:5A:D3:AB:6B:6A:EA:3C:7B:EC:54:84:CB:DB:EE:CD:F1:43: +
-                40:F0:A3:DB:9B:0A:F2:0A:1F:59:5C:88:3C:3C:CB:CF:3D:60:54:50: +
-                60:CC:C1:41:6A:C6:8B:7E:23:F6:D8:1B:5F:A1:73:98:D4:F8:1E:C7: +
-                D0:F5:F0:DF:E7:2A:79:A1:E6:A1:EE:B4:69:4C:15:DC:A8:A1:40:54: +
-                EC:9D:86:AF:B2:1D:DB:33:F8:63:5D:CD:58:12:F9:C2:FB:B6:19:EE: +
-                7F:CC:6E:6E +
-parm:           tdp_mmu:bool +
-parm:           nx_huge_pages:bool +
-parm:           nx_huge_pages_recovery_ratio:uint +
-parm:           flush_on_reuse:bool +
-parm:           ignore_msrs:bool +
-parm:           report_ignored_msrs:bool +
-parm:           min_timer_period_us:uint +
-parm:           kvmclock_periodic_sync:bool +
-parm:           tsc_tolerance_ppm:uint +
-parm:           lapic_timer_advance_ns:int +
-parm:           vector_hashing:bool +
-parm:           enable_vmware_backdoor:bool +
-parm:           force_emulation_prefix:bool +
-parm:           pi_inject_timer:bint +
-parm:           halt_poll_ns:uint +
-parm:           halt_poll_ns_grow:uint +
-parm:           halt_poll_ns_grow_start:uint +
-parm:           halt_poll_ns_shrink:uint+
 </code> </code>
 +
 +===Network configuration===
 +
 +Choisissez maintenant l'option **7** :
  
 <code> <code>
-[root@centos8 ~]# modinfo kvm_intel +================================================================================ 
-filename:       /lib/modules/4.18.0-305.7.1.el8.i2tch.x86_64/kernel/arch/x86/kvm/kvm-intel.ko.xz +================================================================================ 
-license:        GPL +Installation
-author:         Qumranet +
-rhelversion:    8.4 +
-srcversion:     E25F50CB67CEEDD925DE618 +
-alias:          cpu:type:x86,ven*fam*mod*:feature:*0085* +
-depends:        kvm +
-intree:         Y +
-name:           kvm_intel +
-vermagic:       4.18.0-305.7.1.el8.i2tch.x86_64 SMP mod_unload modversions  +
-sig_id:         PKCS#+
-signer:         CentOS kernel signing key +
-sig_key:        38:77:B1:DF:46:4F:B7:5C:99:8B:B9:BF:70:A4:10:85:91:7F:50:C1 +
-sig_hashalgo:   sha256 +
-signature:      7A:B3:78:ED:6D:A0:85:21:C0:5B:21:FC:7D:54:A1:04:99:38:11:3B: +
-                11:A3:D6:05:DF:C2:DE:46:CE:CB:86:DD:1D:0E:7F:D5:6B:44:BC:DA: +
-                91:EC:0C:D8:F1:BA:60:BF:B1:D5:3A:DE:A7:DA:9B:F0:16:FD:B1:37: +
-                BB:DC:28:39:0D:99:92:45:1D:9B:19:42:9D:F7:9F:79:BB:31:86:8C: +
-                E4:00:18:B8:40:85:96:D2:F3:91:11:9A:8A:CD:90:1F:2A:A6:99:3A: +
-                2B:B1:D7:A5:52:D5:DA:5A:C9:57:23:42:7B:36:91:F1:CD:21:DC:87: +
-                56:53:C9:2F:23:9E:E3:F2:C7:17:46:90:F0:A5:46:C4:C7:46:8A:09: +
-                3B:17:34:8F:EB:C8:42:1C:06:E8:21:AB:D5:BA:66:3E:71:9C:0E:A1: +
-                6C:51:7B:19:DF:02:F5:39:8A:8D:09:87:8E:F0:61:04:5E:A7:01:76: +
-                51:E6:7A:C7:56:D5:AF:29:02:C1:0D:13:28:C1:5C:01:D9:13:44:3C: +
-                D0:B9:58:0C:46:AF:ED:9E:BE:C2:70:48:35:5F:DE:77:F4:29:16:FA: +
-                25:E2:FC:93:A4:8A:CC:69:DC:C1:11:0B:3A:24:D0:81:A2:2A:B8:E7: +
-                97:4F:EB:EF:AB:75:85:63:4D:DA:C9:45:D1:AE:86:A3:B2:66:97:48: +
-                7D:4D:2A:59:B6:AC:F7:CF:14:2A:5B:9D:40:5A:AF:DC:62:A7:EC:55: +
-                AC:4D:5F:E6:C1:EA:51:2B:EF:59:30:67:91:39:C1:E9:9D:A9:70:30: +
-                2E:25:37:A3:F2:3E:5A:5B:98:A6:EA:75:E7:AE:42:31:62:C1:A5:6A: +
-                8D:CA:7F:28:A3:52:C4:65:6F:6D:BA:D1:BA:47:1A:AC:25:E0:CB:58: +
-                D7:27:D2:85:88:45:3D:4A:AB:39:5E:FE:42:22:43:79:B4:AC:7C:39: +
-                A3:5E:8B:8E:81:6B:18:DB:4F:F3:A4:D8:72:6D:97:9B:85:D2:18:35: +
-                E6:C7:D9:84 +
-parm:           enable_shadow_vmcs:bool +
-parm:           nested_early_check:bool +
-parm:           vpid:bool +
-parm:           vnmi:bool +
-parm:           flexpriority:bool +
-parm:           ept:bool +
-parm:           unrestricted_guest:bool +
-parm:           eptad:bool +
-parm:           emulate_invalid_guest_state:bool +
-parm:           fasteoi:bool +
-parm:           enable_apicv:bool +
-parm:           nested:bint +
-parm:           pml:bool +
-parm:           dump_invalid_vmcs:bool +
-parm:           preemption_timer:bool +
-parm:           allow_smaller_maxphyaddr:bool +
-parm:           ple_gap:uint +
-parm:           ple_window:uint +
-parm:           ple_window_grow:uint +
-parm:           ple_window_shrink:uint +
-parm:           ple_window_max:uint +
-parm:           pt_mode:int +
-parm:           enlightened_vmcs:bool +
-</code>+
  
-=====LAB #- Configuration de KVM======+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-====2.1 - Configuration du Pare-feu====+Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 7 
 +================================================================================ 
 +================================================================================ 
 +Network configuration
  
-Si vous souhaitez vous connecter aux machines virtuelles créées sous KVM en utilisant le protocole VNC, vous devez ouvrir le port **5900/tcp** dans le système hôte :+Wired (enp1s0) disconnected
  
 +Host Name: localhost.localdomain
 +
 +Current host name: localhost
 +
 +1) Set host name
 +2) Configure device enp1s0
 <code> <code>
-[root@centos8 ~]# firewall-cmd --permanent --add-port=5901/tcp 
-success 
  
-[root@centos8 ~]# firewall-cmd --reload +Choisissez ensuite l'option **1** pour définir le nom d'hôte de la VM :
-success +
-</code>+
  
-====2.2 - Configuration du Réseau des VMs====+<code> 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: 1 
 +================================================================================ 
 +================================================================================ 
 +Enter a new value for 'Host Name' and press ENTER: testvm1.ittraining.network 
 +================================================================================ 
 +================================================================================ 
 +Network configuration
  
-Lors de l'installation de KVM un pont a été créé ayant le nom **virbr0** et l'adresse IP **192.168.122.1/24** :+Wired (enp1s0) disconnected
  
-  * La plage des adresses IP disponible pour les machines virtuelles KVM va de **192.168.122.2/24** à **192.168.122.254/24**,  +Host Name: testvm1.ittraining.network
-  * Ce pont met en place une connectivité de type **NAT** pour les machines virtuelles,  +
-  * Une interface réseau fictive, **virbr0-nic** et appelée une esclave, a été ajoutée à ce pont principalement pour fournir une adresse MAC stable,  +
-  * Normalement au fur et au mesure que d'autres VMs soient créées, d'autres interfaces fictives seraient ajoutées, une par VM. +
-   +
-Les configurations ci-dessus peuvent être visualisées grâce à la commande **ip a ** :+
  
-<code> +Current host namelocalhost
-[root@centos8 ~]# ip a +
-... +
-4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +
-    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 +
-       valid_lft forever preferred_lft forever +
-5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +
-</code> +
-   +
-Dans le cas où on ne souhaite pas ou on ne peut pas utiliser le pont créé par défaut, il convient de créer un autre pont. Dans notre cas, l'hôte KVM possède deux interfaces **ens18** et **ens19**. Nous allons donc dédier l'interface **ens19** au trafic réseau des machines virtuelles. Actuellement cette interface ne possède pas d'adresse IP +
  
 +1) Set host name
 +2) Configure device enp1s0
 <code> <code>
-[root@centos8 ~]# ip a show ens19 
-3: ens19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 
-    link/ether 46:de:37:c0:55:6c brd ff:ff:ff:ff:ff:ff 
-</code> 
  
-Elle n'est pas visible dans la sortie de la commande **nmcli c show** : +Choisissez l'option **2** pour configurer la connexion réseau :
-   +
-<code>   +
-[root@centos8 ~]# nmcli c show +
-NAME     UUID                                  TYPE      DEVICE  +
-ip_fixe  0f48c74d-5d16-4c37-8220-24644507b589  ethernet  ens18   +
-virbr0   d330b8f4-d08b-4b15-93cc-45c61e26ca6a  bridge    virbr0  +
-ens18    fc4a4d23-b15e-47a7-bcfa-b2e08f49553e  ethernet  --   +
-</code>  +
  
-Créez donc une adresse IP de 192.168.56.2/24 pour l'interface **ens19** :+<code> 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]
 +================================================================================ 
 +================================================================================ 
 +Device configuration 
 + 
 +1) IPv4 address or "dhcp" for DHCP 
 +   dhcp 
 +2) IPv4 netmask 
 +3) IPv4 gateway 
 +4) IPv6 address[/prefix] or "auto" for automatic, "dhcp" for DHCP, "ignore" to 
 +   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +7) [ ] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer
  
 +Configuring device enp1s0.
 <code> <code>
-[root@centos8 ~]# nmcli connection add con-name ip_kvm ifname ens19 type ethernet ip4 192.168.56.2/24 gw4 192.168.56.1 
-Connection 'ip_kvm' (afc8b175-f2cb-47b2-baca-66454058c36f) successfully added. 
-[root@centos8 ~]# nmcli c show 
-NAME     UUID                                  TYPE      DEVICE  
-ip_fixe  0f48c74d-5d16-4c37-8220-24644507b589  ethernet  ens18   
-ip_kvm   afc8b175-f2cb-47b2-baca-66454058c36f  ethernet  ens19   
-virbr0   d330b8f4-d08b-4b15-93cc-45c61e26ca6a  bridge    virbr0  
-ens18    fc4a4d23-b15e-47a7-bcfa-b2e08f49553e  ethernet  --  
-</code> 
  
-Utilisez la commande **ip** pour vérifier la prise en compte de la configuration :+Laissez l’option **1** en **dhcp** puis choisissez l'option **6** pour définir les serveurs DNS en **8.8.8.8,8.8.4.4** :
  
 <code> <code>
-[root@centos8 ~]# ip show ens19 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-3: ens19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +refresh]: 6 
-    link/ether 46:de:37:c0:55:6c brd ff:ff:ff:ff:ff:ff +================================================================================ 
-    inet 192.168.56.2/24 brd 192.168.56.255 scope global noprefixroute ens19 +================================================================================ 
-       valid_lft forever preferred_lft forever +Enter new value for 'Nameservers (comma separated)' and press ENTER: 8.8.8.8,8 
-    inet6 fe80::4b01:d543:147:dd6d/64 scope link noprefixroute  +.8.4.4 
-       valid_lft forever preferred_lft forever+================================================================================ 
 +================================================================================ 
 +Device configuration 
 + 
 +1) IPv4 address or "dhcp" for DHCP 
 +   dhcp 
 +2) IPv4 netmask 
 +3) IPv4 gateway 
 +4) IPv6 address[/prefix] or "auto" for automatic"dhcp" for DHCP"ignore" to 
 +   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +   8.8.8.8,8.8.4.4 
 +7) [ ] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer 
 + 
 +Configuring device enp1s0.
 </code> </code>
  
-Notez que cette configuration a été stockée dans le fichier **/etc/sysconfig/network-scripts/ifcfg-ip_kvm** :+Il est important de configurer la prise en compte automatique de la configuration après le re-démarrage. Choisissez donc l'option **7** :
  
 <code> <code>
-[root@centos8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ip_kvm  +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-TYPE=Ethernet +refresh]: 7 
-PROXY_METHOD=none +================================================================================ 
-BROWSER_ONLY=no +================================================================================ 
-BOOTPROTO=none +Device configuration 
-IPADDR=192.168.56.2 + 
-PREFIX=24 +1) IPv4 address or "dhcp" for DHCP 
-GATEWAY=192.168.56.+   dhcp 
-DEFROUTE=yes +2) IPv4 netmask 
-IPV4_FAILURE_FATAL=no +3) IPv4 gateway 
-IPV6INIT=yes +4) IPv6 address[/prefix] or "auto" for automatic, "dhcp" for DHCP, "ignore" to 
-IPV6_AUTOCONF=yes +   turn off 
-IPV6_DEFROUTE=yes +   auto 
-IPV6_FAILURE_FATAL=no +5) IPv6 default gateway 
-IPV6_ADDR_GEN_MODE=stable-privacy +6) Nameservers (comma separated) 
-NAME=ip_kvm +   8.8.8.8,8.8.4.4 
-UUID=afc8b175-f2cb-47b2-baca-66454058c36f +7) [x] Connect automatically after reboot 
-DEVICE=ens19 +8) [ ] Apply configuration in installer 
-ONBOOT=yes+ 
 +Configuring device enp1s0.
 </code> </code>
  
-Vérifiez maintenant que vous pouvez communiquer avec la passerelle par défaut **192.168.56.1/24** :+Pour pouvoir installer les paquets logiciels, la configuration réseau doit être appliquée immédiatement. Choisissez donc l'option **8** :
  
 <code> <code>
-[root@centos8 ~]# ping 192.168.56.1 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data. +refresh]
-64 bytes from 192.168.56.1icmp_seq=1 ttl=64 time=14.6 ms +================================================================================ 
-64 bytes from 192.168.56.1: icmp_seq=2 ttl=64 time=0.209 ms +================================================================================ 
-64 bytes from 192.168.56.1: icmp_seq=3 ttl=64 time=0.160 ms +Device configuration 
-^C + 
---- 192.168.56.ping statistics --- +1) IPv4 address or "dhcp" for DHCP 
-packets transmitted3 received0% packet loss, time 2002ms +   dhcp 
-rtt min/avg/max/mdev = 0.160/4.990/14.601/6.796 ms+2) IPv4 netmask 
 +3) IPv4 gateway 
 +4) IPv6 address[/prefix] or "auto" for automatic"dhcp" for DHCP"ignore" to 
 +   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +   8.8.8.8,8.8.4.4 
 +7) [x] Connect automatically after reboot 
 +8) [x] Apply configuration in installer 
 + 
 +Configuring device enp1s0.
 </code> </code>
  
-Pour pouvoir gérer l'esclave par le pont qui va être créé, il faut modifier le fichier  **/etc/sysconfig/network-scripts/ifcfg-ip_kvm** :+Validez les configurations actuelles en appuyant sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# vi /etc/sysconfig/network-scripts/ifcfg-ip_kvm  +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-[root@centos8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ip_kvm  +refresh]: c 
-TYPE=Ethernet +================================================================================ 
-BOOTPROTO=none +================================================================================ 
-NAME=ip_kvm +Network configuration 
-UUID=afc8b175-f2cb-47b2-baca-66454058c36f + 
-DEVICE=ens19 +Wired (enp1s0) disconnected 
-ONBOOT=yes + 
-BRIDGE=virbr0+Host Name: testvm1.ittraining.network 
 + 
 +Current host name: localhost 
 + 
 +1) Set host name 
 +2) Configure device enp1s0
 </code> </code>
  
-Pour créer le pontil convient de créer le fichier **/etc/sysconfig/network-scripts/ifcfg-virbr0** :+Pour retourner au menu principalappuyez sur la touche **c** de nouveau :
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/sysconfig/network-scripts/ifcfg-virbr0 +Please make a selection from the above ['cto continue, 'q' to quit, 'r' to 
-ls: cannot access '/etc/sysconfig/network-scripts/ifcfg-virbr0': No such file or directory+refresh]
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-[root@centos8 ~]# vi /etc/sysconfig/network-scripts/ifcfg-virbr0 +1) [xLanguage settings                 2) [x] Time settings 
-[root@centos8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-virbr0 +       (French (France))                        (America/New_York timezone) 
-TYPE=BRIDGE +3) [!Installation source               4) [!] Software selection 
-DEVICE=virbr0 +       (Error setting up software               (Error checking software 
-BOOTPROTO=non +       source)                                  selection) 
-ONBOOT=yes +5) [!] Installation Destination          6) [x] Kdump 
-IPADDR=192.168.56.2 +       (No disks selected)                      (Kdump is enabled) 
-NETMASK=255.255.255.0 +7) [x] Network configuration             8) [!] Root password 
-GATEWAY=192.168.56.1+       (Wired (enp1s0) connected)               (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:  
 +[anaconda]1:main* 2:shell  3:log  4:storage-log >Switch tab: Alt+Tab | Help: F1 
 </code> </code>
  
-<WRAP center round important 60%+<WRAP center round important> 
-**Important** : Notez que le nom du pont est identique au pont existant. Ceci n'pas d'importanceNotez aussi que l'adresse IP, le masque du réseau ainsi que la passerelle sont configurés dans le fichier décrivant le pont.+Important : **Important** - Si la configuration en DHCP n'est pas prise en compteRefaites la configuration en IP fixe en indiquant une adresse 192.168.56.50un masque de sous-réseau de 255.255.255.0 et une adresse de passerelle de 192.168.56.1.
 </WRAP> </WRAP>
  
-Pour que la configuration puisse fonctionner, il est nécessaire d'activer le routage entre les interfaces dans l'hôte KVM :+===Time settings=== 
 + 
 +Choisissez maintenant l'option **2** pour définir le fuseau d'horaire de la VM :
  
 <code> <code>
-[root@centos8 ~]# echo net.ipv4.ip_forward 1 >> /usr/lib/sysctl.d/60-libvirtd.conf  +================================================================================ 
-[root@centos8 ~]# cat /usr/lib/sysctl.d/60-libvirtd.conf  +================================================================================ 
-# The kernel allocates aio memory on demand, and this number limits the +Installation
-# number of parallel aio requests; the only drawback of a larger limit is +
-# that a malicious guest could issue parallel requests to cause the kernel +
-# to set aside memory.  Set this number at least as large as +
-#   128 * (number of virtual disks on the host) +
-# Libvirt uses a default of 1M requests to allow 8k disks, with at most +
-# 64M of kernel memory if all disks hit an aio request at the same time. +
-fs.aio-max-nr 1048576 +
-net.ipv4.ip_forward 1 +
-</code>+
  
-En utilisant la commande **sysctl**, appliquez la nouvelle configuration :+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-<code> +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-[root@centos8 ~]# /sbin/sysctl -p /usr/lib/sysctl.d/60-libvirtd.conf  +'r' to refresh]: 2 
-fs.aio-max-nr 1048576 +================================================================================ 
-net.ipv4.ip_forward 1 +================================================================================ 
-</code>+Time settings
  
-Dernièrement, il est important de configurer le pare-feu pour le pont :+TimezoneAmerica/New_York
  
-<code> +NTP servers:not configured
-[root@centos8 ~]# firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o virbr0 -j ACCEPT +
-success +
-[root@centos8 ~]# firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i virbr0 -j ACCEPT +
-success +
-</code>+
  
-<code> +1) Change timezone 
-[root@centos8 ~]# firewall-cmd --reload +2) Configure NTP servers
-success+
 </code> </code>
  
-La configuration faite, vérifiez la prise en charge en utilisant la commande **ip** :+Choisissez l'option **1** pour modifier le fuseau d'horaire :
  
 <code> <code>
-[root@centos8 ~]# ip a +Please make a selection from the above ['c' to continue'q' to quit'r' to 
-1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 +refresh]: 1 
-    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 +================================================================================ 
-    inet 127.0.0.1/8 scope host lo +================================================================================ 
-       valid_lft forever preferred_lft forever +Timezone settings
-    inet6 ::1/128 scope host  +
-       valid_lft forever preferred_lft forever +
-2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +
-    link/ether 4e:b1:31:bd:5d:b2 brd ff:ff:ff:ff:ff:ff +
-    inet 10.0.2.46/24 brd 10.0.2.255 scope global noprefixroute ens18 +
-       valid_lft forever preferred_lft forever +
-    inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute ens18 +
-       valid_lft forever preferred_lft forever +
-    inet6 fe80::5223:aee1:998e:9f27/64 scope link noprefixroute  +
-       valid_lft forever preferred_lft forever +
-3: ens19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +
-    link/ether 46:de:37:c0:55:6c brd ff:ff:ff:ff:ff:ff +
-    inet 192.168.56.2/24 brd 192.168.56.255 scope global noprefixroute ens19 +
-       valid_lft forever preferred_lft forever +
-    inet6 fe80::4b01:d543:147:dd6d/64 scope link noprefixroute  +
-       valid_lft forever preferred_lft forever +
-4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +
-    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 +
-       valid_lft forever preferred_lft forever +
-5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +
-</code>+
  
-<WRAP center round important 60%> +Available regions 
-**Important** : Notez que la configuration n'as **pas** été prise en compte. En effet, l'adresse IP de **virbr0** est toujours **192.168.122.1**. +1) Europe                  5) Antarctica              9) Indian 
-</WRAP>+2) Asia                    6) Pacific                 10) Arctic 
 +3) America                 7) Australia               11) US 
 +4) Africa                  8) Atlantic                12) Etc 
 +<code>
  
-Consultez maintenant la list des réseaux configurés pour KVM :+Appuyez sur la touche **1** pour choisir **Europe** :
  
 <code> <code>
-[root@centos8 ~]# virsh net-list +Please select the timezone. Use numbers or type names directly ['b' back to 
- Name      State    Autostart   Persistent +region list, 'c' to continue, 'q' to quit, 'r' to refresh]: 1 
--------------------------------------------- +================================================================================ 
- default   active   yes         yes+================================================================================ 
 + 
 +1) Amsterdam               21) Kaliningrad            41) San_Marino 
 +2) Andorra                 22) Kiev                   42) Sarajevo 
 +3) Astrakhan               23) Kirov                  43) Saratov 
 +4) Athens                  24) Lisbon                 44) Simferopol 
 +5) Belgrade                25) Ljubljana              45) Skopje 
 +6) Berlin                  26) London                 46) Sofia 
 +7) Bratislava              27) Luxembourg             47) Stockholm 
 +8) Brussels                28) Madrid                 48) Tallinn 
 +9) Bucharest               29) Malta                  49) Tirane 
 +10) Budapest               30) Mariehamn              50) Ulyanovsk 
 +11) Busingen               31) Minsk                  51) Uzhgorod 
 +12) Chisinau               32) Monaco                 52) Vaduz 
 +13) Copenhagen             33) Moscow                 53) Vatican 
 +14) Dublin                 34) Oslo                   54) Vienna 
 +15) Gibraltar              35) Paris                  55) Vilnius 
 +16) Guernsey               36) Podgorica              56) Volgograd 
 +17) Helsinki               37) Prague                 57) Warsaw 
 +18) Isle_of_Man            38) Riga                   58) Zagreb 
 +19) Istanbul               39) Rome                   59) Zaporozhye 
 +20) Jersey                 40) Samara                 60) Zurich
 </code> </code>
  
-En utilisant la commande **virsh net-dumpxml**, il est possible de constater la configuration **actuelle** du pont :+Puis choisissez l'option **35** pour Paris :
  
 <code> <code>
-[root@centos8 ~]# virsh net-dumpxml default +Please select the timezone. Use numbers or type names directly ['bback to 
-<network> +region list, 'cto continue, 'qto quit, 'rto refresh]: 35 
-  <name>default</name> +================================================================================ 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +================================================================================ 
-  <forward mode='nat'> +Installation 
-    <nat> + 
-      <port start='1024end='65535'/> +1) [x] Language settings                 2) [x] Time settings 
-    </nat> +       (French (France))                        (Europe/Paris timezone) 
-  </forward> +3) [!] Installation source               4) [!] Software selection 
-  <bridge name='virbr0stp='on' delay='0'/> +       (Error setting up software               (Error checking software 
-  <mac address='52:54:00:79:02:66'/> +       source)                                  selection) 
-  <ip address='192.168.122.1' netmask='255.255.255.0'> +5) [!] Installation Destination          6) [x] Kdump 
-    <dhcp> +       (No disks selected)                      (Kdump is enabled) 
-      <range start='192.168.122.2end='192.168.122.254'/> +7) [x] Network configuration             8) [!] Root password 
-    </dhcp> +       (Wired (enp1s0) connected)               (Password is not set.) 
-  </ip> +9) [!] User creation 
-</network>+       (No user will be created) 
 + 
 +Please make a selection from the above ['bto begin installation, 'qto quit, 
 +'r' to refresh]: 
 </code> </code>
  
-Il est donc nécessaire d'éditer cette configuration pour refléter les modifications déjà apportées en utilisant la commande **virsh net-edit** :+===Root password=== 
 + 
 +Pour définir le mot de passe root de la VM, choisissez l'option **8** et indiquez le mot de passe **fenestros** :
  
 <code> <code>
-[root@centos8 ~]# virsh net-edit default +================================================================================ 
-</code>+================================================================================ 
 +Installation
  
-A l'issu de votre édition, votre fichier doit correspondre à l'exemple suivant :+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-<file> +Please make a selection from the above ['bto begin installation, 'qto quit, 
-<network> +'r' to refresh]8 
-  <name>default</name> +================================================================================ 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +================================================================================ 
-  <forward mode='nat'/> +Root password
-  <bridge name='virbr0stp='on' delay='0'/> +
-  <mac address='52:54:00:79:02:66'/> +
-  <ip address='192.168.56.10' netmask='255.255.255.0'> +
-    <dhcp> +
-      <range start='192.168.56.11' end='192.168.56.254'/> +
-    </dhcp> +
-  </ip> +
-</network> +
-</file>+
  
-Sortez du mode éditionVous noterez que la commande vous indique que le fichier a été modifié :+Please select new root password. You will have to type it twice.
  
-<code> +Password: fenestros 
-[ESC]:q +Password (confirm)fenestros 
-[root@centos8 ~]# virsh net-edit default +================================================================================ 
-Network default XML configuration edited. +================================================================================ 
-</code>+Question
  
-Par contre, la simple édition du fichier n'a pas modifiée la configuration en cours :+The password you have provided is weakThe password fails the dictionary check 
 +- it is based on a dictionary word 
 +Would you like to use it anyway?
  
-<code> +Please respond 'yes' or 'no': yes 
-[root@centos8 ~]# virsh net-dumpxml default +================================================================================ 
-<network> +================================================================================ 
-  <name>default</name> +Installation 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> + 
-  <forward mode='nat'> +1) [xLanguage settings                 2) [x] Time settings 
-    <nat> +       (French (France))                        (Europe/Paris timezone) 
-      <port start='1024' end='65535'/> +3) [!] Installation source               4) [!] Software selection 
-    </nat> +       (Error setting up software               (Error checking software 
-  </forward> +       source)                                  selection) 
-  <bridge name='virbr0' stp='on' delay='0'/> +5) [!] Installation Destination          6) [x] Kdump 
-  <mac address='52:54:00:79:02:66'/> +       (No disks selected)                      (Kdump is enabled) 
-  <ip address='192.168.122.1' netmask='255.255.255.0'> +7) [x] Network configuration             8) [x] Root password 
-    <dhcp> +       (Wired (enp1s0) connected)               (Password is set.) 
-      <range start='192.168.122.2end='192.168.122.254'/> +9) [ ] User creation 
-    </dhcp> +       (No user will be created) 
-  </ip> + 
-</network>+Please make a selection from the above ['bto begin installation, 'qto quit, 
 +'r' to refresh]: 
 </code> </code>
  
-Notez que même en cas de re-démarrage du service, la configuration actuelle est persistante +===Installation source=== 
 + 
 +Choisissez l'option **3** :
  
 <code> <code>
-[root@centos8 ~]# systemctl restart libvirtd +================================================================================ 
-[root@centos8 ~]# systemctl status libvirtd +================================================================================ 
-● libvirtd.service - Virtualization daemon +Installation
-   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) +
-   Active: active (running) since Thu 2021-09-02 10:27:41 EDT; 7s ago +
-     Docs: man:libvirtd(8) +
-           https://libvirt.org +
- Main PID: 4037 (libvirtd) +
-    Tasks: 19 (limit: 32768) +
-   Memory: 57.5M +
-   CGroup: /system.slice/libvirtd.service +
-           ├─1950 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper +
-           ├─1951 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper +
-           └─4037 /usr/sbin/libvirtd --timeout 120+
  
-Sep 02 10:27:41 centos8.ittraining.loc systemd[1]: Starting Virtualization daemon... +1) [xLanguage settings                 2) [x] Time settings 
-Sep 02 10:27:41 centos8.ittraining.loc systemd[1]: Started Virtualization daemon. +       (French (France))                        (Europe/Paris timezone) 
-Sep 02 10:27:41 centos8.ittraining.loc dnsmasq[1950]: read /etc/hosts - 2 addresses +3) [!Installation source               4) [!] Software selection 
-Sep 02 10:27:41 centos8.ittraining.loc dnsmasq[1950]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses +       (Error setting up software               (Error checking software 
-Sep 02 10:27:41 centos8.ittraining.loc dnsmasq-dhcp[1950]: read /var/lib/libvirt/dnsmasq/default.hostsfile+       source)                                  selection) 
 +5) [!] Installation Destination          6) [xKdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [xNetwork configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created)
  
-[root@centos8 ~]# virsh net-dumpxml default +Please make a selection from the above ['bto begin installation, 'qto quit, 
-<network> +'rto refresh]: 3 
-  <name>default</name> +================================================================================ 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +================================================================================ 
-  <forward mode='nat'+Installation source 
-    <nat> + 
-      <port start='1024end='65535'/> +Choose an installation source type
-    </nat> +1) CD/DVD 
-  </forward> +2) local ISO file 
-  <bridge name='virbr0' stp='on' delay='0'/> +3) Network
-  <mac address='52:54:00:79:02:66'/> +
-  <ip address='192.168.122.1' netmask='255.255.255.0'> +
-    <dhcp> +
-      <range start='192.168.122.2' end='192.168.122.254'/> +
-    </dhcp> +
-  </ip> +
-</network>+
 </code> </code>
  
-Re-démarrez donc votre VM :+L'ISO utilisé est de type **net-install**. Choisissez donc l'option **3** :
  
 <code> <code>
-[root@centos8 ~]# reboot+Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: 3 
 +================================================================================ 
 +================================================================================ 
 +Installation source 
 + 
 +1) Closest mirror 
 +2) http:// 
 +3) https:// 
 +4) ftp:// 
 +5) nfs
 </code> </code>
  
-Connectez-vous de nouveau à votre VM et contrôler la sortie de la commande **nmcli c show** :+Choisissez l'option **1** pour utiliser le miroir le plus proche :
  
 <code> <code>
-[root@centos8 ~]# nmcli show +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-NAME     UUID                                  TYPE      DEVICE  +refresh]: 1 
-ip_fixe  0f48c74d-5d16-4c37-8220-24644507b589  ethernet  ens18   +================================================================================ 
-virbr0   289e0fdd-2eb5-4dd3-811a-65a878926e56  bridge    virbr0  +================================================================================ 
-ip_kvm   afc8b175-f2cb-47b2-baca-66454058c36f  ethernet  ens19   +Installation
-ens18    fc4a4d23-b15e-47a7-bcfa-b2e08f49553e  ethernet  --    +
-</code>+
  
-Utilisez ensuite la commande **ip** pour vérifier l'adresse IP de **virbr0** :+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [!] Software selection 
 +       (Closest mirror)                         (Nothing selected) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created)
  
-<code> +Please make a selection from the above ['b' to begin installation'q' to quit
-[root@centos8 ~]# ip a +'r' to refresh]
-1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 +
-    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 +
-    inet 127.0.0.1/8 scope host lo +
-       valid_lft forever preferred_lft forever +
-    inet6 ::1/128 scope host  +
-       valid_lft forever preferred_lft forever +
-2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +
-    link/ether 4e:b1:31:bd:5d:b2 brd ff:ff:ff:ff:ff:ff +
-    inet 10.0.2.46/24 brd 10.0.2.255 scope global noprefixroute ens18 +
-       valid_lft forever preferred_lft forever +
-    inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute ens18 +
-       valid_lft forever preferred_lft forever +
-    inet6 fe80::5223:aee1:998e:9f27/64 scope link noprefixroute  +
-       valid_lft forever preferred_lft forever +
-3: ens19: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master virbr0 state UP group default qlen 1000 +
-    link/ether 46:de:37:c0:55:6c brd ff:ff:ff:ff:ff:ff +
-4: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +
-    inet 192.168.56.10/24 brd 192.168.56.255 scope global virbr0 +
-       valid_lft forever preferred_lft forever +
-5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000 +
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff+
 </code> </code>
  
-Dernièrement, vérifier la connectivité avec la passerelle **192.162.56.1/24** :+===Software selection=== 
 + 
 +Choisissez l'option **4** puis l'option **3** pour indiquer une installation minimale du système 
  
 <code> <code>
-[root@centos8 ~]# ping 192.168.56.1 +================================================================================ 
-PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data. +================================================================================ 
-64 bytes from 192.168.56.1: icmp_seq=1 ttl=64 time=14.8 ms +Installation
-64 bytes from 192.168.56.1: icmp_seq=2 ttl=64 time=0.154 ms +
-64 bytes from 192.168.56.1: icmp_seq=3 ttl=64 time=0.153 ms +
-^C +
---- 192.168.56.1 ping statistics --- +
-3 packets transmitted, 3 received, 0% packet loss, time 2023ms +
-rtt min/avg/max/mdev 0.153/5.030/14.785/6.897 ms +
-</code>+
  
-====2.- Configuration du Stockage====+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [!] Software selection 
 +       (Closest mirror)                         (Nothing selected) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created)
  
-KVM besoin d'un emplacement pour stocker les VMs créées. L'hôte KVM a été configuré avec un disque supplémentaire **sdd** d'une taille de **32 Go** à cet effet :+Please make selection from the above ['bto begin installation, 'q' to quit, 
 +'rto refresh]
 +================================================================================ 
 +================================================================================ 
 +Software selection
  
-<code> +Base environment
-[root@centos8 ~]# lsblk +
-NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT +
-sda                   8:   0   32G  0 disk  +
-├─sda1                8:1    0    1G  0 part /boot +
-└─sda2                8:2    0   31G  0 part  +
-  ├─cl_centos8-root 253:0    0 27.8G  0 lvm  / +
-  └─cl_centos8-swap 253:1    0  3.2G  0 lvm  [SWAP] +
-sdb                   8:16      4G  0 disk  +
-sdc                   8:32     64G  0 disk  +
-└─sdc1                8:33     64G  0 part /home +
-sdd                   8:48     32G  0 disk  +
-sr0                  11:0    1 1024M  0 rom    +
-</code>+
  
-Créez donc sur **/dev/sdd** un volume physique ainsi qu'un groupe de volumes appelé **kvm_storage** :+1) [ ] Server with GUI                  4) [ ] Workstation 
 +2) [ ] Server                           5) [ ] Virtualization Host 
 +3) [ ] Minimal Install                  6) [ ] Custom Operating System
  
-<code> +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-[root@centos8 ~]# pvcreate /dev/sdd +refresh]: 3 
-  Physical volume "/dev/sdd" successfully created. +================================================================================ 
-[root@centos8 ~]# vgcreate kvm_storage /dev/sdd +================================================================================ 
-  Volume group "kvm_storage" successfully created+Software selection 
 + 
 +Base environment 
 + 
 +1) [ ] Server with GUI                  4) [ ] Workstation 
 +2) [ ] Server                           5) [ ] Virtualization Host 
 +3) [x] Minimal Install                  6) [ ] Custom Operating System
 </code> </code>
 +
 +Appuyez ensuite sur la touche **c** pour pouvoir éventuellement choisir des installations supplémentaires :
  
 <code> <code>
-[root@centos8 ~]# vgs +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-  VG          #PV #LV #SN Attr   VSize   VFree   +refresh]: c 
-  cl_centos8        0 wz--n- <31.00g      0  +================================================================================ 
-  kvm_storage   1     0 wz--n- <32.00g <32.00g+================================================================================ 
 +Software selection 
 + 
 +Additional software for selected environment 
 + 
 +1) [ ] Guest Agents                     8) [ ] Headless Management 
 +2) [ ] Standard                         9) [ ] Legacy UNIX Compatibility 
 +3) [ ] Container Management             10) [ ] Network Servers 
 +4) [ ] .NET Core Development            11) [ ] Scientific Support 
 +5) [ ] RPM Development Tools            12) [ ] Security Tools 
 +6) [ ] Development Tools                13) [ ] Smart Card Support 
 +7) [ ] Graphical Administration Tools   14) [ ] System Tools
 </code> </code>
  
-Créez ensuite un volume logique, dénommé **kvm_lv**, occupant toute l'espace disponible dans le groupe de volumes :+Ne choisissez rien dans la liste et appuyez simplement sur la touche **c** pour revenir au menu principal :
  
 <code> <code>
-[root@centos8 ~]# lvcreate -l +100%FREE -n kvm_lv kvm_storage +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-  Logical volume "kvm_lv" created. +refresh]: c 
-   +================================================================================ 
-[root@centos8 ~]# lvs +================================================================================ 
-  LV     VG          Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert +Installation 
-  root   cl_centos8  -wi-ao----  27.79g                                                     + 
-  swap   cl_centos8  -wi-ao----   3.20g                                                     +1) [xLanguage settings                 2) [x] Time settings 
-  kvm_lv kvm_storage -wi-a----- <32.00g+       (French (France))                        (Europe/Paris timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Processing...)                          (Processing...) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: r 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [x] Software selection 
 +       (Closest mirror)                         (Minimal Install) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:
 </code> </code>
  
-Créez ensuite un système de fichiers de type **xfs** sur le volume logique **kvm_lv** : +===Installation Destination=== 
-  + 
 +Choisissez l'option **5** pour définir l'emplacement de l'installation 
 <code> <code>
-[root@centos8 ~]# mkfs.xfs /dev/mapper/kvm_storage-kvm_lv +================================================================================ 
-meta-data=/dev/mapper/kvm_storage-kvm_lv isize=512    agcount=4, agsize=2096896 blks +================================================================================ 
-                               sectsz=512   attr=2, projid32bit=+Installation 
-                               crc=1        finobt=1, sparse=1, rmapbt=+ 
-                               reflink=+1) [x] Language settings                 2) [x] Time settings 
-data                           bsize=4096   blocks=8387584, imaxpct=25 +       (French (France))                        (Europe/Paris timezone) 
-                               sunit=0      swidth=0 blks +3) [x] Installation source               4) [x] Software selection 
-naming   =version 2              bsize=4096   ascii-ci=0, ftype=+       (Closest mirror)                         (Minimal Install) 
-log      =internal log           bsize=4096   blocks=4095, version=+5) [!] Installation Destination          6) [x] Kdump 
-                               sectsz=512   sunit=0 blks, lazy-count=1 +       (No disks selected)                      (Kdump is enabled) 
-realtime =none                   extsz=4096   blocks=0, rtextents=0 +7) [x] Network configuration             8) [x] Root password 
-Discarding blocks...Done.+       (Wired (enp1s0) connected)               (Password is set.
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 5 
 +Probing storage...
 </code> </code>
  
-Editez ensuite le fichier **/etc/fstab** afin de monter automatiquement le volume logique sur **/var/lib/libvirt/images** :+Séléctionnez le disque **vda** et appuyez sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# vi /etc/fstab +================================================================================ 
-[root@centos8 ~]# cat /etc/fstab+================================================================================ 
 +Installation Destination
  
-+1) [x] : 5 GiB (vda)
-# /etc/fstab +
-# Created by anaconda on Wed Jun 16 06:21:32 2021 +
-+
-# Accessible filesystems, by reference, are maintained under '/dev/disk/'+
-# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. +
-+
-# After editing this file, run 'systemctl daemon-reload' to update systemd +
-# units generated from this file. +
-+
-/dev/mapper/cl_centos8-root /                       xfs     defaults        0 0 +
-UUID=1c04981e-5317-4b73-9695-3ce25246835d /boot                   ext4    defaults        1 2 +
-/dev/mapper/cl_centos8-swap swap                    swap    defaults        0 0 +
-UUID=f76d6b66-985b-4a91-af9c-4987e8c1443c /home     ext4          defaults,usrquota,grpquota            1 2+
  
-## KVM Guest Image Store +1 disk selected; 5 GiB capacity; 5 GiB free ... 
-/dev/mapper/kvm_storage-kvm_lv   /var/lib/libvirt/images xfs defaults 0 0+ 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: c
 </code> </code>
  
-Montez ensuite le volume logique :+A ce stade il vous est possible de choisir l'option **4** et de créer des partitions spécifiques en termes de points de montage en fonction de l'utilisation prévue pour la VM. Dans le cas de ce LAB, appuyez simplement sur le chois **2** puis sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# df -h +================================================================================ 
-Filesystem                   Size  Used Avail Use% Mounted on +================================================================================ 
-devtmpfs                     1.8G      1.8G   0% /dev +Partitioning Options
-tmpfs                        1.9G      1.9G   0% /dev/shm +
-tmpfs                        1.9G  9.5M  1.9G   1% /run +
-tmpfs                        1.9G      1.9G   0% /sys/fs/cgroup +
-/dev/mapper/cl_centos8-root   28G   17G   12G  58% / +
-/dev/sda1                    976M  453M  457M  50% /boot +
-/dev/sdc1                     63G   22G   39G  36% /home +
-tmpfs                        374M   20K  374M   1% /run/user/1000 +
-tmpfs                        374M  1.2M  373M   1% /run/user/42+
  
-[root@centos8 ~]mount -a+1) [ ] Replace Existing Linux system(s) 
 +2) [ ] Use All Space 
 +3) [ ] Use Free Space 
 +4) [ ] Manually assign mount points
  
-[root@centos8 ~]# df -h +Installation requires partitioning of your hard driveSelect what space to use 
-Filesystem                      Size  Used Avail Use% Mounted on +for the install target or manually assign mount points.
-devtmpfs                        1.8G      1.8G   0% /dev +
-tmpfs                           1.9G      1.9G   0% /dev/shm +
-tmpfs                           1.9G  9.5M  1.9G   1% /run +
-tmpfs                           1.9G      1.9G   0% /sys/fs/cgroup +
-/dev/mapper/cl_centos8-root      28G   17G   12G  58% / +
-/dev/sda1                       976M  453M  457M  50% /boot +
-/dev/sdc1                        63G   22G   39G  36% /home +
-tmpfs                           374M   20K  374M   1% /run/user/1000 +
-tmpfs                           374M  1.2M  373M   1% /run/user/42 +
-/dev/mapper/kvm_storage-kvm_lv   32G  261M   32G   1% /var/lib/libvirt/images +
-</code>+
  
-Notez que ce volume est actuellement vide :+Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]
 +================================================================================ 
 +================================================================================ 
 +Partitioning Options
  
 +1) [ ] Replace Existing Linux system(s)
 +2) [x] Use All Space
 +3) [ ] Use Free Space
 +4) [ ] Manually assign mount points
 +
 +Installation requires partitioning of your hard drive. Select what space to use
 +for the install target or manually assign mount points.
 +
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
 +refresh]: c
 +</code>
 +
 +A ce stade il vous est possible de choisir le type d'installation, soit **Standard Partition**, **LVM** ou **LVM Thin Provisioning**. Notez que le choix par défaut proposé est **LVM** :
 + 
 <code> <code>
-[root@centos8 ~]# ls -l /var/lib/libvirt/images/ +================================================================================ 
-total 0+================================================================================ 
 +Partition Scheme Options 
 + 
 +1) [ ] Standard Partition 
 +2) [x] LVM 
 +3) [ ] LVM Thin Provisioning 
 + 
 +Select a partition scheme configuration.
 </code> </code>
  
-Utilisez la commande **virsh pool-list** pour voir les pools de stockage déjà configurés. Cette liste devrait être vide :+Bien que préférable de choisir l'option par défaut pour des VMs en production . Par contre, pour des raisons liées à la suite de ce LAB, choisissez l'option **1** puis sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-list +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
- Name   State   Autostart +refresh]: 1 
----------------------------+================================================================================ 
 +================================================================================ 
 +Partition Scheme Options
  
 +1) [x] Standard Partition
 +2) [ ] LVM
 +3) [ ] LVM Thin Provisioning
 +
 +Select a partition scheme configuration.
 +
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
 +refresh]: c
 +Generating updated storage configuration
 +Checking storage configuration...
 </code> </code>
  
-Définissez le pool de stockage **kvm-storagepool** dans KVM grâce à la commande **virsh pool-define-as** :+===Démarrer l'Installation=== 
 + 
 +De retour au menu principal, choisissez l'option **b** pour démarrer l'installation :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-define-as kvm-storagepool --type=dir --target /var/lib/libvirt/images+================================================================================ 
-Pool kvm-storagepool defined+================================================================================ 
 +Installation 
 + 
 +1) [xLanguage settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [x] Software selection 
 +       (Closest mirror)                         (Minimal Install) 
 +5) [x] Installation Destination          6) [x] Kdump 
 +       (Automatic partitioning                  (Kdump is enabled) 
 +       selected) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: b
 </code> </code>
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** : Consultez **[[https://libvirt.org/storage.html#StorageBackendDir|cette page]]** pour connaître les types de pool utilisés par libvirt.+**Important** : Notez que nous n'avons pas spécifié d'utilisateursCette décision n'est pas bloquante pour la suite de l'installation.
 </WRAP> </WRAP>
  
-Consultez **[[https://libvirt.org/storage.html#StorageBackendDir|cette page]]** pour connaître les types de pool utilisés par libvirt. +L'installation démarre et se poursuit :
- +
-Démarrez maintenant le pool **kvm-storagepool** :+
  
 <code> <code>
-[root@centos8 ~]# virsh pool-start kvm-storagepool +... 
-Pool kvm-storagepool started+Configuring storage 
 +
 +Installing boot loader 
 +
 +Performing post-installation setup tasks 
 +
 + 
 +Configuring installed system 
 +.......... 
 +Writing network configuration 
 +
 +Creating users 
 +.... 
 +Configuring addons 
 +Executing com_redhat_kdump addon 
 +Executing org_fedora_oscap addon 
 +
 +Generating initramfs 
 +
 +Running post-installation scripts 
 +
 +Storing configuration files and kickstarts 
 +..
 </code> </code>
  
-Contrôlez l'état du pool **kvm-storagepool** :+===Démarrer la VM===
  
-[root@centos8 ~]# virsh pool-list +A l'issu de l'installation, appuyez sur la touche [Enterpour démarrez la VM : 
- Name              State    Autostart + 
---------------------------------------- +<code> 
- kvm-storagepool   active   no+Installation complete. Press ENTER to quit:  
 +... 
 +[  OK  ] Started Network Manager. 
 +         Starting Network Manager Wait Online... 
 +[  OK  ] Reached target Network. 
 +         Starting OpenSSH server daemon... 
 +         Starting Permit User Sessions... 
 +         Starting Dynamic System Tuning Daemon... 
 +         Starting Hostname Service... 
 +[  OK  ] Started OpenSSH server daemon. 
 +[  OK  ] Started Permit User Sessions. 
 +         Starting Hold until boot process finishes up... 
 +[  OK  ] Started Command Scheduler. 
 +         Starting Terminate Plymouth Boot Screen... 
 +  18.386454] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
 </code> </code>
  
-<WRAP center round important 60%> +====1.5 - Vérification de la VM Invitée====
-**Important** : Notez que le pool ne sera pas démarré automatiquement parce que la valeur d**'autostart** est **no**. +
-</WRAP>+
  
-Fixez la valeur d'autostart à **yes** grâce à la commande **virsh pool-autostart** :+Au prompt, connectez-vous en tant que **root** avec le mot de passe **fenestros** :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-autostart kvm-storagepool +CentOS Linux 8 
-Pool kvm-storagepool marked as autostarted+Kernel 4.18.0-305.12.1.el8_4.x86_64 on an x86_64
  
-[root@centos8 ~]# virsh pool-list +testvm1 login: root 
- Name              State    Autostart +Mot de passe : fenestros 
---------------------------------------- +[root@testvm1 ~]# 
- kvm-storagepool   active   yes+
 </code> </code>
  
-Dernièrement, constatez les détails du pool configuré :+===Réseau=== 
 + 
 +Vérifiez la prise en compte d'une adresse IPv4 dans le réseau 192.168.56.0/24 :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-list --all --details +[root@testvm1 ~]# ip a 
- Name              State     Autostart   Persistent   Capacity    Allocation   Available +1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 
------------------------------------------------------------------------------------------- +    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
- kvm-storagepool   running   yes         yes          31.98 GiB   260.61 MiB   31.73 GiB+    inet 127.0.0.1/8 scope host lo 
 +       valid_lft forever preferred_lft forever 
 +    inet6 ::1/128 scope host  
 +       valid_lft forever preferred_lft forever 
 +2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 
 +    link/ether 52:54:00:44:af:a1 brd ff:ff:ff:ff:ff:ff 
 +    inet 192.168.56.83/24 brd 192.168.56.255 scope global dynamic noprefixroute enp1s0 
 +       valid_lft 3534sec preferred_lft 3534sec 
 +    inet6 fe80::6191:6417:8b53:bcb9/64 scope link noprefixroute  
 +       valid_lft forever preferred_lft forever
 </code> </code>
 +
 +===Internet===
 +
 +Vérifiez la connectivité de la VM :
  
 <code> <code>
-[root@centos8 ~]# df -h /var/lib/libvirt/images/ +[root@testvm1 ~]# ping www.free.fr 
-Filesystem                      Size  Used Avail UseMounted on +PING www.free.fr (212.27.48.10) 56(84) bytes of data. 
-/dev/mapper/kvm_storage-kvm_lv   32G  261M   32G   1% /var/lib/libvirt/images+64 bytes from www.free.fr (212.27.48.10): icmp_seq=1 ttl=46 time=29.9 ms 
 +64 bytes from www.free.fr (212.27.48.10): icmp_seq=2 ttl=46 time=30.1 ms 
 + 
 +--- www.free.fr ping statistics --
 +2 packets transmitted, 2 received, 0packet loss, time 1001ms 
 +rtt min/avg/max/mdev = 29.887/29.989/30.091/0.102 ms 
 +[root@testvm1 ~]# [ALT GR]+[CTRL]+[)] 
 +[root@centos8 ~]#
 </code> </code>
 +
 +<WRAP center round important 60%>
 +**Important** : Notez l'utilisation de la séquence de touches [ALT GR]+[CTRL]+[)] sur un clavier français afin de se détacher de la VM. C'est-à-dire, la touche [AltGr] et rester appuyer plus la touche [Ctrl] et rester appuyer plus la touche [)].
 +</WRAP>
  
 ----- -----
-<html> +Copyright © 2022 Hugh Norris
-<div align="center"> +
-Copyright © 2021 Hugh Norris+
-</html>+
Menu