# 2- Initialisation d'un cluster Proxmox

### Prérequis:

- Avoir au moins 3 hyperviseurs Proxmox
- Chaque Hyperviseur doit être accessible sur le réseau
- Une seconde interface réseau connectant les serveurs entre eux

#### Schéma:  


[![image.png](https://book.techoops.fr/uploads/images/gallery/2025-05/scaled-1680-/image.png)](https://book.techoops.fr/uploads/images/gallery/2025-05/image.png)

### Mise en place du réseau ADM:

1. Ajout du switch virtuel sur chaque Proxmox  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-05/scaled-1680-/SZBimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-05/SZBimage.png)
    
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-05/scaled-1680-/sdhimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-05/sdhimage.png)
    
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-05/scaled-1680-/DkUimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-05/DkUimage.png)
2. Test de la connectivité entre les Proxmox  
    ```bash
    root@pve-front-01:~# ping -c1 172.16.1.2
    PING 172.16.1.2 (172.16.1.2) 56(84) bytes of data.
    64 bytes from 172.16.1.2: icmp_seq=1 ttl=64 time=0.279 ms
    
    --- 172.16.1.2 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.279/0.279/0.279/0.000 ms
    root@pve-front-01:~# ping -c1 172.16.1.3
    PING 172.16.1.3 (172.16.1.3) 56(84) bytes of data.
    64 bytes from 172.16.1.3: icmp_seq=1 ttl=64 time=0.238 ms
    
    --- 172.16.1.3 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 0.238/0.238/0.238/0.000 ms
    root@pve-front-01:~# 
    ```

### Mise en place du cluster

1. Initialisation du cluster  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/image.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/image.png)
2. Nomage du cluster  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/KhSimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/KhSimage.png)  
    Attendre que le processus soit terminé
3. Récuperer les informations de jonction les notés dans un endroit sûr.  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/Hgnimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/Hgnimage.png)
4. Joindre les noeud au cluster  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/l50image.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/l50image.png)
    
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/56aimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/56aimage.png)
5. Ajouter tout les cluster  
    [![image.png](https://book.techoops.fr/uploads/images/gallery/2025-06/scaled-1680-/ynUimage.png)](https://book.techoops.fr/uploads/images/gallery/2025-06/ynUimage.png)