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:l106 [2021/09/11 06:36] – admin | elearning:workbooks:centos:8:avance:l106 [2022/02/22 15:15] (Version actuelle) – created admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
+ | |||
+ | Version : **2022.01** | ||
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | ======LCF606 - Installation de Machines Virtuelles | + | ======LCF606 - Gestion des Clones, des Snapshots et des Sauvegardes sous KVM====== |
=====Contenu du Module===== | =====Contenu du Module===== | ||
- | * **LCF606 - Installation de Machines Virtuelles | + | * **LCF606 - Gestion des Clones, des Snapshots et des Sauvegardes sous KVM** |
* Contenu du Module | * Contenu du Module | ||
- | * LAB #1 - Installation d'une Machine Virtuelle CentOS 8 | + | * LAB #1 - Gestion des Clones |
- | * 1.1 - Identification du Short ID | + | * 1.1 - Création d'une VM à partir d'un Clone |
- | * 1.2 - Configuration du Stockage | + | * LAB #2 - Gestion |
- | * 1.3 - Installation du Domaine | + | * 2.1 - Création d'un Snapshot - VM Arrêté |
- | * Format des Images | + | * 2.2 - Création d'un Snapshot - VM en Cours d' |
- | * Convertir le Format de l'Image | + | * 2.3 - Restauration d'un Snapshot |
- | * 1.4 - Configuration | + | * 2.4 - Suppression |
- | * Language Settings | + | * LAB #3 - Gestion des Sauvegardes |
- | * Network configuration | + | * 3.1 - Création d'une Copie du Disque de la VM |
- | * Time settings | + | * 3.2 - Création d'une Copie de la Configuration |
- | * Root password | + | * 3.3 - Sauvegarder les Copies |
- | * Installation source | + | |
- | * Software selection | + | =====LAB #1 - Gestion des Clones===== |
- | * Installation Destination | + | |
- | * Démarrer l'Installation | + | |
- | * Démarrer | + | |
- | * 1.5 - Vérification | + | |
- | * Réseau | + | |
- | * Internet | + | |
- | =====LAB #1 - Installation d'une Machine Virtuelle CentOS 8===== | + | La création de clones offre une méthode rapide de création de VMs basées sur des configurations déjà existantes. |
- | ====1.1 - Identification du Short ID==== | + | ====1.1 - Création d'une VM à partir d'un Clone==== |
- | KVM sait virtualiser un grand nombre de systèmes d'exploitations. Pour consulter | + | Commencez par vérifier l'état de la machine virtuelle **testvm1** en utilisant |
< | < | ||
- | [root@centos8 ~]# osinfo-query os | more | + | [root@centos8 ~]# virsh list |
- | Short ID | + | Id Name State |
- | ----------------------+----------------------------------------------------+----------+----------------------------------------- | + | ------------------------- |
- | alpinelinux3.10 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | --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%> | <WRAP center round important 60%> | ||
- | **Important** : Notez que le Short ID de CentOS 8 est actuellement | + | **Important** : Notez que la VM est dans un état de **running** et que son **Id** |
</ | </ | ||
- | ====1.2 - Configuration du Stockage des ISOs==== | + | Afin de procéder à la création |
- | + | ||
- | Afin d' | + | |
< | < | ||
- | [root@centos8 ~]# ls -l | grep CentOS | + | [root@centos8 ~]# virsh shutdown 3 |
- | -rw-r--r--. 1 root root 625999872 Sep | + | Domain |
+ | </ | ||
- | [root@centos8 ~]# chmod 755 CentOS-8.1.1911-x86_64-boot.iso | + | Vérifiez ensuite que la VM est arrêtée : |
- | [root@centos8 ~]# mkdir /isos | + | < |
+ | [root@centos8 ~]# virsh list | ||
+ | | ||
+ | -------------------- | ||
- | [root@centos8 ~]# mv CentOS-8.1.1911-x86_64-boot.iso /isos | ||
- | |||
- | [root@centos8 ~]# chown -R qemu:qemu /isos | ||
</ | </ | ||
- | ====1.3 | + | Utilisez la commande **virsh-clone** pour créer une deuxième VM dénommée **testvm2** ayant une image au format qcow2 stockée dans le répertoire **/ |
- | Démarrez maintenant l' | ||
- | | ||
< | < | ||
- | [root@centos8 ~]# virt-install | + | [root@centos8 ~]# virt-clone --original testvm1 |
+ | Allocating ' | ||
- | Starting install... | + | Clone 'testvm2' |
- | 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%> | <WRAP center round important 60%> | ||
- | **Important** : Notez que la quantité | + | **Important** : Notez la rapidité |
</ | </ | ||
- | Dans cette commande on peut constater l' | + | La sortie |
- | + | ||
- | ^ 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é et de la taille indiquée en Go, à l' | + | |
- | | --graphics | La valeur | + | |
- | | --location= | Indique l' | + | |
- | | --extra-args= | Indique les options de la connectivité de la console | | + | |
- | | --check all= | Fixe la valeur du pont à utiliser par la VM à virbr0 | | + | |
- | + | ||
- | ===Format des Images=== | + | |
- | + | ||
- | Une image est un disque virtuel. KVM reconnait les formats | + | |
< | < | ||
- | [root@centos8 ~]# qemu-img -h | grep Supported | + | [root@centos8 ~]# virsh list |
- | 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 | + | |
- | </ | + | |
- | + | ||
- | Dans le cas d'une image au format **vdi** d' | + | |
- | + | ||
- | < | + | |
- | # VBoxManage clonehd myimage.vdi myrawimage.img | + | |
- | </ | + | |
- | + | ||
- | Ensuite il convient d' | + | |
- | + | ||
- | < | + | |
- | # qemu-img convert | + | |
- | </ | + | |
- | + | ||
- | ====1.4 | + | |
- | + | ||
- | ===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 | + | Pour voir la liste des VMs, peu importe leurs états, utilisez |
< | < | ||
- | Please select language support to install | + | [root@centos8 ~]# virsh list --all |
- | to continue, ' | + | Id |
- | ================================================================================ | + | -------------------------- |
- | ================================================================================ | + | - testvm1 |
- | Language settings | + | - testvm2 |
+ | </ | ||
+ | |||
+ | Le **State** peut être une des valeurs suivantes : | ||
- | Available locales | + | * **running** - la machine virtuelle est active, |
- | 1) French (France) | + | * **blocked** ou **blocking** - la machine virtuelle est en attente d'E/S ou l' |
- | 2) French (Canada) | + | * **paused** - la machine virtuelle est suspendue, |
+ | * **shutdown** - la machine virtuelle est en cours d' | ||
+ | * **shut off** - la machine virtuelle est éteinte et elle n' | ||
+ | * **crashed** - la machine virtuelle a crashée et est arrêtée. | ||
+ | |||
+ | =====LAB #2 - Gestion des Snapshots===== | ||
- | Please select language support to install [' | + | La création de snapshots offre une méthode rapide de sauvegarde des VMs. |
- | to continue, ' | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Installation | + | |
- | 1) [x] Language settings | + | Il existe deux types de snapshots : |
- | | + | |
- | 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 [' | + | * **Internal**, |
- | ' | + | * uniquement possibles avec les images qcow2, |
- | [anaconda]1: | + | * la VM est mise en pause pendant la création du snapshot, |
- | </code> | + | * ne fonctionne pas avec des pools de stockage de type LVM. |
+ | * **External**, | ||
+ | * sont basés sur le concept COW (**C**opy **O**n **W**rite), | ||
+ | * l' | ||
+ | * une image de type overlay en mode lecture/écriture et obligatoirement au format qcow2 est créée pour les écritures suivantes, | ||
+ | * est compatible avec n’importe lequel des formats de l' | ||
- | ===Network configuration=== | + | ====2.1 - Création d'un Snapshot - VM Arrêté==== |
- | Choisissez maintenant l' | + | Utilisez la commande |
< | < | ||
- | ================================================================================ | + | [root@centos8 ~]# virsh snapshot-list testvm1 |
- | ================================================================================ | + | Name |
- | Installation | + | ------------------------------- |
- | 1) [x] Language settings | + | </code> |
- | | + | |
- | 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 ['b' | + | La création d'un snapshot se fait grâce à l'utilisation de la commande **virsh snapshot-create-as**. Les arguments obligatoires de cette commande sont : |
- | ' | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Network configuration | + | |
- | Wired (enp1s0) disconnected | + | * **--domain**, |
+ | * le domaine à l' | ||
+ | * **--name**, | ||
+ | * le nom attribué au snapshot. | ||
- | Host Name: localhost.localdomain | ||
- | |||
- | Current host name: localhost | ||
- | |||
- | 1) Set host name | ||
- | 2) Configure device enp1s0 | ||
< | < | ||
+ | [root@centos8 ~]# virsh snapshot-create-as --domain testvm1 --name " | ||
+ | Domain snapshot testvm1-snap-03092021 created | ||
+ | </ | ||
- | Choisissez ensuite l' | + | Vérifiez que le snapshot a bien été pris en compte |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh snapshot-list testvm1 |
- | refresh]: 1 | + | Name Creation Time State |
- | ================================================================================ | + | -------------------------------------------------------------- |
- | ================================================================================ | + | testvm1-snap-03092021 |
- | Enter a new value for 'Host Name' and press ENTER: testvm1.ittraining.network | + | </ |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Network configuration | + | |
- | Wired (enp1s0) disconnected | + | <WRAP center round important 60%> |
+ | **Important** : Notez que l' | ||
+ | </ | ||
- | Host Name: testvm1.ittraining.network | + | Pour obtenir des informations concernant le snapshot, il convient d' |
- | Current host name: localhost | ||
- | |||
- | 1) Set host name | ||
- | 2) Configure device enp1s0 | ||
< | < | ||
+ | [root@centos8 ~]# virsh snapshot-info --domain testvm1 --current | ||
+ | Name: | ||
+ | Domain: | ||
+ | Current: | ||
+ | State: | ||
+ | Location: | ||
+ | Parent: | ||
+ | Children: | ||
+ | Descendants: | ||
+ | Metadata: | ||
+ | </ | ||
- | Choisissez l' | + | ====2.2 - Création d'un Snapshot - VM en Cours d' |
- | < | + | Il est aussi possible de prendre des snapshot d'une VM en cours d'exécution. Cependant, dans le cas de beaucoup d'activité E/S, il est toutefois recommandée d'arrêter la VM. |
- | Please make a selection from the above ['c' | + | |
- | refresh]: 2 | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Device configuration | + | |
- | 1) IPv4 address or " | + | Démarrez donc la VM **testvm2** avec la commande **virsh start** : |
- | | + | |
- | 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. | ||
< | < | ||
+ | [root@centos8 ~]# virsh start testvm2 | ||
+ | Domain testvm2 started | ||
- | 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 " | ||
- | dhcp | ||
- | 2) IPv4 netmask | ||
- | 3) IPv4 gateway | ||
- | 4) IPv6 address[/ | ||
- | turn off | ||
- | auto | ||
- | 5) IPv6 default gateway | ||
- | 6) Nameservers (comma separated) | ||
- | | ||
- | 7) [ ] Connect automatically after reboot | ||
- | 8) [ ] Apply configuration in installer | ||
- | |||
- | Configuring device enp1s0. | ||
</ | </ | ||
- | Il est important | + | Vérifiez ensuite l' |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh list --all |
- | refresh]: 7 | + | |
- | ================================================================================ | + | -------------------------- |
- | ================================================================================ | + | 4 testvm2 |
- | Device configuration | + | - testvm1 |
- | 1) IPv4 address or " | ||
- | dhcp | ||
- | 2) IPv4 netmask | ||
- | 3) IPv4 gateway | ||
- | 4) IPv6 address[/ | ||
- | turn off | ||
- | auto | ||
- | 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' | + | Créez un snapshot de **testvm2** : |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh snapshot-create-as --domain testvm2 --name |
- | refresh]: 8 | + | Domain snapshot testvm2-snap-03092021 created |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Device configuration | + | |
- | + | ||
- | 1) IPv4 address or "dhcp" | + | |
- | | + | |
- | 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 | + | Consultez |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh snapshot-list testvm2 |
- | refresh]: c | + | |
- | ================================================================================ | + | -------------------------------------------------------------- |
- | ================================================================================ | + | testvm2-snap-03092021 |
- | 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 | + | Pour obtenir des informations concernant le dernier snapshot effectué pour le domaine |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh snapshot-info --domain testvm2 --current |
- | refresh]: c | + | Name: testvm2-snap-03092021 |
- | ================================================================================ | + | Domain: |
- | ================================================================================ | + | Current: |
- | Installation | + | State: |
- | + | Location: | |
- | 1) [x] Language settings | + | Parent: |
- | | + | Children: |
- | 3) [!] Installation source | + | Descendants: 0 |
- | | + | Metadata: yes |
- | | + | |
- | 5) [!] Installation Destination | + | |
- | (No disks selected) | + | |
- | 7) [x] Network configuration | + | |
- | (Wired (enp1s0) connected) | + | |
- | 9) [!] User creation | + | |
- | (No user will be created) | + | |
- | + | ||
- | Please make a selection from the above [' | + | |
- | ' | + | |
- | [anaconda]1:main* 2: | + | |
</ | </ | ||
- | <WRAP center round important> | + | <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, | + | **Important** : Notez que le **State** est **running** par rapport au snapshot précédent qui avait rapporté |
</ | </ | ||
- | ===Time settings=== | + | ====2.3 - Restauration d'un Snapshot==== |
- | Choisissez maintenant l' | + | Pour restaurer un snapshot la commande virsh fournit la sous-commande |
< | < | ||
- | ================================================================================ | + | [root@centos8 ~]# virsh shutdown testvm2 |
- | ================================================================================ | + | Domain testvm2 is being shutdown |
- | Installation | + | |
- | 1) [x] Language settings | + | [root@centos8 ~]# virsh list --all |
- | | + | Id |
- | 3) [!] Installation source | + | -------------------------- |
- | | + | - testvm1 |
- | | + | - testvm2 |
- | 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' | + | Restaurez ensuite |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh snapshot-revert --domain testvm2 --snapshotname testvm2-snap-03092021 --running |
- | refresh]: 1 | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Timezone settings | + | |
- | Available regions | + | [root@centos8 ~]# virsh list --all |
- | 1) Europe | + | Id |
- | 2) Asia 6) Pacific | + | -------------------------- |
- | 3) America | + | |
- | 4) Africa | + | - testvm1 |
- | < | + | |
- | + | ||
- | Appuyez sur la touche **1** pour choisir **Europe** : | + | |
- | + | ||
- | < | + | |
- | Please select the timezone. Use numbers or type names directly | + | |
- | region | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | + | ||
- | 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' | + | <WRAP center round important 60%> |
+ | **Important** : Notez que le **State** est **running** après la restauration du snapshot. | ||
+ | </ | ||
- | < | + | Connectez-vous à la VM grâce à la commande |
- | 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' | + | |
< | < | ||
- | ================================================================================ | + | [root@centos8 ~]# virsh console 5 |
- | ================================================================================ | + | Connected to domain testvm2 |
- | Installation | + | Escape character is ^] |
- | 1) [x] Language settings | + | CentOS Linux 8 |
- | (French (France)) | + | Kernel |
- | 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 [' | + | testvm1 login: root |
- | ' | + | Mot de passe : fenestros |
- | ================================================================================ | + | Dernière connexion : Fri Sep 3 16:45:59 sur ttyS0 |
- | ================================================================================ | + | [root@testvm1 ~]# |
- | Root password | + | ... |
- | + | [root@testvm1 ~]# [ALT GR]+[CTRL]+[)] | |
- | Please select new root password. You will have to type it twice. | + | [root@centos8 ~]# |
- | + | ||
- | 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 | + | |
- | (French (France)) | + | |
- | 3) [!] Installation source | + | |
- | | + | |
- | | + | |
- | 5) [!] Installation Destination | + | |
- | (No disks selected) | + | |
- | 7) [x] Network configuration | + | |
- | (Wired (enp1s0) connected) | + | |
- | 9) [ ] User creation | + | |
- | (No user will be created) | + | |
- | + | ||
- | Please make a selection from the above [' | + | |
- | ' | + | |
</ | </ | ||
- | ===Installation source=== | + | ====2.4 - Suppression de Snapshots==== |
- | Choisissez | + | Les snapshots peuvent être supprimés grâce à l'utilisation de la commande |
< | < | ||
- | ================================================================================ | + | [root@centos8 ~]# virsh snapshot-delete --domain testvm1 --snapshotname testvm1-snap-03092021 |
- | ================================================================================ | + | Domain snapshot testvm1-snap-03092021 deleted |
- | Installation | + | |
- | 1) [x] Language settings | + | [root@centos8 ~]# virsh snapshot-delete --domain testvm2 --snapshotname testvm2-snap-03092021 |
- | | + | Domain snapshot testvm2-snap-03092021 deleted |
- | 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@centos8 ~]# virsh snapshot-list testvm1 |
- | ' | + | Name |
- | ================================================================================ | + | ------------------------------- |
- | ================================================================================ | + | |
- | Installation source | + | |
- | Choose an installation source type. | + | [root@centos8 ~]# virsh snapshot-list testvm2 |
- | 1) CD/DVD | + | Name |
- | 2) local ISO file | + | ------------------------------- |
- | 3) Network | + | |
</ | </ | ||
- | L'ISO utilisé est de type **net-install**. Choisissez donc l' | + | =====LAB #3 - Gestion des Sauvegardes===== |
- | < | + | Pour effectuer une sauvegarde d'une VM en utilisant les outils classiques, il convient simplement de copier le fichier d'image ainsi que le fichier de configuration de la VM à un endroit ailleurs sur le système, voire sur un support externe. |
- | Please make a selection from the above ['c' to continue, 'q' to quit, ' | + | |
- | refresh]: 3 | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Installation source | + | |
- | 1) Closest mirror | + | ====3.1 - Création d'une Sauvegarde du Disque de la VM==== |
- | 2) http:// | + | |
- | 3) https:// | + | |
- | 4) ftp:// | + | |
- | 5) nfs | + | |
- | </ | + | |
- | Choisissez l' | + | Actuellement seule la VM **testvm2** est en cours d' |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 ~]# virsh list |
- | refresh]: 1 | + | Id |
- | ================================================================================ | + | ------------------------- |
- | ================================================================================ | + | 5 testvm2 |
- | Installation | + | </code> |
- | + | ||
- | 1) [x] Language settings | + | Créez donc un répertoire destiné à contenir les copies créées : |
- | | + | |
- | 3) [x] Installation source | + | < |
- | (Closest mirror) | + | [root@centos8 ~]# mkdir /vm-backups |
- | 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=== | + | Placez-vous dans le répertoire des images |
- | + | ||
- | Choisissez l' | + | |
< | < | ||
- | ================================================================================ | + | [root@centos8 ~]# cd / |
- | ================================================================================ | + | [root@centos8 images]# ls -l |
- | Installation | + | total 4029008 |
- | + | -rw-------. 1 root root 5369757696 Sep | |
- | 1) [x] Language settings | + | -rw-------. |
- | | + | |
- | 3) [x] Installation source | + | |
- | (Closest mirror) | + | |
- | 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 | + | |
- | 2) [ ] Server | + | |
- | 3) [x] Minimal Install | + | |
</ | </ | ||
- | Appuyez | + | Copiez |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 images]# cp -p testvm1-os.qcow2 / |
- | 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 | + | <WRAP center round important 60%> |
+ | **Important** : Notez que cette copie est effectuée en arrière plan afin de libérer le prompt en avant plan du terminal. | ||
+ | </ | ||
- | < | + | ====3.2 - Création d'une Sauvegarde de la Configuration de la VM==== |
- | Please make a selection from the above [' | + | |
- | refresh]: c | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Installation | + | |
- | 1) [x] Language settings | + | La configuration |
- | | + | |
- | 3) [!] Installation source | + | |
- | | + | |
- | 5) [!] Installation Destination | + | |
- | (No disks selected) | + | |
- | 7) [x] Network | + | |
- | | + | |
- | 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 [' | + | |
- | ' | + | |
- | </code> | + | |
- | + | ||
- | ===Installation Destination=== | + | |
- | + | ||
- | Choisissez l' | + | |
< | < | ||
- | ================================================================================ | + | [root@centos8 images]# cd / |
- | ================================================================================ | + | [root@centos8 qemu]# ls -lR |
- | Installation | + | .: |
+ | total 16 | ||
+ | drwx------. 3 root root 42 Sep 2 10:22 networks | ||
+ | -rw-------. 1 root root 4936 Sep 3 10:07 testvm1.xml | ||
+ | -rw-------. 1 root root 4933 Sep 3 11:35 testvm2.xml | ||
- | 1) [x] Language settings | + | ./networks: |
- | | + | total 4 |
- | 3) [x] Installation source | + | drwx------. 2 root root 25 Aug 10 17:00 autostart |
- | (Closest mirror) | + | -rw-------. 1 root root 575 Sep 2 10:22 default.xml |
- | 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 [' | + | ./ |
- | ' | + | total 0 |
- | Probing storage... | + | lrwxrwxrwx. 1 root root 14 Jun 16 06:28 default.xml -> ../default.xml |
</ | </ | ||
- | Séléctionnez | + | Si vous consultez |
- | <code> | + | <file> |
- | ================================================================================ | + | ... |
- | ================================================================================ | + | < |
- | Installation Destination | + | <vcpu placement='static'> |
- | + | ... | |
- | 1) [x] : 5 GiB (vda) | + | </file> |
- | + | ||
- | 1 disk selected; 5 GiB capacity; 5 GiB free ... | + | |
- | + | ||
- | Please make a selection from the above ['c' | + | |
- | refresh]: c | + | |
- | </code> | + | |
- | + | ||
- | A ce stade il vous est possible de choisir l' | + | |
< | < | ||
- | ================================================================================ | + | [root@centos8 qemu]# cat testvm1.xml |
- | ================================================================================ | + | <!-- |
- | Partitioning Options | + | WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE |
+ | OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: | ||
+ | virsh edit testvm1 | ||
+ | or other application using the libvirt API. | ||
+ | --> | ||
- | 1) [ ] Replace Existing Linux system(s) | + | <domain type=' |
- | 2) [ ] Use All Space | + | < |
- | 3) [ ] Use Free Space | + | < |
- | 4) [ ] Manually assign mount points | + | < |
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <memory unit=' | ||
+ | < | ||
+ | <vcpu placement=' | ||
+ | < | ||
+ | <type arch=' | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <cpu mode=' | ||
+ | <clock offset=' | ||
+ | <timer name=' | ||
+ | <timer name=' | ||
+ | <timer name=' | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <disk type=' | ||
+ | <driver name=' | ||
+ | <source file='/ | ||
+ | <target dev=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <disk type=' | ||
+ | <driver name=' | ||
+ | <target dev=' | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <model name=' | ||
+ | <target chassis=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | < | ||
+ | <mac address=' | ||
+ | <source bridge=' | ||
+ | <model type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <serial type=' | ||
+ | <target type=' | ||
+ | <model name=' | ||
+ | </ | ||
+ | </ | ||
+ | <console type=' | ||
+ | <target type=' | ||
+ | </ | ||
+ | <channel type=' | ||
+ | <target type=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | <input type=' | ||
+ | <input type=' | ||
+ | < | ||
+ | <address type=' | ||
+ | </ | ||
+ | <rng model=' | ||
+ | <backend model=' | ||
+ | <address type=' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | 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 | + | Ce fichier doit donc être copié vers le répertoire |
- | + | ||
- | < | + | |
- | ================================================================================ | + | |
- | ================================================================================ | + | |
- | Partition Scheme Options | + | |
- | + | ||
- | 1) [ ] Standard Partition | + | |
- | 2) [x] LVM | + | |
- | 3) [ ] LVM Thin Provisioning | + | |
- | + | ||
- | Select a partition scheme configuration. | + | |
- | </code> | + | |
- | + | ||
- | Bien que préférable de choisir l' | + | |
< | < | ||
- | Please make a selection from the above [' | + | [root@centos8 qemu]# cp -p testvm1.xml / |
- | 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' | + | Une fois le processus en arrière plan terminé, vous pouvez constater la présence des deux fichiers dans le répertoire |
- | + | ||
- | De retour au menu principal, choisissez l' | + | |
< | < | ||
- | ================================================================================ | + | [root@centos8 vm-backups]# ls -l |
- | ================================================================================ | + | total 3992904 |
- | Installation | + | -rw-------. 1 root root 5369757696 Sep |
- | + | -rw-------. 1 root root | |
- | 1) [x] Language settings | + | |
- | (French (France)) | + | |
- | 3) [x] Installation source | + | |
- | (Closest mirror) | + | |
- | 5) [x] Installation Destination | + | |
- | | + | |
- | | + | |
- | 7) [x] Network configuration | + | |
- | | + | |
- | 9) [ ] User creation | + | |
- | | + | |
- | + | ||
- | Please make a selection from the above [' | + | |
- | ' | + | |
</ | </ | ||
- | <WRAP center round important 60%> | + | Notez que la taille |
- | **Important** : Notez que nous n' | + | |
- | </ | + | |
- | + | ||
- | L'installation démarre et se poursuit | + | |
< | < | ||
- | ... | + | [root@centos8 ~]# virsh vol-info / |
- | Configuring storage | + | Name: |
- | . | + | Type: file |
- | Installing boot loader | + | Capacity: |
- | . | + | Allocation: |
- | 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=== | + | ====3.3 - Sauvegarder les Copies des Fichiers==== |
- | A l' | + | Ayant effectué les copies, il est maintenant possible |
< | < | ||
- | Installation complete. Press ENTER to quit: | + | [root@centos8 vm-backups]# mkdir testvm1 |
- | ... | + | [root@centos8 vm-backups]# mv *04* testvm1 |
- | [ | + | [root@centos8 vm-backups]# ls |
- | | + | testvm1 |
- | [ | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | [ OK ] Started OpenSSH server daemon. | + | |
- | [ OK ] Started Permit User Sessions. | + | |
- | | + | |
- | [ OK ] Started Command Scheduler. | + | |
- | | + | |
- | [ 18.386454] IPv6: ADDRCONF(NETDEV_UP): | + | |
- | </ | + | |
- | ====1.5 - Vérification de la VM Invitée==== | + | [root@centos8 vm-backups]# |
+ | testvm1/ | ||
+ | testvm1/ | ||
+ | testvm1/ | ||
- | Au prompt, connectez-vous en tant que **root** avec le mot de passe **fenestros** : | + | [root@centos8 vm-backups]# |
- | + | total 846724 | |
- | < | + | drwxr-xr-x. 2 root root 74 Sep 4 03:19 testvm1 |
- | CentOS Linux 8 | + | -rw-r--r--. 1 root root 867042697 Sep 4 03:24 testvm1-backup-04092021.tar.gz |
- | Kernel 4.18.0-305.12.1.el8_4.x86_64 on an x86_64 | + | |
- | + | ||
- | testvm1 login: | + | |
- | 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' | ||
- | </ | ||
- | |||
- | ----- | ||
- | < | ||
- | <div align=" | ||
- | Copyright © 2021 Hugh Norris | ||
- | </ | ||
- | </ | ||
----- | ----- | ||
+ | Copyright © 2022 Hugh Norris |