Mettre en place des modèles de machines virtuelles sous VCenter et les déployer
Introduction :
Un modèle de machine virtuelle est une copie principale d'une machine virtuelle qui comprend généralement le système d'exploitation, un ensemble d'applications et une configuration de machine virtuelle spécifique.
Les modèles de machine virtuelle sont utilisés lorsque vous devez déployer de nombreuses machines virtuelles et vous assurer qu'elles soient identiques et standardisées.
Par exemple, vous pouvez configurer une image principale d'un système d'exploitation serveur fréquemment déployé, tel que Windows Server 2019.
Cette machine virtuelle pourra être personnalisée pour former une version standard pour votre environnement, puis toutes les futures installations de Windows Server 2019 pourrons être déployées à partir de ce modèle.
Il existe deux options pour créer des modèles de machine virtuelle dans vCenter Server:
Cloner dans un modèle - la machine virtuelle d'origine est copiée dans au format modèle. La vm d'origine est conservée.
Convertir en modèle - la machine virtuelle d'origine est copiée au format modèle. La vm d'origine n'est pas conservée.
Avant de commencer
-
Vous devez être connecté à vCenter Server pour convertir une machine virtuelle à un modèle. Vous ne pouvez pas créer de modèles si vous connectez vSphere Client directement à un hôte ESXi.
-
Avant que vous convertissiez une machine virtuelle en modèle, sélectionnez-la dans l'inventaire et désactivez-la.
-
Quand vous convertissez une machine virtuelle en modèle, vous ne pouvez pas modifier les paramètres ou mettre sous tension le modèle à moins que vous le convertissiez de nouveau en une machine virtuelle.
Les différentes bibliothèques de contenu :
Nous allons être amené à créer une bibliothèque de contenu pour y stocker nos modèles de vm. C'est pourquoi il est important de voir les différents types de bibliothèques.
Bibliothèque de contenu local : Une bibliothèque de contenu locale est accessible uniquement dans l'instance de vCenter Server dans laquelle vous l'avez créée.
Bibliothèque de contenu publiée : Sélectionnez Publié en externe pour rendre le contenu de la bibliothèque accessible à d'autres instances de vCenter Server.
Bibliothèque de contenu publié optimisée : Sélectionnez Optimiser pour la synchronisation sur HTTP pour créer une bibliothèque publiée optimisée.
Bibliothèque de contenu avec abonnement : Crée une bibliothèque de contenu qui est abonnée à une bibliothèque de contenu publiée. Vous pouvez synchroniser la bibliothèque abonnée avec la bibliothèque publiée pour voir du contenu actualisé, mais vous ne pouvez pas ajouter du contenu dans la bibliothèque ni en supprimer.
Seul un administrateur de la bibliothèque publiée peut ajouter, modifier et supprimer du contenu de la bibliothèque publiée.
Sommaire :
- Mise en place d'un modèle OVF
1.1 Création d'une bibliothèque de contenus
1.2 Clône au format OVF d'une VM vers la bibliothèque de contenus
1.3 Importation d'un modèle OVF dans la bibliothèque de contenus
1.4 Création d'une VM à partir d'un modèle OVF
- Mise en place d'un modèle personnalisable
2.1 Conversion d'une VM Windows 10 en modèle
2.2 Création d'une VM à partir du modèle Windows 10 et ajout d'une nouvelle spécification de personnalisation d'invité pour la VM
2.3 Conversion d'une VM Serveur 2019 en modèle
2.4 Création d'une VM à partir du modèle Serveur 2019 et ajout d'une nouvelle spécification de personnalisation d'invité pour la VM
- Déploiement des VM personnalisées
3.1 Déploiement de la VM Windows 10 personnalisée
3.2 Déploiement de la VM Serveur 2019 personnalisée
1. Mise en place d'un modèle OVF
1.1 Création d'une bibliothèque de contenus
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
1.3 Importation d'un modèle OVF dans la bibliothèque de contenus
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
1.4 Création d'une VM à partir d'un modèle OVF
2. Mise en place d'un modèle personnalisable
2.1 Conversion d'une VM Windows 10 en modèle
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
2.2 Création d'une VM à partir du modèle Windows 10 et ajout d'une nouvelle spécification de personnalisation d'invité pour la VM
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →









2.3 Conversion d'une VM Serveur 2019 en modèle


2.4 Création d'une VM à partir du modèle Serveur 2019 et ajout d'une nouvelle spécification de personnalisation d'invité pou la VM


























3. Déploiement des vm personnalisés
3.1 Déploiement de la VM Windows 10 personnalisée



3.2 Déploiement de la VM Serveur 2019 personnalisée
- Une fois la machine démarré, j’entre dans la session administrateur sans entrer de mot de passe comme convenu lors de mon paramétrage de mon modèle

- Un numéro a été ajouté à mon nom de serveur. Je peux donc en créer autant que je veux sans me soucier de l’appellation. La VM a également été automatiquement entrée dans le domaine. C’est ce qu’on peut voir dans le DNS de mon contrôleur de domaine.

- On peut voir que la VM a également obtenu une adresse en DHCP en conformité avec la plage d’adresse configurée dans le service DHCP de mon contrôleur de domaine.

