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/09/02 16:59] – admin | elearning:workbooks:centos:8:avance:l105 [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~~ | ||
| - | ======LCF605 - Gestion | + | ======LCF605 - Installation |
| =====Contenu du Module===== | =====Contenu du Module===== | ||
| - | * **LCF605 - Gestion | + | * **LCF605 - Installation |
| * Contenu du Module | * Contenu du Module | ||
| - | | + | * LAB #1 - Installation |
| - | | + | * 1.1 - Identification du Short ID |
| - | * 1.1 - Installation des Paquets Requis | + | * 1.2 - Configuration |
| - | * 1.2 - Activation et Démarrage | + | * 1.3 - Installation |
| - | * 1.3 - Modules | + | * Format des Images |
| - | * LAB #2 - Configuration | + | * Convertir le Format |
| - | * 2.1 - Configuration | + | * 1.4 - Configuration |
| - | * 2.2 - Configuration du Réseau | + | * Language Settings |
| - | * 2.3 - Configuration du Stockage | + | * 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 | ||
| - | =====Présentation===== | + | =====LAB #1 - Installation d'une Machine Virtuelle CentOS 8===== |
| - | ====La Virtualisation==== | + | ====1.1 - Identification du Short ID==== |
| - | Le système | + | KVM sait virtualiser un grand nombre |
| - | Il existe différentes méthodes de virtualisation | + | < |
| + | [root@centos8 ~]# osinfo-query os | more | ||
| + | Short ID | Name | Version | ||
| + | ----------------------+----------------------------------------------------+----------+----------------------------------------- | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | --More-- | ||
| + | </ | ||
| - | * **Virtualisation au niveau du système d' | + | La liste des versions |
| - | * **Description** : Les systèmes invités utilisent le même noyau et une partie du système | + | |
| - | * **L' | + | |
| - | * **L' | + | |
| - | | + | |
| - | {{ :elearning:workbooks:centos:6:senior:inheritedpackageszones.png? | + | < |
| + | [root@centos8 ~]# osinfo-query os | grep "Red Hat" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| - | * **Paravirtualisation ou // | + | Afin d' |
| - | * **Description** : Le système hôte met à disposition | + | |
| - | | + | |
| - | * **L' | + | |
| - | * **Logiciels concernés** | + | |
| - | {{ :elearning:workbooks:centos:6:senior:hyperviseur1.png? | + | * 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 | ||
| + | |||
| + | 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 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| - | * **Virtualisation complète ou // | + | <WRAP center round important 60%> |
| - | * **Description** : Le programme simule du matériel virtuel qui apparaît du point de vue de l' | + | **Important** : Notez que le Short ID de CentOS 8 est actuellement |
| - | * **L' | + | </WRAP> |
| - | * **L' | + | |
| - | * **Logiciels concernés** : VMWare(tm) Fusion, VMWare(tm) Player, VMWare(tm) Server, VMWare(tm) Fusion, Parallels Desktop, Parallels Server, Sun/Oracle %%VirtualBox%%, | + | |
| - | {{ : | + | ====1.2 - Configuration du Stockage des ISOs==== |
| - | * **Paravirtualisation avec prise en charge | + | Afin d' |
| - | * **Description** : Les processeurs Intel-VT et AMD-V contiennent des instructions matérielles pour faciliter la virtualisation. Pour déterminer si le processeur dispose | + | |
| - | | + | |
| - | | + | |
| - | * **Logiciels concernés** : Xen, KVM | + | |
| - | {{ :elearning:workbooks: | + | < |
| + | [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:// | + | [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' | + | |
| - | ====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 |
| - | * 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' |
| - | Important : Le module KVM est intégré dans le noyau Linux depuis | + | |
| + | < | ||
| + | [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 | ||
| + | **Important** : Notez que la quantité de mémoire est automatiquement | ||
| </ | </ | ||
| - | **KVM** appartient à la société **Red Hat**. | + | Dans cette commande on peut constater l' |
| - | KVM permet de virtualiser | + | ^ 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 **none** indique que l' | ||
| + | | --location= | Indique l' | ||
| + | | --extra-args= | Indique les options de la connectivité de la console | | ||
| - | * Windows(tm) à partir de Windows(tm) 2000, | + | ===Format |
| - | * Toutes les distributions Linux, | + | |
| - | * La majorité | + | |
| - | * 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' |
| - | * USB, | + | < |
| - | * 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, | + | </ |
| - | * **Virtuo** | + | |
| - | Les avantages de KVM par rapport à Xen sont : | + | <WRAP center round important 60%> |
| + | **Important** | ||
| + | </ | ||
| - | * l’utilisation | + | ===Convertir le Format |
| - | * l'intégration direct dans le noyau Linux. | + | |
| - | =====LAB #1 - Installation | + | Il est possible |
| - | ====1.1 - Installation des Paquets Requis==== | + | <file> |
| - | + | # qemu-img convert -f vmdk -O qcow2 myimage.vmdk mynewimage.qcow2 | |
| - | <code> | + | </file> |
| - | [root@centos8 ~]# egrep ' | + | |
| - | 8 | + | |
| - | </code> | + | |
| - | < | + | Dans le cas d'une image au format **vdi** d' |
| - | [root@centos8 ~]# dnf module install virt -y | + | |
| - | </ | + | |
| - | <code> | + | <file> |
| - | [root@centos8 ~]# dnf install virt-install virt-viewer -y | + | # VBoxManage clonehd myimage.vdi myrawimage.img |
| - | </code> | + | </file> |
| - | < | + | Ensuite il convient d' |
| - | [root@centos8 ~]# dnf install bridge-utils -y | + | |
| - | </ | + | |
| - | <code> | + | <file> |
| - | [root@centos8 ~]# dnf install virt-top libguestfs-tools -y | + | # qemu-img convert |
| - | </code> | + | </file> |
| - | ====1.2 - Activation et Démarrage du Service libvirtd==== | + | ====1.4 - Configuration de l' |
| + | |||
| + | ===Language Settings=== | ||
| + | |||
| + | Commencez par appuyer sur le choix **1** : | ||
| < | < | ||
| - | [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 8 started. |
| - | Loaded: loaded (/ | + | * 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: | + | * if the graphical installation interface fails to start, try again with the |
| - | https:// | + | inst.text bootoption to start text installation |
| - | Main PID: 7502 (libvirtd) | + | * 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 |
| - | Memory: 49.3M | + | ================================================================================ |
| - | CGroup: | + | ================================================================================ |
| - | ├─1942 / | + | Installation |
| - | ├─1943 / | + | |
| - | └─7502 / | + | |
| - | Sep 01 10:19:05 centos8.ittraining.loc systemd[1]: Starting Virtualization daemon... | + | 1) [x] Language settings |
| - | Sep 01 10:19:05 centos8.ittraining.loc systemd[1]: Started Virtualization daemon. | + | |
| - | Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read /etc/hosts - 2 addresses | + | 3) [!] Installation source |
| - | Sep 01 10:19:06 centos8.ittraining.loc dnsmasq[1942]: read / | + | |
| - | Sep 01 10:19:06 centos8.ittraining.loc dnsmasq-dhcp[1942]: read / | + | 5) [!] Installation Destination |
| - | </ | + | (No disks selected) |
| + | 7) [!] Network configuration | ||
| + | (Not connected) | ||
| + | 9) [!] User creation | ||
| + | (No user will be created) | ||
| - | ====1.3 - Modules du Noyau==== | + | Please make a selection from the above [' |
| + | ' | ||
| + | ================================================================================ | ||
| + | ================================================================================ | ||
| - | < | + | 3) Arabic |
| - | [root@centos8 ~]# modinfo kvm | + | 4) Assamese |
| - | filename: | + | 5) Asturian |
| - | license: | + | 6) Belarusian |
| - | author: | + | 7) Bulgarian |
| - | rhelversion: | + | 8) Bangla |
| - | srcversion: | + | 9) Tibetan |
| - | depends: | + | 10) Bosnian |
| - | intree: | + | 11) Catalan |
| - | name: kvm | + | 12) Czech 38) Georgian |
| - | vermagic: | + | 13) Welsh 39) Kazakh |
| - | sig_id: | + | 14) Danish |
| - | signer: | + | 15) German |
| - | sig_key: | + | 16) Greek 42) Korean |
| - | sig_hashalgo: | + | 17) English |
| - | signature: | + | 18) Spanish |
| - | 8D: | + | 19) Estonian |
| - | 16: | + | 20) Basque |
| - | | + | 21) Persian |
| - | FF:14: | + | 22) Finnish |
| - | BD: | + | 23) Filipino |
| - | | + | 24) French |
| - | | + | 25) Friulian |
| - | | + | |
| - | | + | Press ENTER to continue: |
| - | 19: | + | 26) Irish 52) Low German |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | 40: | + | |
| - | 60: | + | |
| - | | + | |
| - | | + | |
| - | 7F:CC:6E:6E | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| </ | </ | ||
| + | |||
| + | Choisissez l' | ||
| < | < | ||
| - | [root@centos8 ~]# modinfo kvm_intel | + | Please select language support to install |
| - | filename: / | + | to continue, ' |
| - | license: | + | ================================================================================ |
| - | author: | + | ================================================================================ |
| - | rhelversion: | + | Language settings |
| - | srcversion: | + | |
| - | alias: | + | Available locales |
| - | depends: | + | 1) French (France) |
| - | intree: | + | 2) French (Canada) |
| - | name: | + | |
| - | vermagic: | + | Please select language support to install [' |
| - | sig_id: | + | to continue, ' |
| - | signer: | + | ================================================================================ |
| - | sig_key: | + | ================================================================================ |
| - | sig_hashalgo: | + | Installation |
| - | signature: | + | |
| - | | + | 1) [x] Language settings |
| - | | + | (French (France)) |
| - | | + | 3) [!] Installation source |
| - | | + | (Error setting up software |
| - | | + | 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:main* 2:shell 3:log 4:storage-log >Switch tab: Alt+Tab | Help: F1 |
| - | | + | |
| - | D7:27:D2:85:88:45:3D: | + | |
| - | A3: | + | |
| - | E6: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| - | parm: | + | |
| </ | </ | ||
| - | =====LAB #2 - Configuration de KVM====== | + | ===Network configuration=== |
| - | ====2.1 - Configuration du Pare-feu==== | + | Choisissez maintenant l' |
| < | < | ||
| - | [root@centos8 ~]# firewall-cmd --permanent --add-port=5901/tcp | + | ================================================================================ |
| - | success | + | ================================================================================ |
| - | </ | + | 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 | ||
| < | < | ||
| - | [root@centos8 ~]# firewall-cmd --reload | ||
| - | success | ||
| - | </ | ||
| - | ====2.2 - Configuration du Réseau des VMs==== | + | Choisissez ensuite l' |
| < | < | ||
| - | [root@centos8 ~]# ip a show ens19 | + | Please make a selection from the above ['c' |
| - | 3: ens19: < | + | refresh]: 1 |
| - | link/ether 46: | + | ================================================================================ |
| - | [root@centos8 ~]# nmcli c show | + | ================================================================================ |
| - | NAME | + | Enter a new value for 'Host Name' and press ENTER: testvm1.ittraining.network |
| - | ip_fixe | + | ================================================================================ |
| - | virbr0 | + | ================================================================================ |
| - | ens18 fc4a4d23-b15e-47a7-bcfa-b2e08f49553e | + | Network configuration |
| - | [root@centos8 ~]# nmcli connection add con-name ip_kvm ifname ens19 type ethernet ip4 192.168.56.2/ | + | |
| - | Connection | + | |
| - | [root@centos8 ~]# nmcli c show | + | |
| - | NAME | + | |
| - | ip_fixe | + | |
| - | ip_kvm | + | |
| - | virbr0 | + | |
| - | ens18 fc4a4d23-b15e-47a7-bcfa-b2e08f49553e | + | |
| - | [root@centos8 ~]# ip a | + | |
| - | 1: lo: < | + | |
| - | link/ | + | |
| - | 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: < | + | |
| - | link/ether 4e: | + | |
| - | 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/ | + | |
| - | | + | |
| - | inet6 fe80:: | + | |
| - | | + | |
| - | 3: ens19: < | + | |
| - | link/ether 46: | + | |
| - | inet 192.168.56.2/ | + | |
| - | | + | |
| - | inet6 fe80:: | + | |
| - | | + | |
| - | 4: virbr0: < | + | |
| - | link/ether 52: | + | |
| - | inet 192.168.122.1/ | + | |
| - | | + | |
| - | 5: virbr0-nic: < | + | |
| - | link/ether 52: | + | |
| - | </ | + | |
| + | Wired (enp1s0) disconnected | ||
| + | |||
| + | Host Name: testvm1.ittraining.network | ||
| + | |||
| + | Current host name: localhost | ||
| + | |||
| + | 1) Set host name | ||
| + | 2) Configure device enp1s0 | ||
| < | < | ||
| - | [root@centos8 ~]# ip a show ens19 | + | |
| - | 3: ens19: < | + | Choisissez l' |
| - | link/ether 46: | + | |
| - | inet 192.168.56.2/24 brd 192.168.56.255 scope global noprefixroute ens19 | + | |
| - | | + | |
| - | inet6 fe80:: | + | |
| - | | + | |
| - | </ | + | |
| < | < | ||
| - | [root@centos8 ~]# cat / | + | Please make a selection from the above [' |
| - | 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 " |
| - | GATEWAY=192.168.56.1 | + | |
| - | DEFROUTE=yes | + | 2) IPv4 netmask |
| - | IPV4_FAILURE_FATAL=no | + | 3) IPv4 gateway |
| - | IPV6INIT=yes | + | 4) IPv6 address[/prefix] or " |
| - | IPV6_AUTOCONF=yes | + | turn off |
| - | IPV6_DEFROUTE=yes | + | |
| - | 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. | ||
| < | < | ||
| - | [root@centos8 ~]# ping 192.168.56.1 | + | |
| - | PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data. | + | Laissez l’option **1** en **dhcp** puis choisissez l' |
| - | 64 bytes from 192.168.56.1: | + | |
| - | 64 bytes from 192.168.56.1: icmp_seq=2 ttl=64 time=0.209 ms | + | |
| - | 64 bytes from 192.168.56.1: icmp_seq=3 ttl=64 time=0.160 ms | + | |
| - | ^C | + | |
| - | --- 192.168.56.1 ping statistics --- | + | |
| - | 3 packets transmitted, | + | |
| - | rtt min/ | + | |
| - | </ | + | |
| < | < | ||
| - | [root@centos8 ~]# vi / | + | Please make a selection from the above [' |
| - | [root@centos8 ~]# cat / | + | refresh]: 6 |
| - | TYPE=Ethernet | + | ================================================================================ |
| - | BOOTPROTO=none | + | ================================================================================ |
| - | NAME=ip_kvm | + | Enter a new value for ' |
| - | UUID=afc8b175-f2cb-47b2-baca-66454058c36f | + | .8.4.4 |
| - | DEVICE=ens19 | + | ================================================================================ |
| - | ONBOOT=yes | + | ================================================================================ |
| - | BRIDGE=virbr0 | + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# ls -l / | + | Please make a selection from the above ['c' |
| - | ls: cannot access | + | refresh]: 7 |
| + | ================================================================================ | ||
| + | ================================================================================ | ||
| + | Device configuration | ||
| + | |||
| + | 1) IPv4 address | ||
| + | | ||
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# vi / | + | Please make a selection from the above [' |
| - | [root@centos8 ~]# cat / | + | refresh]: 8 |
| - | TYPE=BRIDGE | + | ================================================================================ |
| - | DEVICE=virbr0 | + | ================================================================================ |
| - | BOOTPROTO=non | + | Device configuration |
| - | ONBOOT=yes | + | |
| - | IPADDR=192.168.56.2 | + | 1) IPv4 address or " |
| - | NETMASK=255.255.255.0 | + | |
| - | GATEWAY=192.168.56.1 | + | 2) IPv4 netmask |
| + | 3) IPv4 gateway | ||
| + | 4) IPv6 address[/ | ||
| + | turn off | ||
| + | | ||
| + | 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. | ||
| </ | </ | ||
| + | |||
| + | Validez les configurations actuelles en appuyant sur la touche **c** : | ||
| < | < | ||
| - | [root@centos8 ~]# echo net.ipv4.ip_forward = 1 >> / | + | Please make a selection from the above [' |
| - | [root@centos8 ~]# cat / | + | 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. | + | |
| - | # 128 * (number of virtual disks on the host) | + | Wired (enp1s0) disconnected |
| - | # 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 | ||
| </ | </ | ||
| + | |||
| + | Pour retourner au menu principal, appuyez sur la touche **c** de nouveau : | ||
| < | < | ||
| - | [root@centos8 ~]# / | + | Please make a selection from the above [' |
| - | fs.aio-max-nr | + | refresh]: c |
| - | net.ipv4.ip_forward | + | ================================================================================ |
| + | ================================================================================ | ||
| + | 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' | ||
| < | < | ||
| - | [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) [x] Language settings | ||
| + | (French (France)) | ||
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# firewall-cmd --reload | + | Please make a selection from the above [' |
| - | success | + | refresh]: 1 |
| - | </ | + | ================================================================================ |
| + | ================================================================================ | ||
| + | Timezone settings | ||
| + | Available regions | ||
| + | 1) Europe | ||
| + | 2) Asia 6) Pacific | ||
| + | 3) America | ||
| + | 4) Africa | ||
| < | < | ||
| - | [root@centos8 ~]# ip a | ||
| - | 1: lo: < | ||
| - | link/ | ||
| - | inet 127.0.0.1/8 scope host lo | ||
| - | | ||
| - | inet6 ::1/128 scope host | ||
| - | | ||
| - | 2: ens18: < | ||
| - | link/ether 4e: | ||
| - | inet 10.0.2.46/ | ||
| - | | ||
| - | inet 192.168.1.2/ | ||
| - | | ||
| - | inet6 fe80:: | ||
| - | | ||
| - | 3: ens19: < | ||
| - | link/ether 46: | ||
| - | inet 192.168.56.2/ | ||
| - | | ||
| - | inet6 fe80:: | ||
| - | | ||
| - | 4: virbr0: < | ||
| - | link/ether 52: | ||
| - | inet 192.168.122.1/ | ||
| - | | ||
| - | 5: virbr0-nic: < | ||
| - | link/ether 52: | ||
| - | </ | ||
| - | 192.168.122.1 | + | Appuyez sur la touche **1** pour choisir **Europe** : |
| < | < | ||
| - | [root@centos8 ~]# virsh net-list | + | Please select the timezone. Use numbers or type names directly |
| - | Name State Autostart | + | region |
| - | -------------------------------------------- | + | ================================================================================ |
| - | default | + | ================================================================================ |
| + | |||
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# virsh net-dumpxml default | + | Please select the timezone. Use numbers or type names directly |
| - | < | + | region list, 'c' |
| - | < | + | ================================================================================ |
| - | < | + | ================================================================================ |
| - | <forward mode='nat'> | + | Installation |
| - | < | + | |
| - | <port start='1024' | + | 1) [x] Language settings |
| - | </ | + | |
| - | </ | + | 3) [!] Installation source |
| - | <bridge name='virbr0' | + | |
| - | < | + | |
| - | < | + | 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 ['b' | ||
| + | ' | ||
| </ | </ | ||
| + | |||
| + | ===Root password=== | ||
| + | |||
| + | Pour définir le mot de passe root de la VM, choisissez l' | ||
| < | < | ||
| - | [root@centos8 ~]# virsh net-edit default | + | ================================================================================ |
| + | ================================================================================ | ||
| + | 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'option **3** : |
| - | < | + | |
| - | <forward mode=' | + | |
| - | <bridge name=' | + | |
| - | <mac address=' | + | |
| - | <ip address=' | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | [ESC]:q | + | |
| - | </ | + | |
| < | < | ||
| - | [root@centos8 ~]# virsh net-edit default | + | ================================================================================ |
| - | Network | + | ================================================================================ |
| + | Installation | ||
| + | |||
| + | 1) [x] Language settings | ||
| + | (French (France)) | ||
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# virsh net-dumpxml default | + | Please make a selection from the above ['c' |
| - | < | + | refresh]: 3 |
| - | < | + | ================================================================================ |
| - | < | + | ================================================================================ |
| - | <forward mode='nat'> | + | Installation source |
| - | < | + | |
| - | <port start='1024' | + | 1) Closest mirror |
| - | </ | + | 2) http:// |
| - | </ | + | 3) https:// |
| - | <bridge name=' | + | 4) ftp:// |
| - | <mac address=' | + | 5) nfs |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </dhcp> | + | |
| - | </ip> | + | |
| - | </network> | + | |
| </ | </ | ||
| - | Changes not shown because not applied | + | Choisissez l' |
| < | < | ||
| - | [root@centos8 ~]# systemctl restart libvirtd | + | Please make a selection from the above [' |
| - | [root@centos8 ~]# systemctl status libvirtd | + | refresh]: 1 |
| - | ● libvirtd.service - Virtualization daemon | + | ================================================================================ |
| - | | + | ================================================================================ |
| - | Active: active (running) since Thu 2021-09-02 10:27:41 EDT; 7s ago | + | Installation |
| - | Docs: man: | + | |
| - | | + | |
| - | Main PID: 4037 (libvirtd) | + | |
| - | Tasks: 19 (limit: 32768) | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | ├─1951 / | + | |
| - | └─4037 / | + | |
| - | Sep 02 10:27:41 centos8.ittraining.loc systemd[1]: Starting Virtualization daemon... | + | 1) [x] Language settings |
| - | Sep 02 10:27:41 centos8.ittraining.loc systemd[1]: Started Virtualization daemon. | + | (French (France)) |
| - | Sep 02 10:27:41 centos8.ittraining.loc dnsmasq[1950]: read /etc/hosts - 2 addresses | + | 3) [x] Installation source |
| - | Sep 02 10:27:41 centos8.ittraining.loc dnsmasq[1950]: read / | + | (Closest mirror) |
| - | Sep 02 10:27:41 centos8.ittraining.loc dnsmasq-dhcp[1950]: read / | + | 5) [!] Installation Destination |
| - | [root@centos8 ~]# virsh net-dumpxml default | + | (No disks selected) |
| - | < | + | 7) [x] Network configuration |
| - | < | + | |
| - | < | + | 9) [ ] User creation |
| - | <forward mode='nat'> | + | (No user will be created) |
| - | < | + | |
| - | <port start='1024' | + | Please make a selection from the above ['b' |
| - | </ | + | 'r' |
| - | </ | + | |
| - | <bridge name='virbr0' | + | |
| - | <mac address=' | + | |
| - | <ip address=' | + | |
| - | < | + | |
| - | <range start=' | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| </ | </ | ||
| - | Reboot | + | ===Software selection=== |
| + | |||
| + | Choisissez l' | ||
| < | < | ||
| - | [root@centos8 ~]# nmcli c show | + | ================================================================================ |
| - | NAME | + | ================================================================================ |
| - | ip_fixe | + | Installation |
| - | virbr0 | + | |
| - | ip_kvm | + | 1) [x] Language settings |
| - | ens18 fc4a4d23-b15e-47a7-bcfa-b2e08f49553e | + | (French (France)) |
| - | [root@centos8 ~]# ip a | + | 3) [x] Installation source |
| - | 1: lo: < | + | (Closest mirror) |
| - | | + | 5) [!] Installation Destination |
| - | inet 127.0.0.1/8 scope host lo | + | (No disks selected) |
| - | valid_lft forever preferred_lft forever | + | 7) [x] Network configuration |
| - | inet6 ::1/128 scope host | + | (Wired (enp1s0) connected) |
| - | valid_lft forever preferred_lft forever | + | 9) [ ] User creation |
| - | 2: ens18: < | + | (No user will be created) |
| - | | + | |
| - | inet 10.0.2.46/ | + | Please make a selection from the above [' |
| - | valid_lft forever preferred_lft forever | + | ' |
| - | inet 192.168.1.2/ | + | ================================================================================ |
| - | valid_lft forever preferred_lft forever | + | ================================================================================ |
| - | inet6 fe80:: | + | Software selection |
| - | valid_lft forever preferred_lft forever | + | |
| - | 3: ens19: < | + | Base environment |
| - | | + | |
| - | 4: virbr0: < | + | 1) [ ] Server with GUI 4) [ ] Workstation |
| - | | + | 2) [ ] Server |
| - | inet 192.168.56.10/ | + | 3) [ ] Minimal Install |
| - | valid_lft forever preferred_lft forever | + | |
| - | 5: virbr0-nic: < | + | 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 : | ||
| < | < | ||
| - | [root@centos8 ~]# ping 192.168.56.1 | + | Please make a selection from the above [' |
| - | PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data. | + | refresh]: c |
| - | 64 bytes from 192.168.56.1: icmp_seq=1 ttl=64 time=14.8 ms | + | ================================================================================ |
| - | 64 bytes from 192.168.56.1: | + | ================================================================================ |
| - | 64 bytes from 192.168.56.1: | + | Software selection |
| - | ^C | + | |
| - | --- 192.168.56.1 ping statistics --- | + | Additional software for selected environment |
| - | 3 packets transmitted, | + | |
| - | rtt min/ | + | 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 | ||
| </ | </ | ||
| - | ====2.3 - Configuration du Stockage==== | + | Ne choisissez rien dans la liste et appuyez simplement sur la touche **c** pour revenir au menu principal : |
| < | < | ||
| - | [root@centos8 ~]# lsblk | + | Please make a selection from the above [' |
| - | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | + | refresh]: c |
| - | sda | + | ================================================================================ |
| - | ├─sda1 | + | ================================================================================ |
| - | └─sda2 | + | Installation |
| - | | + | |
| - | | + | 1) [x] Language settings |
| - | sdb | + | (French (France)) |
| - | sdc 8:32 | + | 3) [!] Installation source |
| - | └─sdc1 | + | |
| - | sdd 8:48 | + | 5) [!] Installation Destination |
| - | sr0 11:0 1 1024M 0 rom | + | (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 | ||
| + | |||
| + | 1) [x] Language settings | ||
| + | | ||
| + | 3) [x] 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 Destination=== | ||
| + | |||
| + | Choisissez l' | ||
| < | < | ||
| - | [root@centos8 ~]# pvcreate /dev/sdd | + | ================================================================================ |
| - | | + | ================================================================================ |
| - | [root@centos8 ~]# vgcreate kvm_storage /dev/sdd | + | Installation |
| - | | + | |
| + | 1) [x] Language settings | ||
| + | (French (France)) | ||
| + | 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** : | ||
| < | < | ||
| - | [root@centos8 ~]# vgs | + | ================================================================================ |
| - | | + | ================================================================================ |
| - | | + | Installation Destination |
| - | kvm_storage | + | |
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# lvcreate -l +100%FREE -n kvm_lv kvm_storage | + | ================================================================================ |
| - | | + | ================================================================================ |
| - | [root@centos8 ~]# lvs | + | 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. |
| - | meta-data=/ | + | |
| - | = sectsz=512 attr=2, projid32bit=1 | + | Please make a selection from the above [' |
| - | = crc=1 finobt=1, sparse=1, rmapbt=0 | + | refresh]: 2 |
| - | = reflink=1 | + | ================================================================================ |
| - | data = bsize=4096 | + | ================================================================================ |
| - | = sunit=0 swidth=0 blks | + | Partitioning Options |
| - | naming | + | |
| - | log | + | 1) [ ] Replace Existing Linux system(s) |
| - | = sectsz=512 sunit=0 blks, lazy-count=1 | + | 2) [x] Use All Space |
| - | realtime | + | 3) [ ] Use Free Space |
| - | Discarding blocks...Done. | + | 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' | ||
| + | |||
| < | < | ||
| - | [root@centos8 ~]# vi /etc/fstab | + | ================================================================================ |
| - | [root@centos8 ~]# cat /etc/fstab | + | ================================================================================ |
| + | Partition Scheme Options | ||
| - | # | + | 1) [ ] Standard Partition |
| - | # / | + | 2) [x] LVM |
| - | # Created by anaconda on Wed Jun 16 06:21:32 2021 | + | 3) [ ] LVM Thin Provisioning |
| - | # | + | |
| - | # Accessible filesystems, | + | |
| - | # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. | + | |
| - | # | + | |
| - | # After editing this file, run ' | + | |
| - | # units generated from this file. | + | |
| - | # | + | |
| - | / | + | |
| - | UUID=1c04981e-5317-4b73-9695-3ce25246835d /boot | + | |
| - | / | + | |
| - | UUID=f76d6b66-985b-4a91-af9c-4987e8c1443c /home | + | |
| - | ## KVM Guest Image Store | + | Select a partition scheme configuration. |
| - | / | + | |
| </ | </ | ||
| + | |||
| + | Bien que préférable de choisir l' | ||
| < | < | ||
| - | [root@centos8 ~]# df -h | + | Please make a selection from the above [' |
| - | Filesystem | + | refresh]: |
| - | devtmpfs | + | ================================================================================ |
| - | tmpfs 1.9G | + | ================================================================================ |
| - | tmpfs 1.9G 9.5M 1.9G 1% /run | + | Partition Scheme Options |
| - | tmpfs 1.9G | + | |
| - | / | + | 1) [x] Standard Partition |
| - | / | + | 2) [ ] LVM |
| - | / | + | 3) [ ] LVM Thin Provisioning |
| - | tmpfs 374M | + | |
| - | tmpfs 374M 1.2M 373M 1% / | + | Select a partition scheme configuration. |
| - | [root@centos8 ~]# mount -a | + | |
| - | [root@centos8 ~]# df -h | + | Please make a selection from the above [' |
| - | Filesystem | + | refresh]: c |
| - | devtmpfs | + | Generating updated storage configuration |
| - | tmpfs | + | Checking storage configuration... |
| - | tmpfs | + | |
| - | tmpfs | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | tmpfs | + | |
| - | tmpfs | + | |
| - | / | + | |
| </ | </ | ||
| + | |||
| + | ===Démarrer l' | ||
| + | |||
| + | De retour au menu principal, choisissez l' | ||
| < | < | ||
| - | [root@centos8 ~]# ls -l / | + | ================================================================================ |
| - | total 0 | + | ================================================================================ |
| + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# virsh pool-list | + | ... |
| - | Name | + | 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' | ||
| < | < | ||
| - | [root@centos8 ~]# virsh pool-define-as kvm-storagepool --type=dir --target | + | Installation complete. Press ENTER to quit: |
| - | Pool kvm-storagepool defined | + | ... |
| + | [ | ||
| + | | ||
| + | [ OK ] Reached | ||
| + | Starting OpenSSH server daemon... | ||
| + | | ||
| + | | ||
| + | | ||
| + | [ OK ] Started OpenSSH server daemon. | ||
| + | [ OK ] Started Permit User Sessions. | ||
| + | | ||
| + | [ OK ] Started Command Scheduler. | ||
| + | | ||
| + | [ | ||
| </ | </ | ||
| - | < | + | ====1.5 |
| - | [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** : |
| - | | + | |
| - | --------------------------------------- | + | |
| - | | + | |
| - | </ | + | |
| < | < | ||
| - | [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 | + | 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@centos8 | + | [root@testvm1 |
| - | Name State | + | 1: lo: < |
| - | --------------------------------------------------------------------------------------------- | + | |
| - | kvm-storagepool | + | 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@centos8 | + | [root@testvm1 |
| - | Filesystem | + | PING www.free.fr (212.27.48.10) 56(84) bytes of data. |
| - | /dev/mapper/kvm_storage-kvm_lv 1014M | + | 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/avg/max/mdev = 29.887/29.989/30.091/0.102 ms | ||
| + | [root@testvm1 ~]# [ALT GR]+[CTRL]+[)] | ||
| + | [root@centos8 ~]# | ||
| </ | </ | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | **Important** : Notez l' | ||
| + | </ | ||
| ----- | ----- | ||
| - | < | + | Copyright © 2022 Hugh Norris |
| - | <div align=" | + | |
| - | Copyright © 2021 Hugh Norris. | + | |
| - | </ | + | |