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:lcf700:l704 [2023/02/07 09:44] – admin | elearning:workbooks:centos:8:lcf700:l704 [2023/02/17 13:17] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2022.01** | + | Version : **2023.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
Ligne 61: | Ligne 61: | ||
* 9.4 - Augmentation des Ressources de la VM testvm2 | * 9.4 - Augmentation des Ressources de la VM testvm2 | ||
* 9.5 - Ajout et Suppression d'un Disque Dur à la VM testvm2 | * 9.5 - Ajout et Suppression d'un Disque Dur à la VM testvm2 | ||
+ | * LAB #10 - oVirt | ||
+ | * 10.1 - Procédure d' | ||
+ | * 10.2 - Configuration d' | ||
+ | * 10.3 - Configuration du Stockage | ||
+ | * 10.4 - Création d'un Machine Virtuelle | ||
| | ||
=====LAB #1 - Augmentation de la Taille du Disque===== | =====LAB #1 - Augmentation de la Taille du Disque===== | ||
Ligne 240: | Ligne 245: | ||
< | < | ||
- | [root@testvm1 ~]# xfs_growfs /dev/vda3 | + | [root@testvm1 ~]# xfs_growfs / |
meta-data=/ | meta-data=/ | ||
| | ||
Ligne 342: | Ligne 347: | ||
`-vda3 253:3 0 5.5G 0 part / | `-vda3 253:3 0 5.5G 0 part / | ||
- | [root@testvm1 ~]# xfs_growfs /dev/vda3 | + | [root@testvm1 ~]# xfs_growfs / |
meta-data=/ | meta-data=/ | ||
| | ||
Ligne 394: | Ligne 399: | ||
====2.2 - La Commande guestfish==== | ====2.2 - La Commande guestfish==== | ||
- | Commencez par ajouter | + | Commencez par fixer la valeur de la variable LIBGUESTFS_BACKEND à **direct** : |
+ | |||
+ | < | ||
+ | [root@centos8 ~]# export LIBGUESTFS_BACKEND=direct | ||
+ | </ | ||
+ | |||
+ | Ajoutez | ||
< | < | ||
Ligne 424: | Ligne 435: | ||
</ | </ | ||
- | Listez ensuite les systèmes de ficheirs | + | Listez ensuite les systèmes de fichiers |
< | < | ||
Ligne 464: | Ligne 475: | ||
>< | >< | ||
0 | 0 | ||
- | >< | + | >< |
0 | 0 | ||
</ | </ | ||
Ligne 770: | Ligne 781: | ||
[root@centos8 ~]# virsh edit testvm1 | [root@centos8 ~]# virsh edit testvm1 | ||
... | ... | ||
- | <currentMemory | + | <memory |
<vcpu placement=' | <vcpu placement=' | ||
... | ... | ||
Ligne 925: | Ligne 936: | ||
</ | </ | ||
- | Créez un système de fichiers de type **xfs** sur la partition : | + | Créez un système de fichiers de type **ext4** sur la partition : |
< | < | ||
Ligne 1369: | Ligne 1380: | ||
**A Faire** : Supprimez la machine virtuelle testvm2. Assurez-vous que votre machine virtuelle **testvm1** soit arrêtée. | **A Faire** : Supprimez la machine virtuelle testvm2. Assurez-vous que votre machine virtuelle **testvm1** soit arrêtée. | ||
</ | </ | ||
+ | |||
+ | =====LAB #10 - oVirt===== | ||
+ | |||
+ | ====10.1 - Procédure d' | ||
+ | |||
+ | Cette procédure prend 60 minutes. | ||
+ | |||
+ | Connectez-vous à la VM **10.0.2.46** : | ||
+ | |||
+ | < | ||
+ | root@computeXX: | ||
+ | trainee@10.0.2.46' | ||
+ | Activate the web console with: systemctl enable --now cockpit.socket | ||
+ | |||
+ | Last login: Thu Feb 16 14:15:27 2023 from 10.0.2.1 | ||
+ | [trainee@centos8 ~]$ | ||
+ | </ | ||
+ | |||
+ | Devenez root et mettez à jour les paquets installés : | ||
+ | |||
+ | < | ||
+ | [trainee@centos8 ~]$ su - | ||
+ | Password: fenestros | ||
+ | [root@centos8 ~]# dnf update -y | ||
+ | </ | ||
+ | |||
+ | Téléchargez et installez le paquet **ovirt-release44.rpm** afin de configurer le dépôt des paquets : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf -y install https:// | ||
+ | </ | ||
+ | |||
+ | Activez le module **javapackages-tools** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf module -y enable javapackages-tools | ||
+ | CentOS-$stream - Ceph Pacific | ||
+ | CentOS Linux 8 - PowerTools | ||
+ | determining the fastest mirror (13 hosts).. done.674 | ||
+ | Latest oVirt 4.4 Release | ||
+ | Extra Packages for Enterprise Linux 8 2.4 MB/s | 13 MB | ||
+ | CentOS-8 - Gluster 8 60 kB/s | 42 kB | ||
+ | virtio-win builds roughly matching what will be shipped in upcoming RHEL 80 kB/s | 205 kB | ||
+ | Copr repo for EL8_collection owned by sbonazzo | ||
+ | Copr repo for gluster-ansible owned by sac 10 kB/s | 7.3 kB | ||
+ | CentOS-8 - Advanced Virtualization | ||
+ | CentOS-8 - oVirt 4.4 496 kB/s | 1.2 MB | ||
+ | CentOS-8 - OpsTools - collectd | ||
+ | CentOS-8 - OpsTools - collectd - vault 340 kB/s | 149 kB | ||
+ | CentOS-8 - NFV OpenvSwitch | ||
+ | CentOS-8 - OpenStack victoria | ||
+ | Dependencies resolved. | ||
+ | ============================================================================================================================================================================ | ||
+ | | ||
+ | ============================================================================================================================================================================ | ||
+ | Enabling module streams: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ============================================================================================================================================================================ | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | Activez le module **pki-deps** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf module -y enable pki-deps | ||
+ | Last metadata expiration check: 0:02:46 ago on Thu 16 Feb 2023 14:46:17 CET. | ||
+ | Dependencies resolved. | ||
+ | ============================================================================================================================================================================ | ||
+ | | ||
+ | ============================================================================================================================================================================ | ||
+ | Enabling module streams: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ============================================================================================================================================================================ | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | Dernièrement, | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf module -y enable postgresql: | ||
+ | Last metadata expiration check: 0:03:45 ago on Thu 16 Feb 2023 14:46:17 CET. | ||
+ | Dependencies resolved. | ||
+ | ============================================================================================================================================================================ | ||
+ | | ||
+ | ============================================================================================================================================================================ | ||
+ | Enabling module streams: | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ============================================================================================================================================================================ | ||
+ | |||
+ | Complete! | ||
+ | </ | ||
+ | |||
+ | Procédez de nouveau à une mise-à-jour des paquets : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf -y update | ||
+ | </ | ||
+ | |||
+ | Installez maintenant les paquets **vim**, **tmux** et **ovirt-engine** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# dnf -y install vim tmux ovirt-engine | ||
+ | </ | ||
+ | |||
+ | Dernièrement, | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# echo " | ||
+ | </ | ||
+ | |||
+ | ====10.2 - Configuration d' | ||
+ | |||
+ | La configuration prend 60 minutes. | ||
+ | |||
+ | Lancez un terminal tmux : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# tmux | ||
+ | </ | ||
+ | |||
+ | Dans le terminal tmux, exécutez la commande **engine-setup** et répondez aux questions en suivant l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# engine-setup | ||
+ | [ INFO ] Stage: Initializing | ||
+ | [ INFO ] Stage: Environment setup | ||
+ | Configuration files: / | ||
+ | Log file: / | ||
+ | Version: otopi-1.9.6 (otopi-1.9.6-1.el8) | ||
+ | [ INFO ] Stage: Environment packages setup | ||
+ | [ INFO ] Stage: Programs detection | ||
+ | [ INFO ] Stage: Environment setup (late) | ||
+ | [ INFO ] Stage: Environment customization | ||
+ | |||
+ | --== PRODUCT OPTIONS ==-- | ||
+ | |||
+ | Configure Cinderlib integration (Currently in tech preview) (Yes, No) [No]: No | ||
+ | Configure Engine on this host (Yes, No) [Yes]: Yes | ||
+ | |||
+ | Configuring ovirt-provider-ovn also sets the Default cluster' | ||
+ | Non-Default clusters may be configured with an OVN after installation. | ||
+ | Configure ovirt-provider-ovn (Yes, No) [Yes]: Yes | ||
+ | Configure WebSocket Proxy on this host (Yes, No) [Yes]: Yes | ||
+ | |||
+ | * Please note * : Data Warehouse is required for the engine. | ||
+ | If you choose to not configure it on this host, you have to configure | ||
+ | it on a remote host, and then configure the engine on this host so | ||
+ | that it can access the database of the remote Data Warehouse host. | ||
+ | Configure Data Warehouse on this host (Yes, No) [Yes]: Yes | ||
+ | Configure VM Console Proxy on this host (Yes, No) [Yes]: Yes | ||
+ | Configure Grafana on this host (Yes, No) [Yes]: Yes | ||
+ | |||
+ | --== PACKAGES ==-- | ||
+ | |||
+ | [ INFO ] Checking for product updates... | ||
+ | [ INFO ] No product updates found | ||
+ | |||
+ | --== NETWORK CONFIGURATION ==-- | ||
+ | |||
+ | Host fully qualified DNS name of this server [centos8.ittraining.loc]: | ||
+ | [WARNING] Failed to resolve centos8.ittraining.loc using DNS, it can be resolved only locally | ||
+ | |||
+ | Setup can automatically configure the firewall on this system. | ||
+ | Note: automatic configuration of the firewall may overwrite current settings. | ||
+ | Do you want Setup to configure the firewall? (Yes, No) [Yes]: Yes | ||
+ | [ INFO ] firewalld will be configured as firewall manager. | ||
+ | |||
+ | --== DATABASE CONFIGURATION ==-- | ||
+ | |||
+ | Where is the DWH database located? (Local, Remote) [Local]: Local | ||
+ | |||
+ | Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications. | ||
+ | Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: | ||
+ | Where is the Engine database located? (Local, Remote) [Local]: | ||
+ | |||
+ | Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications. | ||
+ | Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]: | ||
+ | |||
+ | --== OVIRT ENGINE CONFIGURATION ==-- | ||
+ | |||
+ | Engine admin password: fenestros | ||
+ | Confirm engine admin password: fenestros | ||
+ | [WARNING] Password is weak: The password fails the dictionary check - it is based on a dictionary word | ||
+ | Use weak password? (Yes, No) [No]: Yes | ||
+ | Application mode (Virt, Gluster, Both) [Both]: Both | ||
+ | Use default credentials (admin@internal) for ovirt-provider-ovn (Yes, No) [Yes]: Yes | ||
+ | |||
+ | --== STORAGE CONFIGURATION ==-- | ||
+ | |||
+ | Default SAN wipe after delete (Yes, No) [No]: No | ||
+ | |||
+ | --== PKI CONFIGURATION ==-- | ||
+ | |||
+ | Organization name for certificate [ittraining.loc]: | ||
+ | |||
+ | --== APACHE CONFIGURATION ==-- | ||
+ | |||
+ | Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. | ||
+ | Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]: Yes | ||
+ | |||
+ | Setup can configure apache to use SSL using a certificate issued from the internal CA. | ||
+ | Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: | ||
+ | |||
+ | --== SYSTEM CONFIGURATION ==-- | ||
+ | |||
+ | |||
+ | --== MISC CONFIGURATION ==-- | ||
+ | |||
+ | Please choose Data Warehouse sampling scale: | ||
+ | (1) Basic | ||
+ | (2) Full | ||
+ | (1, 2)[1]: 1 | ||
+ | Use Engine admin password as initial Grafana admin password (Yes, No) [Yes]: | ||
+ | |||
+ | --== END OF CONFIGURATION ==-- | ||
+ | |||
+ | [ INFO ] Stage: Setup validation | ||
+ | [WARNING] Less than 16384MB of memory is available | ||
+ | |||
+ | --== CONFIGURATION PREVIEW ==-- | ||
+ | |||
+ | Application mode : both | ||
+ | Default SAN wipe after delete | ||
+ | Host FQDN : centos8.ittraining.loc | ||
+ | Firewall manager | ||
+ | Update Firewall | ||
+ | Set up Cinderlib integration | ||
+ | Configure local Engine database | ||
+ | Set application as default page : True | ||
+ | Configure Apache SSL : True | ||
+ | Engine database host : localhost | ||
+ | Engine database port : 5432 | ||
+ | Engine database secured connection | ||
+ | Engine database host name validation | ||
+ | Engine database name : engine | ||
+ | Engine database user name : engine | ||
+ | Engine installation | ||
+ | PKI organization | ||
+ | Set up ovirt-provider-ovn | ||
+ | Grafana integration | ||
+ | Grafana database user name : ovirt_engine_history_grafana | ||
+ | Configure WebSocket Proxy : True | ||
+ | DWH installation | ||
+ | DWH database host : localhost | ||
+ | DWH database port : 5432 | ||
+ | DWH database secured connection | ||
+ | DWH database host name validation | ||
+ | DWH database name : ovirt_engine_history | ||
+ | Configure local DWH database | ||
+ | Configure VMConsole Proxy : True | ||
+ | |||
+ | Please confirm installation settings (OK, Cancel) [OK]: OK | ||
+ | [ INFO ] Stage: Transaction setup | ||
+ | [ INFO ] Stopping engine service | ||
+ | [ INFO ] Stopping ovirt-fence-kdump-listener service | ||
+ | [ INFO ] Stopping dwh service | ||
+ | [ INFO ] Stopping vmconsole-proxy service | ||
+ | [ INFO ] Stopping websocket-proxy service | ||
+ | [ INFO ] Stage: Misc configuration (early) | ||
+ | [ INFO ] Stage: Package installation | ||
+ | [ INFO ] Stage: Misc configuration | ||
+ | [ INFO ] Upgrading CA | ||
+ | [ INFO ] Initializing PostgreSQL | ||
+ | [ INFO ] Creating PostgreSQL ' | ||
+ | [ INFO ] Configuring PostgreSQL | ||
+ | [ INFO ] Creating PostgreSQL ' | ||
+ | [ INFO ] Configuring PostgreSQL | ||
+ | [ INFO ] Creating CA: / | ||
+ | [ INFO ] Creating CA: / | ||
+ | [ INFO ] Updating OVN SSL configuration | ||
+ | [ INFO ] Updating OVN timeout configuration | ||
+ | [ INFO ] Creating/ | ||
+ | [ INFO ] Setting up ovirt-vmconsole proxy helper PKI artifacts | ||
+ | [ INFO ] Setting up ovirt-vmconsole SSH PKI artifacts | ||
+ | [ INFO ] Configuring WebSocket Proxy | ||
+ | [ INFO ] Creating/ | ||
+ | [ INFO ] Creating a user for Grafana | ||
+ | [ INFO ] Creating/ | ||
+ | [ INFO ] Creating default mac pool range | ||
+ | [ INFO ] Adding default OVN provider to database | ||
+ | [ INFO ] Adding OVN provider secret to database | ||
+ | [ INFO ] Setting a password for internal user admin | ||
+ | [ INFO ] Install selinux module / | ||
+ | [ INFO ] Generating post install configuration file '/ | ||
+ | [ INFO ] Stage: Transaction commit | ||
+ | [ INFO ] Stage: Closing up | ||
+ | [ INFO ] Starting engine service | ||
+ | [ INFO ] Starting dwh service | ||
+ | [ INFO ] Starting Grafana service | ||
+ | [ INFO ] Restarting ovirt-vmconsole proxy service | ||
+ | |||
+ | --== SUMMARY ==-- | ||
+ | |||
+ | [ INFO ] Restarting httpd | ||
+ | Please use the user ' | ||
+ | Web access is enabled at: | ||
+ | http:// | ||
+ | https:// | ||
+ | Internal CA 00: | ||
+ | SSH fingerprint: | ||
+ | [WARNING] Less than 16384MB of memory is available | ||
+ | Web access for grafana is enabled at: | ||
+ | https:// | ||
+ | Please run the following command on the engine machine centos8.ittraining.loc, | ||
+ | systemctl restart ovirt-engine | ||
+ | |||
+ | --== END OF SUMMARY ==-- | ||
+ | |||
+ | [ INFO ] Stage: Clean up | ||
+ | Log file is located at / | ||
+ | [ INFO ] Generating answer file '/ | ||
+ | [ INFO ] Stage: Pre-termination | ||
+ | [ INFO ] Stage: Termination | ||
+ | [ INFO ] Execution of setup completed successfully | ||
+ | </ | ||
+ | |||
+ | Notez les deux URLs : | ||
+ | |||
+ | < | ||
+ | Please use the user ' | ||
+ | Web access is enabled at: | ||
+ | http:// | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Web access for grafana is enabled at: | ||
+ | https:// | ||
+ | </ | ||
+ | |||
+ | Re-démarrez le service **ovirt-engine** : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# systemctl restart ovirt-engine | ||
+ | </ | ||
+ | |||
+ | Dans votre Gateway, éditez le fichier /etc/hosts : | ||
+ | |||
+ | < | ||
+ | trainee@gateway: | ||
+ | Password: Fenestr0$ | ||
+ | root@gateway: | ||
+ | root@gateway: | ||
+ | 127.0.0.1 localhost | ||
+ | 10.0.2.40 gateway.ittraining.loc gateway | ||
+ | 10.0.2.46 centos8.ittraining.loc centos8 | ||
+ | 10.0.2.47 windows10.ittraining.loc windows10 | ||
+ | 10.0.2.50 kubemaster.ittraining.loc kubemaster | ||
+ | 10.0.2.51 kubenode01.ittraining.loc kubenode01 | ||
+ | 10.0.2.52 kubenode02.ittraining.loc kubenode02 | ||
+ | 10.0.2.53 ansible.ittraining.loc ansible | ||
+ | 10.0.2.54 targeta.ittraining.loc targeta | ||
+ | 10.0.2.55 targetb.ittraining.loc targetb | ||
+ | 10.0.2.56 manager.ittraining.loc manager | ||
+ | 10.0.2.57 worker01.ittraining.loc worker01 | ||
+ | 10.0.2.58 worker02.ittraining.loc worker02 | ||
+ | 10.0.2.59 puppetmaster.ittraining.loc puppetmaster | ||
+ | 10.0.2.60 puppetslave01.ittraining.loc puppetslave01 | ||
+ | 10.0.2.61 puppetslave02.ittraining.loc puppetslave02 | ||
+ | |||
+ | # The following lines are desirable for IPv6 capable hosts | ||
+ | ::1 | ||
+ | ff02::1 ip6-allnodes | ||
+ | ff02::2 ip6-allrouters | ||
+ | </ | ||
+ | |||
+ | En utilisant le navigateur de votre Gateway, allez à l' | ||
+ | |||
+ | Entrez dans les **Settings** du navigateur web et recherchez la chaine **cert** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez ensuite sur **View Certificates** puis sur **Authorities** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur le bouton **Import** et importez le fichier **pki-resource**. Cochez les deux options et cliquez sur le bouton **OK** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Re-démarrez le navigateur web puis allez à l' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur **Not logged in** et ensuite **Log in** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Connectez-vous avec **admin** et **fenestros** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur **Administration Portal** dans **Portals** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Editez le fichier **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# vi /etc/hosts | ||
+ | [root@centos8 ~]# cat /etc/hosts | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | 10.0.2.46 | ||
+ | </ | ||
+ | |||
+ | Naviguez à **Compute** > **Hosts** et ajoutez **centos8.ittraining.loc** | ||
+ | |||
+ | ====10.3 - Configuration du Stockage==== | ||
+ | |||
+ | Vérifiez que le serveur NFS soit installé : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# systemctl status nfs-server | ||
+ | ● nfs-server.service - NFS server and services | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Vérifiez ensuite la présence du groupe **kvm** et de l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# getent group kvm | ||
+ | kvm: | ||
+ | [root@centos8 ~]# getent passwd vdsm | ||
+ | vdsm: | ||
+ | </ | ||
+ | |||
+ | Créez les répertoires **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# mkdir -p / | ||
+ | </ | ||
+ | |||
+ | Modifiez le propriétaire et le groupe des répertoires : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# chown -R 36:36 / | ||
+ | [root@centos8 ~]# chown -R 36:36 / | ||
+ | [root@centos8 ~]# chown -R 36:36 / | ||
+ | </ | ||
+ | |||
+ | Modifiez les permissions des répertoires : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# chmod 0755 / | ||
+ | [root@centos8 ~]# chmod 0755 / | ||
+ | [root@centos8 ~]# chmod 0755 / | ||
+ | </ | ||
+ | |||
+ | CRéez ensuite le fichier **/ | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# vi / | ||
+ | [root@centos8 ~]# cat / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Activez et démarrez le serveur NFS : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# systemctl enable --now nfs-server | ||
+ | Created symlink / | ||
+ | </ | ||
+ | |||
+ | Vérifiez l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# exportfs -rvv | ||
+ | exporting *:/ | ||
+ | exporting *:/ | ||
+ | exporting *:/ | ||
+ | </ | ||
+ | |||
+ | Ajoutez les règles du pare-feu : | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# firewall-cmd --add-service={nfs, | ||
+ | success | ||
+ | [root@centos8 ~]# firewall-cmd --reload | ||
+ | success | ||
+ | [root@centos8 ~]# firewall-cmd --permanent --zone public --add-port 80/tcp | ||
+ | success | ||
+ | [root@centos8 ~]# firewall-cmd --permanent --zone public --add-port 443/tcp | ||
+ | success | ||
+ | [root@centos8 ~]# firewall-cmd --reload | ||
+ | success | ||
+ | </ | ||
+ | |||
+ | Naviguez à **Storage** > **Domains** > **New Domain** et ajoutez **/ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Ajoutez ensuite les exports NFS **/ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Patientez jusqu' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ====10.4 - Création d'un Machine Virtuelle==== | ||
+ | |||
+ | Retournez dans votre Gateway et téléchargez une image iso de la distribution Debian : | ||
+ | |||
+ | < | ||
+ | trainee@gateway: | ||
+ | </ | ||
+ | |||
+ | Cliquez ensuite sur **Storage** > **Disks** > **Upload** > **Start** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Choisissez l' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Constatez la présence de l'iso dans la liste : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur **Compute** > **Virtual Machines** > **New** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Remplissez le formulaire en suivant l' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur le bouton **Create**, remplisez la taille et cliquez sur le bouton **OK** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur le bouton **Show Advanced Options** puis **System** et modifiez **Memory Size** à 2048 MB : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur **Boot Options** et cochez **Attach CD** et cliquez sur le bouton **OK** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Cliquez sur la flèche à droite de **Run** et cliquez sur **Run Once** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Développez **Console** et cochez VNC. Choisissez le clavier **fr** et cliquez sur le bouton **OK** : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
----- | ----- | ||
- | Copyright © 2022 Hugh Norris | + | Copyright © 2023 Hugh Norris |