Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:centos:8:avance:l105 [2021/08/23 10:51] – created admin | elearning:workbooks:centos:8:avance:l105 [2022/02/22 15:15] (Version actuelle) – created admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ======LCF605 - La Virtualisation, KVM et QEMU====== | + | ~~PDF: |
+ | |||
+ | Version : **2022.01** | ||
+ | |||
+ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
+ | |||
+ | ======LCF605 - Installation de Machines Virtuelles KVM====== | ||
+ | |||
+ | =====Contenu du Module===== | ||
+ | |||
+ | * **LCF605 - Installation de Machines Virtuelles KVM** | ||
+ | * Contenu du Module | ||
+ | * LAB #1 - Installation d'une Machine Virtuelle CentOS 8 | ||
+ | * 1.1 - Identification du Short ID | ||
+ | * 1.2 - Configuration du Stockage des ISOs | ||
+ | * 1.3 - Installation du Domaine | ||
+ | * Format des Images | ||
+ | * Convertir le Format de l' | ||
+ | * 1.4 - Configuration de l' | ||
+ | * Language Settings | ||
+ | * Network configuration | ||
+ | * Time settings | ||
+ | * Root password | ||
+ | * Installation source | ||
+ | * Software selection | ||
+ | * Installation Destination | ||
+ | * Démarrer l' | ||
+ | * Démarrer la VM | ||
+ | * 1.5 - Vérification de la VM Invitée | ||
+ | * Réseau | ||
+ | * Internet | ||
+ | |||
+ | =====LAB #1 - Installation d'une Machine Virtuelle CentOS 8===== | ||
+ | |||
+ | ====1.1 - Identification du Short ID==== | ||
+ | |||
+ | KVM sait virtualiser un grand nombre de systèmes d' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# osinfo-query os | more | ||
+ | Short ID | Name | Version | ||
+ | ----------------------+----------------------------------------------------+----------+----------------------------------------- | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | --More-- | ||
+ | </ | ||
+ | |||
+ | 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 : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# osinfo-query os | grep "Red Hat" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Afin d' | ||
+ | |||
+ | * Colonne 2, | ||
+ | * **Name**, | ||
+ | * Le nom officiel du système d' | ||
+ | * Colonne 3, | ||
+ | * **Version**, | ||
+ | * La version du système d' | ||
+ | * 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** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# osinfo-query os | grep centos | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | **Important** : Notez que le Short ID de CentOS 8 est actuellement **centos8** quelque soit la version. | ||
+ | </ | ||
+ | |||
+ | ====1.2 - Configuration du Stockage des ISOs==== | ||
+ | |||
+ | Afin d' | ||
+ | |||
+ | < | ||
+ | [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 | ||
+ | |||
+ | [root@centos8 ~]# chmod 755 CentOS-8.1.1911-x86_64-boot.iso | ||
+ | |||
+ | [root@centos8 ~]# mkdir /isos | ||
+ | |||
+ | [root@centos8 ~]# mv CentOS-8.1.1911-x86_64-boot.iso /isos | ||
+ | |||
+ | [root@centos8 ~]# chown -R qemu:qemu /isos | ||
+ | </ | ||
+ | |||
+ | ====1.3 - Installation du Domain==== | ||
+ | |||
+ | Démarrez maintenant l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# virt-install --network bridge: | ||
+ | |||
+ | Starting install... | ||
+ | Retrieving file vmlinuz... | ||
+ | Retrieving file initrd.img... | ||
+ | Allocating ' | ||
+ | WARNING | ||
+ | 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 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | **Important** : Notez que la quantité de mémoire est automatiquement et provisoirement augmentée à 3072 Mo afin que l' | ||
+ | </ | ||
+ | |||
+ | Dans cette commande on peut constater l' | ||
+ | |||
+ | ^ Option ^ Commentaire ^ | ||
+ | | --network bridge: | Fixe la valeur du pont à utiliser par la VM à virbr0 | | ||
+ | | --name | ||
+ | | --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é | ||
+ | | --graphics | La valeur **none** indique que l' | ||
+ | | --location= | Indique l' | ||
+ | | --extra-args= | Indique les options de la connectivité de la console | | ||
+ | |||
+ | ===Format des Images=== | ||
+ | |||
+ | Une image est un disque virtuel. KVM reconnait les formats d' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# qemu-img -h | grep Supported | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | **Important** : Consultez **[[https:// | ||
+ | </ | ||
+ | |||
+ | ===Convertir le Format de l' | ||
+ | |||
+ | Il est possible de convertir un format d' | ||
+ | |||
+ | < | ||
+ | # qemu-img convert -f vmdk -O qcow2 myimage.vmdk mynewimage.qcow2 | ||
+ | </ | ||
+ | |||
+ | Dans le cas d'une image au format **vdi** d' | ||
+ | |||
+ | < | ||
+ | # VBoxManage clonehd myimage.vdi myrawimage.img --format raw | ||
+ | </ | ||
+ | |||
+ | Ensuite il convient d' | ||
+ | |||
+ | < | ||
+ | # qemu-img convert -f raw -O qcow2 myrawimage.img mynewimage.qcow2 | ||
+ | </ | ||
+ | |||
+ | ====1.4 - Configuration de l' | ||
+ | |||
+ | ===Language Settings=== | ||
+ | |||
+ | Commencez par appuyer sur le choix **1** : | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | Starting installer, one moment... | ||
+ | anaconda 29.19.1.13-1.el8 for CentOS Linux 8 started. | ||
+ | * installation log files are stored in /tmp during the installation | ||
+ | * shell is available on TTY2 | ||
+ | * if the graphical installation interface fails to start, try again with the | ||
+ | | ||
+ | * when reporting a bug add logs from /tmp as separate text/plain attachments | ||
+ | 14:08:33 Not asking for VNC because we don't have a network | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [!] Network configuration | ||
+ | (Not connected) | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | |||
+ | 3) Arabic | ||
+ | 4) Assamese | ||
+ | 5) Asturian | ||
+ | 6) Belarusian | ||
+ | 7) Bulgarian | ||
+ | 8) Bangla | ||
+ | 9) Tibetan | ||
+ | 10) Bosnian | ||
+ | 11) Catalan | ||
+ | 12) Czech 38) Georgian | ||
+ | 13) Welsh 39) Kazakh | ||
+ | 14) Danish | ||
+ | 15) German | ||
+ | 16) Greek 42) Korean | ||
+ | 17) English | ||
+ | 18) Spanish | ||
+ | 19) Estonian | ||
+ | 20) Basque | ||
+ | 21) Persian | ||
+ | 22) Finnish | ||
+ | 23) Filipino | ||
+ | 24) French | ||
+ | 25) Friulian | ||
+ | |||
+ | Press ENTER to continue: | ||
+ | 26) Irish 52) Low German | ||
+ | </ | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | Please select language support to install [' | ||
+ | to continue, ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Language settings | ||
+ | |||
+ | Available locales | ||
+ | 1) French (France) | ||
+ | 2) French (Canada) | ||
+ | |||
+ | Please select language support to install [' | ||
+ | to continue, ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [!] Network configuration | ||
+ | (Not connected) | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | [anaconda]1: | ||
+ | </ | ||
+ | |||
+ | ===Network configuration=== | ||
+ | |||
+ | Choisissez maintenant l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [!] Network configuration | ||
+ | (Not connected) | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Network configuration | ||
+ | |||
+ | Wired (enp1s0) disconnected | ||
+ | |||
+ | Host Name: localhost.localdomain | ||
+ | |||
+ | Current host name: localhost | ||
+ | |||
+ | 1) Set host name | ||
+ | 2) Configure device enp1s0 | ||
+ | < | ||
+ | |||
+ | Choisissez ensuite l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 1 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Enter a new value for 'Host Name' and press ENTER: testvm1.ittraining.network | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Network configuration | ||
+ | |||
+ | Wired (enp1s0) disconnected | ||
+ | |||
+ | Host Name: testvm1.ittraining.network | ||
+ | |||
+ | Current host name: localhost | ||
+ | |||
+ | 1) Set host name | ||
+ | 2) Configure device enp1s0 | ||
+ | < | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 2 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Device configuration | ||
+ | |||
+ | 1) IPv4 address or " | ||
+ | | ||
+ | 2) IPv4 netmask | ||
+ | 3) IPv4 gateway | ||
+ | 4) IPv6 address[/ | ||
+ | turn off | ||
+ | | ||
+ | 5) IPv6 default gateway | ||
+ | 6) Nameservers (comma separated) | ||
+ | 7) [ ] Connect automatically after reboot | ||
+ | 8) [ ] Apply configuration in installer | ||
+ | |||
+ | Configuring device enp1s0. | ||
+ | < | ||
+ | |||
+ | Laissez l’option **1** en **dhcp** puis choisissez l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 6 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Enter a new value for ' | ||
+ | .8.4.4 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Device configuration | ||
+ | |||
+ | 1) IPv4 address or " | ||
+ | | ||
+ | 2) IPv4 netmask | ||
+ | 3) IPv4 gateway | ||
+ | 4) IPv6 address[/ | ||
+ | turn off | ||
+ | | ||
+ | 5) IPv6 default gateway | ||
+ | 6) Nameservers (comma separated) | ||
+ | | ||
+ | 7) [ ] Connect automatically after reboot | ||
+ | 8) [ ] Apply configuration in installer | ||
+ | |||
+ | Configuring device enp1s0. | ||
+ | </ | ||
+ | |||
+ | Il est important de configurer la prise en compte automatique de la configuration après le re-démarrage. Choisissez donc l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 7 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Device configuration | ||
+ | |||
+ | 1) IPv4 address or " | ||
+ | | ||
+ | 2) IPv4 netmask | ||
+ | 3) IPv4 gateway | ||
+ | 4) IPv6 address[/ | ||
+ | turn off | ||
+ | | ||
+ | 5) IPv6 default gateway | ||
+ | 6) Nameservers (comma separated) | ||
+ | | ||
+ | 7) [x] Connect automatically after reboot | ||
+ | 8) [ ] Apply configuration in installer | ||
+ | |||
+ | Configuring device enp1s0. | ||
+ | </ | ||
+ | |||
+ | Pour pouvoir installer les paquets logiciels, la configuration réseau doit être appliquée immédiatement. Choisissez donc l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 8 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Device configuration | ||
+ | |||
+ | 1) IPv4 address or " | ||
+ | | ||
+ | 2) IPv4 netmask | ||
+ | 3) IPv4 gateway | ||
+ | 4) IPv6 address[/ | ||
+ | turn off | ||
+ | | ||
+ | 5) IPv6 default gateway | ||
+ | 6) Nameservers (comma separated) | ||
+ | | ||
+ | 7) [x] Connect automatically after reboot | ||
+ | 8) [x] Apply configuration in installer | ||
+ | |||
+ | Configuring device enp1s0. | ||
+ | </ | ||
+ | |||
+ | Validez les configurations actuelles en appuyant sur la touche **c** : | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Network configuration | ||
+ | |||
+ | Wired (enp1s0) disconnected | ||
+ | |||
+ | Host Name: testvm1.ittraining.network | ||
+ | |||
+ | Current host name: localhost | ||
+ | |||
+ | 1) Set host name | ||
+ | 2) Configure device enp1s0 | ||
+ | </ | ||
+ | |||
+ | Pour retourner au menu principal, appuyez sur la touche **c** de nouveau : | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | [anaconda]1: | ||
+ | </ | ||
+ | |||
+ | <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, | ||
+ | </ | ||
+ | |||
+ | ===Time settings=== | ||
+ | |||
+ | Choisissez maintenant l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Time settings | ||
+ | |||
+ | Timezone: America/ | ||
+ | |||
+ | NTP servers:not configured | ||
+ | |||
+ | 1) Change timezone | ||
+ | 2) Configure NTP servers | ||
+ | </ | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 1 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Timezone settings | ||
+ | |||
+ | Available regions | ||
+ | 1) Europe | ||
+ | 2) Asia 6) Pacific | ||
+ | 3) America | ||
+ | 4) Africa | ||
+ | < | ||
+ | |||
+ | Appuyez sur la touche **1** pour choisir **Europe** : | ||
+ | |||
+ | < | ||
+ | Please select the timezone. Use numbers or type names directly [' | ||
+ | region list, ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | |||
+ | 1) Amsterdam | ||
+ | 2) Andorra | ||
+ | 3) Astrakhan | ||
+ | 4) Athens | ||
+ | 5) Belgrade | ||
+ | 6) Berlin | ||
+ | 7) Bratislava | ||
+ | 8) Brussels | ||
+ | 9) Bucharest | ||
+ | 10) Budapest | ||
+ | 11) Busingen | ||
+ | 12) Chisinau | ||
+ | 13) Copenhagen | ||
+ | 14) Dublin | ||
+ | 15) Gibraltar | ||
+ | 16) Guernsey | ||
+ | 17) Helsinki | ||
+ | 18) Isle_of_Man | ||
+ | 19) Istanbul | ||
+ | 20) Jersey | ||
+ | </ | ||
+ | |||
+ | Puis choisissez l' | ||
+ | |||
+ | < | ||
+ | Please select the timezone. Use numbers or type names directly [' | ||
+ | region list, ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | ===Root password=== | ||
+ | |||
+ | Pour définir le mot de passe root de la VM, choisissez l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [!] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | 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 ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | ===Installation source=== | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation source | ||
+ | |||
+ | Choose an installation source type. | ||
+ | 1) CD/DVD | ||
+ | 2) local ISO file | ||
+ | 3) Network | ||
+ | </ | ||
+ | |||
+ | L'ISO utilisé est de type **net-install**. Choisissez donc l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 3 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation source | ||
+ | |||
+ | 1) Closest mirror | ||
+ | 2) http:// | ||
+ | 3) https:// | ||
+ | 4) ftp:// | ||
+ | 5) nfs | ||
+ | </ | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 1 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [x] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | ===Software selection=== | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [x] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Software selection | ||
+ | |||
+ | Base environment | ||
+ | |||
+ | 1) [ ] Server with GUI 4) [ ] Workstation | ||
+ | 2) [ ] Server | ||
+ | 3) [ ] Minimal Install | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | refresh]: 3 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Software selection | ||
+ | |||
+ | Base environment | ||
+ | |||
+ | 1) [ ] Server with GUI 4) [ ] Workstation | ||
+ | 2) [ ] Server | ||
+ | 3) [x] Minimal Install | ||
+ | </ | ||
+ | |||
+ | Appuyez ensuite sur la touche **c** pour pouvoir éventuellement choisir des installations supplémentaires : | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Software selection | ||
+ | |||
+ | Additional software for selected environment | ||
+ | |||
+ | 1) [ ] Guest Agents | ||
+ | 2) [ ] Standard | ||
+ | 3) [ ] Container Management | ||
+ | 4) [ ] .NET Core Development | ||
+ | 5) [ ] RPM Development Tools 12) [ ] Security Tools | ||
+ | 6) [ ] Development Tools 13) [ ] Smart Card Support | ||
+ | 7) [ ] Graphical Administration Tools 14) [ ] System Tools | ||
+ | </ | ||
+ | |||
+ | Ne choisissez rien dans la liste et appuyez simplement sur la touche **c** pour revenir au menu principal : | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [!] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [x] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | ===Installation Destination=== | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [x] Installation source | ||
+ | | ||
+ | 5) [!] Installation Destination | ||
+ | (No disks selected) | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | Probing storage... | ||
+ | </ | ||
+ | |||
+ | Séléctionnez le disque **vda** et appuyez sur la touche **c** : | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation Destination | ||
+ | |||
+ | 1) [x] : 5 GiB (vda) | ||
+ | |||
+ | 1 disk selected; 5 GiB capacity; 5 GiB free ... | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | </ | ||
+ | |||
+ | A ce stade il vous est possible de choisir l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Partitioning Options | ||
+ | |||
+ | 1) [ ] Replace Existing Linux system(s) | ||
+ | 2) [ ] Use All Space | ||
+ | 3) [ ] Use Free Space | ||
+ | 4) [ ] Manually assign mount points | ||
+ | |||
+ | Installation requires partitioning of your hard drive. Select what space to use | ||
+ | for the install target or manually assign mount points. | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | refresh]: 2 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Partitioning Options | ||
+ | |||
+ | 1) [ ] Replace Existing Linux system(s) | ||
+ | 2) [x] Use All Space | ||
+ | 3) [ ] Use Free Space | ||
+ | 4) [ ] Manually assign mount points | ||
+ | |||
+ | Installation requires partitioning of your hard drive. Select what space to use | ||
+ | for the install target or manually assign mount points. | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | </ | ||
+ | |||
+ | A ce stade il vous est possible de choisir le type d' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Partition Scheme Options | ||
+ | |||
+ | 1) [ ] Standard Partition | ||
+ | 2) [x] LVM | ||
+ | 3) [ ] LVM Thin Provisioning | ||
+ | |||
+ | Select a partition scheme configuration. | ||
+ | </ | ||
+ | |||
+ | Bien que préférable de choisir l' | ||
+ | |||
+ | < | ||
+ | Please make a selection from the above [' | ||
+ | refresh]: 1 | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Partition Scheme Options | ||
+ | |||
+ | 1) [x] Standard Partition | ||
+ | 2) [ ] LVM | ||
+ | 3) [ ] LVM Thin Provisioning | ||
+ | |||
+ | Select a partition scheme configuration. | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | refresh]: c | ||
+ | Generating updated storage configuration | ||
+ | Checking storage configuration... | ||
+ | </ | ||
+ | |||
+ | ===Démarrer l' | ||
+ | |||
+ | De retour au menu principal, choisissez l' | ||
+ | |||
+ | < | ||
+ | ================================================================================ | ||
+ | ================================================================================ | ||
+ | Installation | ||
+ | |||
+ | 1) [x] Language settings | ||
+ | | ||
+ | 3) [x] Installation source | ||
+ | | ||
+ | 5) [x] Installation Destination | ||
+ | | ||
+ | | ||
+ | 7) [x] Network configuration | ||
+ | | ||
+ | 9) [ ] User creation | ||
+ | (No user will be created) | ||
+ | |||
+ | Please make a selection from the above [' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | **Important** : Notez que nous n' | ||
+ | </ | ||
+ | |||
+ | L' | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | 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 | ||
+ | .. | ||
+ | </ | ||
+ | |||
+ | ===Démarrer la VM=== | ||
+ | |||
+ | A l'issu de l' | ||
+ | |||
+ | < | ||
+ | Installation complete. Press ENTER to quit: | ||
+ | ... | ||
+ | [ OK ] Started Network Manager. | ||
+ | | ||
+ | [ OK ] Reached target Network. | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | [ OK ] Started OpenSSH server daemon. | ||
+ | [ OK ] Started Permit User Sessions. | ||
+ | | ||
+ | [ OK ] Started Command Scheduler. | ||
+ | | ||
+ | [ | ||
+ | </ | ||
+ | |||
+ | ====1.5 - Vérification de la VM Invitée==== | ||
+ | |||
+ | Au prompt, connectez-vous en tant que **root** avec le mot de passe **fenestros** : | ||
+ | |||
+ | < | ||
+ | CentOS Linux 8 | ||
+ | Kernel 4.18.0-305.12.1.el8_4.x86_64 on an x86_64 | ||
+ | |||
+ | testvm1 login: root | ||
+ | Mot de passe : fenestros | ||
+ | [root@testvm1 ~]# | ||
+ | </ | ||
+ | |||
+ | ===Réseau=== | ||
+ | |||
+ | Vérifiez la prise en compte d'une adresse IPv4 dans le réseau 192.168.56.0/ | ||
+ | |||
+ | < | ||
+ | [root@testvm1 ~]# ip a | ||
+ | 1: lo: < | ||
+ | link/ | ||
+ | inet 127.0.0.1/8 scope host lo | ||
+ | | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 2: enp1s0: < | ||
+ | link/ether 52: | ||
+ | inet 192.168.56.83/ | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===Internet=== | ||
+ | |||
+ | Vérifiez la connectivité de la VM : | ||
+ | |||
+ | < | ||
+ | [root@testvm1 ~]# ping www.free.fr | ||
+ | PING www.free.fr (212.27.48.10) 56(84) bytes of data. | ||
+ | 64 bytes from www.free.fr (212.27.48.10): | ||
+ | 64 bytes from www.free.fr (212.27.48.10): | ||
+ | |||
+ | --- www.free.fr ping statistics --- | ||
+ | 2 packets transmitted, | ||
+ | rtt min/ | ||
+ | [root@testvm1 ~]# [ALT GR]+[CTRL]+[)] | ||
+ | [root@centos8 ~]# | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> | ||
+ | **Important** : Notez l' | ||
+ | </ | ||
+ | |||
+ | ----- | ||
+ | Copyright © 2022 Hugh Norris |