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/02 16:59] 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 - Gestion de KVM - Présentation, Installation et Configuration======+======LCF605 - Installation de Machines Virtuelles KVM======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **LCF605 - Gestion de KVM - Présentation, Installation et Configuration**+  * **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>
-  * **Virtuo** un périphérique disque paravirtualisé.+
  
-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 
-<code        +</file>
-[root@centos8 ~]egrep '(vmx|svm)' /proc/cpuinfo | wc -l  +
-8 +
-</code>+
  
-<code>  +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** :
-[root@centos8 ~]# dnf module install virt -y  +
-</code>+
  
-<code>  +<file
-[root@centos8 ~]dnf install virt-install virt-viewer -y    +VBoxManage clonehd myimage.vdi myrawimage.img --format raw 
-</code>+</file>
  
-<code>  +Ensuite il convient d'utiliser la commande **qemu-img convert** pour convertir l'image au format raw en qcow2 :
-[root@centos8 ~]# dnf install bridge-utils -y  +
-</code>+
  
-<code>  +<file
-[root@centos8 ~]dnf install virt-top libguestfs-tools -y +qemu-img convert -f raw -O qcow2 myrawimage.img mynewimage.qcow2 
-</code>+</file>
  
-====1.Activation et Démarrage du Service libvirtd====+====1.Configuration de l'Installation de l'OS Invité==== 
 + 
 +===Language Settings=== 
 + 
 +Commencez par appuyer sur le choix **1** :
  
 <code> <code>
-[root@centos8 ~]# systemctl enable --now libvirtd +... 
-[root@centos8 ~]# systemctl status libvirtd +Starting installer, one moment..
-● libvirtd.service - Virtualization daemon +anaconda 29.19.1.13-1.el8 for CentOS Linux started. 
-   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) + * installation log files are stored in /tmp during the installation 
-   Active: active (running) since Wed 2021-09-01 10:19:05 EDT; 11s ago + * shell is available on TTY2 
-     Docs: man:libvirtd(8) + * if the graphical installation interface fails to start, try again with the 
-           https://libvirt.org +   inst.text bootoption to start text installation 
- Main PID: 7502 (libvirtd) + * when reporting a bug add logs from /tmp as separate text/plain attachments 
-    Tasks: 19 (limit: 32768) +14:08:33 Not asking for VNC because we don't have a network 
-   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 +Installation
-           ├─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... +1) [xLanguage settings                 2) [x] Time settings 
-Sep 01 10:19:05 centos8.ittraining.loc systemd[1]: Started Virtualization daemon+       (English (United States))                (America/New_York timezone) 
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read /etc/hosts - 2 addresses +3) [!] Installation source               4) [!] Software selection 
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses +       (Processing...)                          (Processing...) 
-Sep 01 10:19:06 centos8.ittraining.loc dnsmasq-dhcp[1942]: read /var/lib/libvirt/dnsmasq/default.hostsfile +5) [!Installation Destination          6) [x] Kdump 
-</code>+       (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)
  
-====1.3 - Modules du Noyau====+Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 1 
 +================================================================================ 
 +================================================================================
  
-<code> +3) Arabic                  29) Hebrew                 55) Norwegian Nynorsk 
-[root@centos8 ~]# modinfo kvm +4) Assamese                30) Hindi                  56) Northern Sotho 
-filename:       /lib/modules/4.18.0-305.7.1.el8.i2tch.x86_64/kernel/arch/x86/kvm/kvm.ko.xz +5) Asturian                31) Croatian               57) Odia 
-license:        GPL +6) Belarusian              32) Hungarian              58) Punjabi 
-author:         Qumranet +7) Bulgarian               33) Interlingua            59) Polish 
-rhelversion:    8.4 +8) Bangla                  34) Indonesian             60) Portuguese 
-srcversion:     0B52FB25C4DD9865FC4FABA +9) Tibetan                 35) Icelandic              61) Romanian 
-depends:        irqbypass +10) Bosnian                36) Italian                62) Russian 
-intree:         Y +11) Catalan                37) Japanese               63) Sinhala 
-name:           kvm +12) Czech                  38) Georgian               64) Slovak 
-vermagic:       4.18.0-305.7.1.el8.i2tch.x86_64 SMP mod_unload modversions  +13) Welsh                  39) Kazakh                 65) Slovenian 
-sig_id:         PKCS#7 +14) Danish                 40) Khmer                  66) Albanian 
-signer:         CentOS kernel signing key +15) German                 41) Kannada                67) Serbian 
-sig_key:        38:77:B1:DF:46:4F:B7:5C:99:8B:B9:BF:70:A4:10:85:91:7F:50:C1 +16) Greek                  42) Korean                 68) Swedish 
-sig_hashalgo:   sha256 +17) English                43) Lithuanian             69) Tamil 
-signature:      24:2A:F9:57:2C:FB:D8:B1:3B:4B:FA:70:3B:FC:7E:23:E1:AC:06:5B: +18) Spanish                44) Latvian                70) Telugu 
-                8D:0B:83:15:A5:56:43:04:23:FD:89:B1:BD:2C:8B:D0:0D:99:8C:9B: +19) Estonian               45) Maithili               71) Tajik 
-                16:E5:E8:BB:C2:32:EE:62:18:E2:38:F9:2D:9D:1A:68:CA:63:3C:3B: +20) Basque                 46) Macedonian             72) Thai 
-                B1:02:2E:46:FF:DF:6C:28:33:79:6D:FA:63:0A:B3:BA:DC:C7:FC:1D: +21) Persian                47) Malayalam              73) Turkish 
-                FF:14:21:6C:AC:4B:67:2E:EC:A3:B8:96:A0:02:8C:BB:34:CA:CE:23: +22) Finnish                48) Marathi                74) Ukrainian 
-                BD:34:10:B0:87:B6:55:7C:A9:24:1C:3A:94:9B:05:66:0D:E5:EE:28: +23) Filipino               49) Malay                  75) Urdu 
-                CF:EE:74:9C:D3:CD:96:07:92:F6:D0:6C:FF:94:67:7A:C2:BB:26:BD: +24) French                 50) Burmese                76) Vietnamese 
-                A9:AA:04:7C:19:64:1C:3D:9D:20:EE:1F:12:C1:D2:64:D3:36:62:22: +25) Friulian               51) Norwegian Bokmål       77) Mandarin Chinese 
-                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: +Press ENTER to continue:  
-                19:6A:60:F5:12:6D:C9:E3:86:37:AF:41:88:E3:08:47:F0:C1:C4:76: +26) Irish                  52) Low German             78) Zulu
-                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>
 +
 +Choisissez l'option **24** puis l'option **1** :
  
 <code> <code>
-[root@centos8 ~]# modinfo kvm_intel +Please select language support to install ['b' to return to language list, 'c' 
-filename      /lib/modules/4.18.0-305.7.1.el8.i2tch.x86_64/kernel/arch/x86/kvm/kvm-intel.ko.xz +to continue, 'q' to quit, 'r' to refresh]: 24 
-license:        GPL +================================================================================ 
-author:         Qumranet +================================================================================ 
-rhelversion:    8.4 +Language settings 
-srcversion:     E25F50CB67CEEDD925DE618 + 
-alias:          cpu:type:x86,ven*fam*mod*:feature:*0085* +Available locales 
-depends:        kvm +1) French (France)         3) French (Belgium)        5) French (Luxembourg) 
-intree:         +2) French (Canada)         4) French (Switzerland) 
-name:           kvm_intel + 
-vermagic:       4.18.0-305.7.1.el8.i2tch.x86_64 SMP mod_unload modversions  +Please select language support to install ['b' to return to language list, 'c' 
-sig_id:         PKCS#7 +to continue, 'q' to quit, 'r' to refresh]1 
-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 +Installation 
-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: +1) [x] Language settings                 2) [x] Time settings 
-                91:EC:0C:D8:F1:BA:60:BF:B1:D5:3A:DE:A7:DA:9B:F0:16:FD:B1:37: +       (French (France))                        (America/New_York timezone) 
-                BB:DC:28:39:0D:99:92:45:1D:9B:19:42:9D:F7:9F:79:BB:31:86:8C: +3) [!] Installation source               4) [!] Software selection 
-                E4:00:18:B8:40:85:96:D2:F3:91:11:9A:8A:CD:90:1F:2A:A6:99:3A: +       (Error setting up software               (Error checking software 
-                2B:B1:D7:A5:52:D5:DA:5A:C9:57:23:42:7B:36:91:F1:CD:21:DC:87: +       source)                                  selection) 
-                56:53:C9:2F:23:9E:E3:F2:C7:17:46:90:F0:A5:46:C4:C7:46:8A:09: +5) [!] Installation Destination          6) [x] Kdump 
-                3B:17:34:8F:EB:C8:42:1C:06:E8:21:AB:D5:BA:66:3E:71:9C:0E:A1: +       (No disks selected)                      (Kdump is enabled) 
-                6C:51:7B:19:DF:02:F5:39:8A:8D:09:87:8E:F0:61:04:5E:A7:01:76: +7) [!] Network configuration             8) [!] Root password 
-                51:E6:7A:C7:56:D5:AF:29:02:C1:0D:13:28:C1:5C:01:D9:13:44:3C: +       (Not connected)                          (Password is not set.) 
-                D0:B9:58:0C:46:AF:ED:9E:BE:C2:70:48:35:5F:DE:77:F4:29:16:FA: +9) [!] User creation 
-                25:E2:FC:93:A4:8A:CC:69:DC:C1:11:0B:3A:24:D0:81:A2:2A:B8:E7: +       (No user will be created) 
-                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: +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-                AC:4D:5F:E6:C1:EA:51:2B:EF:59:30:67:91:39:C1:E9:9D:A9:70:30: +'r' to refresh]:  
-                2E:25:37:A3:F2:3E:5A:5B:98:A6:EA:75:E7:AE:42:31:62:C1:A5:6A: +[anaconda]1:main* 2:shell  3:log  4:storage-log >Switch tabAlt+Tab | HelpF1 
-                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> </code>
  
-=====LAB #2 - Configuration de KVM======+===Network configuration===
  
-====2.1 - Configuration du Pare-feu====+Choisissez maintenant l'option **7** :
  
 <code> <code>
-[root@centos8 ~]# firewall-cmd --permanent --add-port=5901/tcp +================================================================================ 
-success +================================================================================ 
-</code> +Installation
  
 +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)
 +
 +Please make a selection from the above ['b' to begin installation, 'q' to quit,
 +'r' to refresh]: 7
 +================================================================================
 +================================================================================
 +Network configuration
 +
 +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 --reload 
-success 
-</code> 
  
-====2.2 - Configuration du Réseau des VMs====+Choisissez ensuite l'option **1** pour définir le nom d'hôte de la VM :
  
 <code> <code>
-[root@centos8 ~]# ip show ens19 +Please make 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]: 1 
-    link/ether 46:de:37:c0:55:6c brd ff:ff:ff:ff:ff:ff +================================================================================ 
-[root@centos8 ~]# nmcli show +================================================================================ 
-NAME     UUID                                  TYPE      DEVICE  +Enter a new value for 'Host Name' and press ENTERtestvm1.ittraining.network 
-ip_fixe  0f48c74d-5d16-4c37-8220-24644507b589  ethernet  ens18   +================================================================================ 
-virbr0   d330b8f4-d08b-4b15-93cc-45c61e26ca6a  bridge    virbr0  +================================================================================ 
-ens18    fc4a4d23-b15e-47a7-bcfa-b2e08f49553e  ethernet  --      +Network configuration
-[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  --      +
-[root@centos8 ~]# ip a +
-1lo: <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 +
-2ens18: <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>+
  
 +Wired (enp1s0) disconnected
 +
 +Host Name: testvm1.ittraining.network
 +
 +Current host name: localhost
 +
 +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 +Choisissez l'option **2** pour configurer la connexion réseau :
-    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 +
-</code>+
  
 <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]: 2 
-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.1 +   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 +7) [ ] Connect automatically after reboot 
-UUID=afc8b175-f2cb-47b2-baca-66454058c36f +8) [ ] Apply configuration in installer
-DEVICE=ens19 +
-ONBOOT=yes +
-</code>+
  
 +Configuring device enp1s0.
 <code> <code>
-[root@centos8 ~]# ping 192.168.56.1 + 
-PING 192.168.56.(192.168.56.1) 56(84) bytes of data. +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** :
-64 bytes from 192.168.56.1: icmp_seq=1 ttl=64 time=14.ms +
-64 bytes from 192.168.56.1: icmp_seq=2 ttl=64 time=0.209 ms +
-64 bytes from 192.168.56.1icmp_seq=3 ttl=64 time=0.160 ms +
-^C +
---- 192.168.56.1 ping statistics --- +
-3 packets transmitted, 3 received, 0% packet loss, time 2002ms +
-rtt min/avg/max/mdev = 0.160/4.990/14.601/6.796 ms +
-</code>+
  
 <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]: 6 
-TYPE=Ethernet +================================================================================ 
-BOOTPROTO=none +================================================================================ 
-NAME=ip_kvm +Enter a new value for 'Nameservers (comma separated)' and press ENTER: 8.8.8.8,8 
-UUID=afc8b175-f2cb-47b2-baca-66454058c36f +.8.4.4 
-DEVICE=ens19 +================================================================================ 
-ONBOOT=yes +================================================================================ 
-BRIDGE=virbr0+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>
 +
 +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 ~]# 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]
 +================================================================================ 
 +================================================================================ 
 +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) [x] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer 
 + 
 +Configuring device enp1s0.
 </code> </code>
 +
 +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 ~]# vi /etc/sysconfig/network-scripts/ifcfg-virbr0 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-[root@centos8 ~]# cat /etc/sysconfig/network-scripts/ifcfg-virbr0 +refresh]: 8 
-TYPE=BRIDGE +================================================================================ 
-DEVICE=virbr0 +================================================================================ 
-BOOTPROTO=non +Device configuration 
-ONBOOT=yes + 
-IPADDR=192.168.56.+1) IPv4 address or "dhcp" for DHCP 
-NETMASK=255.255.255.+   dhcp 
-GATEWAY=192.168.56.1+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>
 +
 +Validez les configurations actuelles en appuyant sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# echo net.ipv4.ip_forward = 1 >> /usr/lib/sysctl.d/60-libvirtd.conf  +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-[root@centos8 ~]# cat /usr/lib/sysctl.d/60-libvirtd.conf  +refresh]: c 
-# The kernel allocates aio memory on demand, and this number limits the +================================================================================ 
-# 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 +Network configuration 
-# to set aside memory.  Set this number at least as large as + 
-#   128 * (number of virtual disks on the host+Wired (enp1s0disconnected 
-# 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. +Host Name: testvm1.ittraining.network 
-fs.aio-max-nr = 1048576 + 
-net.ipv4.ip_forward = 1+Current host name: localhost 
 + 
 +1) Set host name 
 +2) Configure device enp1s0
 </code> </code>
 +
 +Pour retourner au menu principal, appuyez sur la touche **c** de nouveau :
  
 <code> <code>
-[root@centos8 ~]# /sbin/sysctl -p /usr/lib/sysctl.d/60-libvirtd.conf  +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-fs.aio-max-nr 1048576 +refresh]: c 
-net.ipv4.ip_forward = 1+================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +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) 
 + 
 +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>
 +Important : **Important** - Si la configuration en DHCP n'est pas prise en compte. Refaites la configuration en IP fixe en indiquant une adresse 192.168.56.50, un masque de sous-réseau de 255.255.255.0 et une adresse de passerelle de 192.168.56.1.
 +</WRAP>
 +
 +===Time settings===
 +
 +Choisissez maintenant l'option **2** pour définir le fuseau d'horaire de la VM :
  
 <code> <code>
-[root@centos8 ~]# firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -o bridge0 -j ACCEPT +================================================================================ 
-success +================================================================================ 
-[root@centos8 ~]# firewall-cmd --permanent --direct --passthrough ipv4 -I FORWARD -i bridge0 -j ACCEPT +Installation 
-success+ 
 +1) [xLanguage 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) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 2 
 +================================================================================ 
 +================================================================================ 
 +Time settings 
 + 
 +Timezone: America/New_York 
 + 
 +NTP servers:not configured 
 + 
 +1) Change timezone 
 +2) Configure NTP servers
 </code> </code>
 +
 +Choisissez l'option **1** pour modifier le fuseau d'horaire :
  
 <code> <code>
-[root@centos8 ~]# firewall-cmd --reload +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-success +refresh]: 1 
-</code>+================================================================================ 
 +================================================================================ 
 +Timezone settings
  
 +Available regions
 +1) Europe                  5) Antarctica              9) Indian
 +2) Asia                    6) Pacific                 10) Arctic
 +3) America                 7) Australia               11) US
 +4) Africa                  8) Atlantic                12) Etc
 <code> <code>
-[root@centos8 ~]# ip a 
-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 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> 
  
-192.168.122.1+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>
 +
 +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>
 +
 +===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+================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [xLanguage 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) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 8 
 +================================================================================ 
 +================================================================================ 
 +Root password 
 + 
 +Please select new root password. You will have to type it twice. 
 + 
 +Password: fenestros 
 +Password (confirm): fenestros 
 +================================================================================ 
 +================================================================================ 
 +Question 
 + 
 +The password you have provided is weak: The password fails the dictionary check 
 +it is based on a dictionary word 
 +Would you like to use it anyway? 
 + 
 +Please respond 'yes' or 'no': yes 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +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) [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]: 
 </code> </code>
  
-<file> +===Installation source=== 
-<network> + 
-  <name>default</name> +Choisissez l'option **3** :
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +
-  <forward mode='nat'/> +
-  <bridge name='virbr0' stp='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> +
-[ESC]:+
-</file>+
  
 <code> <code>
-[root@centos8 ~]# virsh net-edit default +================================================================================ 
-Network default XML configuration edited.+================================================================================ 
 +Installation 
 + 
 +1) [xLanguage 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) [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]: 3 
 +================================================================================ 
 +================================================================================ 
 +Installation source 
 + 
 +Choose an installation source type. 
 +1) CD/DVD 
 +2) local ISO file 
 +3) Network
 </code> </code>
 +
 +L'ISO utilisé est de type **net-install**. Choisissez donc l'option **3** :
  
 <code> <code>
-[root@centos8 ~]# virsh net-dumpxml default +Please make a selection from the above ['cto continue, 'qto quit, 'rto 
-<network> +refresh]: 3 
-  <name>default</name> +================================================================================ 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +================================================================================ 
-  <forward mode='nat'+Installation source 
-    <nat> + 
-      <port start='1024end='65535'/> +1) Closest mirror 
-    </nat> +2) http:// 
-  </forward> +3) https:/
-  <bridge name='virbr0' stp='on' delay='0'/> +4) ftp:/
-  <mac address='52:54:00:79:02:66'/> +5) nfs
-  <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>
  
-Changes not shown because not applied+Choisissez l'option **1** pour utiliser le miroir le plus proche :
  
 <code> <code>
-[root@centos8 ~]# systemctl restart libvirtd +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-[root@centos8 ~]# systemctl status libvirtd +refresh]: 1 
-● libvirtd.service - Virtualization daemon +================================================================================ 
-   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor presetenabled) +================================================================================ 
-   Active: active (running) since Thu 2021-09-02 10:27:41 EDT; 7s ago +Installation
-     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) [xTime 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) [xInstallation source               4) [!] Software selection 
-Sep 02 10:27:41 centos8.ittraining.loc dnsmasq[1950]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses +       (Closest mirror)                         (Nothing selected) 
-Sep 02 10:27:41 centos8.ittraining.loc dnsmasq-dhcp[1950]: read /var/lib/libvirt/dnsmasq/default.hostsfile +5) [!Installation Destination          6) [x] Kdump 
-[root@centos8 ~]# virsh net-dumpxml default +       (No disks selected)                      (Kdump is enabled) 
-<network> +7) [xNetwork configuration             8) [x] Root password 
-  <name>default</name> +       (Wired (enp1s0) connected)               (Password is set.) 
-  <uuid>0679ee40-befd-4f48-841e-7fc64885eb49</uuid> +9) [ ] User creation 
-  <forward mode='nat'+       (No user will be created) 
-    <nat> + 
-      <port start='1024end='65535'/> +Please make a selection from the above ['bto begin installation, 'qto quit, 
-    </nat> +'rto refresh]
-  </forward> +
-  <bridge name='virbr0stp='on' delay='0'/> +
-  <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>
  
-Reboot+===Software selection=== 
 + 
 +Choisissez l'option **4** puis l'option **3** pour indiquer une installation minimale du système : 
  
 <code> <code>
-[root@centos8 ~]# nmcli c show +================================================================================ 
-NAME     UUID                                  TYPE      DEVICE  +================================================================================ 
-ip_fixe  0f48c74d-5d16-4c37-8220-24644507b589  ethernet  ens18   +Installation 
-virbr0   289e0fdd-2eb5-4dd3-811a-65a878926e56  bridge    virbr0  + 
-ip_kvm   afc8b175-f2cb-47b2-baca-66454058c36f  ethernet  ens19   +1) [x] Language settings                 2) [x] Time settings 
-ens18    fc4a4d23-b15e-47a7-bcfa-b2e08f49553e  ethernet  --      +       (French (France))                        (Europe/Paris timezone) 
-[root@centos8 ~]# ip a +3) [xInstallation source               4) [!] Software selection 
-1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 +       (Closest mirror)                         (Nothing selected) 
-    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 +5) [!] Installation Destination          6) [x] Kdump 
-    inet 127.0.0.1/scope host lo +       (No disks selected)                      (Kdump is enabled) 
-       valid_lft forever preferred_lft forever +7) [x] Network configuration             8) [x] Root password 
-    inet6 ::1/128 scope host  +       (Wired (enp1s0) connected)               (Password is set.) 
-       valid_lft forever preferred_lft forever +9) [ ] User creation 
-2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +       (No user will be created) 
-    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 +Please make a selection from the above ['b' to begin installation'q' to quit
-       valid_lft forever preferred_lft forever +'r' to refresh]4 
-    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  +Software selection 
-       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 +Base environment 
-    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 +1) [ ] Server with GUI                  4) [ ] Workstation 
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff +2) [ ] Server                           5) [ ] Virtualization Host 
-    inet 192.168.56.10/24 brd 192.168.56.255 scope global virbr0 +3) [ ] Minimal Install                  6) [ ] Custom Operating System 
-       valid_lft forever preferred_lft forever + 
-5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000 +Please make a selection from the above ['c' to continue'q' to quit'r' to 
-    link/ether 52:54:00:79:02:66 brd ff:ff:ff:ff:ff:ff+refresh]3 
 +================================================================================ 
 +================================================================================ 
 +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 ~]# 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.8 ms +================================================================================ 
-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 +Software selection 
-^C + 
---- 192.168.56.ping statistics --- +Additional software for selected environment 
-packets transmitted, 3 received, 0% packet loss, time 2023ms + 
-rtt min/avg/max/mdev = 0.153/5.030/14.785/6.897 ms+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>
  
-====2.3 - Configuration du Stockage====+Ne choisissez rien dans la liste et appuyez simplement sur la touche **c** pour revenir au menu principal :
  
 <code> <code>
-[root@centos8 ~]# lsblk +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT +refresh]: c 
-sda                   8:   0   32G  0 disk  +================================================================================ 
-├─sda1                8:1    0    1G  0 part /boot +================================================================================ 
-└─sda2                8:     31G  0 part  +Installation 
-  ├─cl_centos8-root 253:0    0 27.8G  0 lvm  + 
-  └─cl_centos8-swap 253:1    0  3.2G  0 lvm  [SWAP+1) [x] Language settings                 2) [x] Time settings 
-sdb                   8:16      4G  0 disk  +       (French (France))                        (Europe/Paris timezone) 
-sdc                   8:32     64G  0 disk  +3) [!] Installation source               4) [!] Software selection 
-└─sdc1                8:33     64G  0 part /home +       (Processing...)                          (Processing...) 
-sdd                   8:48      1G  0 disk  +5) [!] Installation Destination          6) [xKdump 
-sr0                  11:0    1 1024M  0 rom  +       (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]
 +================================================================================ 
 +================================================================================ 
 +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 a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:
 </code> </code>
 +
 +===Installation Destination===
 +
 +Choisissez l'option **5** pour définir l'emplacement de l'installation :
  
 <code> <code>
-[root@centos8 ~]# pvcreate /dev/sdd +================================================================================ 
-  Physical volume "/dev/sdd" successfully created+================================================================================ 
-[root@centos8 ~]# vgcreate kvm_storage /dev/sdd +Installation 
-  Volume group "kvm_storage" successfully created+ 
 +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) [!] 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]: 5 
 +Probing storage...
 </code> </code>
 +
 +Séléctionnez le disque **vda** et appuyez sur la touche **c** :
  
 <code> <code>
-[root@centos8 ~]# vgs +================================================================================ 
-  VG          #PV #LV #SN Attr   VSize    VFree    +================================================================================ 
-  cl_centos8      2   0 wz--n-  <31.00g       0  +Installation Destination 
-  kvm_storage       0 wz--n- 1020.00m 1020.00m+ 
 +1) [x: 5 GiB (vda) 
 + 
 +disk selected; 5 GiB capacity; 5 GiB free ... 
 + 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: c
 </code> </code>
 +
 +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 ~]# lvcreate -l +100%FREE -n kvm_lv kvm_storage +================================================================================ 
-  Logical volume "kvm_lv" created. +================================================================================ 
-[root@centos8 ~]# lvs +Partitioning Options 
-  LV     VG          Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert + 
-  root   cl_centos8  -wi-ao----   27.79g                                                     +1) [ ] Replace Existing Linux system(s) 
-  swap   cl_centos8  -wi-ao----    3.20g                                                     +2) [ ] Use All Space 
-  kvm_lv kvm_storage -wi-a----- 1020.00m  +3) [ ] Use Free Space 
-  </code> +4) [ ] Manually assign mount points 
-   + 
-  <code> +Installation requires partitioning of your hard driveSelect what space to use 
-  [root@centos8 ~]# mkfs.xfs /dev/mapper/kvm_storage-kvm_lv +for the install target or manually assign mount points
-meta-data=/dev/mapper/kvm_storage-kvm_lv isize=512    agcount=4, agsize=65280 blks + 
-                               sectsz=512   attr=2, projid32bit=+Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-                               crc=1        finobt=1, sparse=1, rmapbt=+refresh]: 2 
-                               reflink=+================================================================================ 
-data                           bsize=4096   blocks=261120, imaxpct=25 +================================================================================ 
-                               sunit=0      swidth=0 blks +Partitioning Options 
-naming   =version 2              bsize=4096   ascii-ci=0, ftype=+ 
-log      =internal log           bsize=4096   blocks=1566, version=+1) [ ] Replace Existing Linux system(s) 
-                               sectsz=512   sunit=0 blks, lazy-count=1 +2) [x] Use All Space 
-realtime =none                   extsz=4096   blocks=0, rtextents=0 +3) [ ] Use Free Space 
-Discarding blocks...Done.+4) [ ] Manually assign mount points 
 + 
 +Installation requires partitioning of your hard driveSelect 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> </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 ~]# vi /etc/fstab +================================================================================ 
-[root@centos8 ~]# cat /etc/fstab+================================================================================ 
 +Partition Scheme Options
  
-+1[ ] Standard Partition 
-# /etc/fstab +2) [x] LVM 
-# Created by anaconda on Wed Jun 16 06:21:32 2021 +3) [ ] LVM Thin Provisioning
-+
-# 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 +
-/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 +Select a partition scheme configuration.
-/dev/mapper/kvm_storage-kvm_lv   /var/lib/libvirt/images xfs defaults 0 0+
 </code> </code>
 +
 +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 ~]# df -h +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-Filesystem                   Size  Used Avail Use% Mounted on +refresh]: 
-devtmpfs                     1.8G      1.8G   0% /dev +================================================================================ 
-tmpfs                        1.9G      1.9G   0% /dev/shm +================================================================================ 
-tmpfs                        1.9G  9.5M  1.9G   1% /run +Partition Scheme Options 
-tmpfs                        1.9G      1.9G   0% /sys/fs/cgroup + 
-/dev/mapper/cl_centos8-root   28G   16G   13G  56% / +1) [x] Standard Partition 
-/dev/sda1                    976M  453M  457M  50% /boot +2) [ ] LVM 
-/dev/sdc1                     63G   21G   39G  35% /home +3) [ ] LVM Thin Provisioning 
-tmpfs                        374M   16K  374M   1% /run/user/1000 + 
-tmpfs                        374M  1.2M  373M   1% /run/user/42 +Select a partition scheme configuration
-[root@centos8 ~]# mount -a + 
-[root@centos8 ~]# df -h +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-Filesystem                      Size  Used Avail Use% Mounted on +refresh]: c 
-devtmpfs                        1.8G      1.8G   0% /dev +Generating updated storage configuration 
-tmpfs                           1.9G      1.9G   0% /dev/shm +Checking storage configuration...
-tmpfs                           1.9G  9.5M  1.9G   1% /run +
-tmpfs                           1.9G      1.9G   0% /sys/fs/cgroup +
-/dev/mapper/cl_centos8-root      28G   16G   13G  56% / +
-/dev/sda1                       976M  453M  457M  50% /boot +
-/dev/sdc1                        63G   21G   39G  35% /home +
-tmpfs                           374M   16K  374M   1% /run/user/1000 +
-tmpfs                           374M  1.2M  373M   1% /run/user/42 +
-/dev/mapper/kvm_storage-kvm_lv 1014M   40M  975M   4% /var/lib/libvirt/images+
 </code> </code>
 +
 +===Démarrer l'Installation===
 +
 +De retour au menu principal, choisissez l'option **b** pour démarrer l'installation :
  
 <code> <code>
-[root@centos8 ~]# ls -l /var/lib/libvirt/images+================================================================================ 
-total 0+================================================================================ 
 +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%>
 +**Important** : Notez que nous n'avons pas spécifié d'utilisateurs. Cette décision n'est pas bloquante pour la suite de l'installation.
 +</WRAP>
 +
 +L'installation démarre et se poursuit :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-list +... 
- Name   State   Autostart +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>
 +
 +===Démarrer la VM===
 +
 +A l'issu de l'installation, appuyez sur la touche [Enter] pour démarrez la VM :
  
 <code> <code>
-[root@centos8 ~]# virsh pool-define-as kvm-storagepool --type=dir --target /var/lib/libvirt/images/ +Installation complete. Press ENTER to quit:  
-Pool kvm-storagepool defined+... 
 + 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>
  
-<code> +====1.5 Vérification de la VM Invitée====
-[root@centos8 ~]# virsh pool-start kvm-storagepool +
-Pool kvm-storagepool started+
  
-[root@centos8 ~]# virsh pool-list +Au prompt, connectez-vous en tant que **root** avec le mot de passe **fenestros** :
- Name              State    Autostart +
---------------------------------------- +
- kvm-storagepool   active   no +
-</code>+
  
 <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>
 +
 +===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          1013.88 MiB   39.34 MiB    974.55 MiB+    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 1014M   40M  975M   4% /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