Posted in Script VMware

Installation de vCenter CLI

Installation de vCenter CLI Posted on 20/10/2017

Je vous présente aujourd’hui un guide d’installation du vCenter en CLI. Cela peut paraitre très compliquer mais se révèle très simple.
Dans un premier temps, il vous faudra une machine pouvant accéder au vCenter ou ESXi host dans votre LAN de management. Ensuite, vous devrez préparer un fichier de configuration, “Myfile.json” pour la configuration de l’appliance lors de son déploiement. Vous trouverez des fichiers modèles dans le dossier “vcsa-cli-installer\templates” depuis l’ISO d’installation du vCenter.
Dans mon exemple, je déploie l’appliance VCSA 6.5 avec une PSC embedded.
Une fois que votre fichier template est prêt, je vous recommande de valider votre fichier template grâce à l’option suivante “–verify-only”.

Dans cet exemple, je valide le fichier “C:\vCSA_on_ESXi.json” pour mon installation.

C:\Users\Administrator>F:\vcsa-cli-installer\win32\vcsa-deploy.exe install --verify-only --accept-eula --acknowledge-ceip "C:\vCSA_on_ESXi.json" -v

Exemple de template d’installation.

{
 "__version": "2.3.0",
 "__comments": "Sample template to deploy a vCenter Server Appliance with an external Platform Services Controller on an ESXi host.",
 "new.vcsa": {
 "esxi": {
 "hostname": "esxihome2.home.local",
 "username": "root",
 "password": "VMware1!",
 "deployment.network": "Management2",
 "datastore": "SSD-Local-ESXihome2"
 },
 "appliance": {
 "thin.disk.mode": true,
 "deployment.option": "small",
 "name": "Embedded-vCenter-Server-Appliance"
 },
 "network": {
 "ip.family": "ipv4",
 "mode": "static",
 "ip": "10.10.10.19",
 "dns.servers": [
 "10.10.10.35"
 ],
 "prefix": "24",
 "gateway": "10.10.10.1",
 "system.name": "10.10.10.19"
 },
 "os": {
 "password": "VMware1!",
 "ssh.enable": false
 },
 "sso": {
 "first-instance":true,
 "platform.services.controller": "LABvCenter2.home.local",
 "password": "VMware1!",
 "domain-name": "vsphere.local",
 "sso.port": 443
 }
 },

"ceip": {
 "description": {
 "__comments": [
 "++++VMware Customer Experience Improvement Program (CEIP)++++",
 "VMware's Customer Experience Improvement Program (CEIP) ",
 "provides VMware with information that enables VMware to ",
 "improve its products and services, to fix problems, ",
 "and to advise you on how best to deploy and use our ",
 "products. As part of CEIP, VMware collects technical ",
 "information about your organization's use of VMware ",
 "products and services on a regular basis in association ",
 "with your organization's VMware license key(s). This ",
 "information does not personally identify any individual. ",
 "",
 "Additional information regarding the data collected ",
 "through CEIP and the purposes for which it is used by ",
 "VMware is set forth in the Trust & Assurance Center at ",
 "http://www.vmware.com/trustvmware/ceip.html . If you ",
 "prefer not to participate in VMware's CEIP for this ",
 "product, you should disable CEIP by setting ",
 "'ceip.enabled': false. You may join or leave VMware's ",
 "CEIP for this product at any time. Please confirm your ",
 "acknowledgement by passing in the parameter ",
 "--acknowledge-ceip in the command line.",
 "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
 ]
 },
 "settings": {
 "ceip.enabled": true
 }

}
 }

Lorsque votre fichier est validé. Vous pouvez retirer l’option “–verify-only” de votre précédente commande, et votre installation va débuter.

Vous trouverez le détail des options possible pour le fichier template grâce à cette commande.

C:\Users\Administrator>F:\vcsa-cli-installer\win32\vcsa-deploy.exe install --template-help

Have fun..