ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

vCenter Appliance 6.0 – Simplified Scripted Installation

By Vladan SEGET | Last Updated: April 20, 2016

Shares

VMware vCenter Appliance 6.0 can be deployed in two different manners. Through the GUI as I detailed that in my post here, or second way – by using scripted installation. Scripted installation allows you to stay consistent when deploying multiple isolated sites with multiple vCenter Appliances and PSC for example.

Now if you're not a scripting guy it's ok, because VMware has done a good job providing templates allowing just to modify them. Additionaly the help file explains all the options. There is 5 different templates available.

If you have read my detailed post about vCenter Server 6 where I'm detailing this you would be able to see that a new component called Platform Service Component (PSC) was introduced in vCenter Server 6. It's important to know that PSC contains different important vCenter services like SSO , Certificate or Licensing services…. but from the deployment standpoint it's single component. 

The Platform service controller can be deployed as internal (embedded within vCenter) or it can run as an external component to vCenter. The guidelines from VMware says to use PSC as internal for up to 8 vCenter servers.

Five Templates for vCenter Appliance 6.0 Scripted Installation are available

Now back to our vCenter Appliance 6.0 – Simplified Scripted Installation. You can see those 5 JSON example files when you mount the VMware VCSA iso and go to the vcsa-cli-installer folder. JSON means JavaScript Object Notation. JSON file can be edited in any text editor like Notepad ++….

vCenter appliance 6 scripted installation

Those 5 Examples are:

Embedded – this one deploys VCSA with an embedded PSC (All-in-One VM)
Full Conf – this one is used by the VCSA CLI installer
PSC – this one deploys a PSC only.
PSC Replication – this one deploys a PSC (only) and joins an existing SSO domain.
VC – deploys a vCenter Server as an option only (without SSO)

Now Let's open the Embedded.example.JSON to see what's in and how to personalize:

As you can see the left image shows the personalized version where the right one shows the “clean” not personalized one. No need to explain, really. Just replace the example values by your values of your environment… Note that I just added the networking section the example file does not contain it. (copy paste from Full Conf does the job).

vCenter appliance 6 scripted ideployment

Step 1.  Before starting the deployment you must assure that on your DNS server you have created DNS records (forward and reverse)… You can do so when you Go to the Control panel > Administrative Tools > DNS > Expand the Forward lookup zones > Right click your zone > New Host ( A or AAAA).

vCenter Appliance 6 scripted installation

Step 2: Modify your JSON file (as on my example – get it here) and save a copy to some folder on your system. (In my case I saved the file to c:vcsa with a name vladan_embedded.json )

vCenter appliance 6 scripted ideployment

Step 3: Open command prompt (with admin rights) > go to the vcsa deployment directory on the mounted ISO, if you're running Windows workstation or laptop (in my case it is the drive letter “I”, so in my case it is  I:vcsa-cli-installerwin32 )  > run this command:

vcsa-deploy <your_json_file_location_and_name>

so in my case:

vcsa-deploy c:/vcsa/vladan_embedded.json

and let the installer do its work…

In my case, it took about 20 min to fully deploy the appliance so it's not much faster than when using the GUI, but to get through the GUI it takes you perhaps few min more to enter all the details. So at the end the scripted installer finishes faster and also it check for errors in the JSON file (I had some).  Get my JSON config file if you want from here.

vCenter appliance 6 scripted ideployment

Get Help with an Online Help File

There is an online help which might be useful. When you are in the command line just type:

vcsa-deploy -h

to get help. Those help command can be more helpful, for example, you can type

vcsa-deploy –template -h

to get just more detailed help as the –template -h is help for the vCenter server appliance CLI installer template.  Each of the sections is explained. There are six sections in total:

  • VCSA
  • Networking
  • SSO
  • System
  • Database
  • Deployment

For example, the database section looks like this:

database: This list of parameters describes the database that vCenter Server Appliance will use.
It contains the following keys:

type: The database type. Available options are 'embedded' and ‘external'. The default is 'embedded'.

user: The external database user account name. Ignored if the parameter db.type is 'embedded'.

password: The external database user password. Ignored if the parameter db.type is 'embedded'.

servername: The external database server host name. Ignored if the parameter db.type is 'embedded'.

serverport: The port number on which the external database is running. Ignored if the parameter db.type is 'embedded'.

provider: The external database provider. The available option is ‘oracle'. Ignored if the parameter db.type is 'embedded'.

instance: The external database instance name. Ignored if the parameter db.type is 'embedded'.

Video

Note that I did speed up the video after entering the initial command and start of the deployment otherwise, it took 11 min to fully deploy the appliance. I used local SSD as target datastore.


 

Wrap up:

I was quite nicely surprised that the work with the deployment template is quite without a problem and easy. The online help file can certainly be helpful when preparing larger deployments and needs to use an external database for each site. As I said for me it's been a nice surprise as being not really a scripting guy I found it quite easy to follow. The fact that scripted installer can use a simple JSON file for deployment has an advantage over manual one because admin does fewer mistakes during deployment and homogenization of larger environment shall be easier.

More on vSphere 6 can be found on my dedicated vSphere 6.0 page.

VMware VCSA:

  • VMware VCSA – 3 Ways to Activate SSH
  • VMware VCSA – How to check running services?
  • VMware VCSA – How to Join Domain
Shares
5/5 - (2 votes)

| Filed Under: How To, Videos

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Dawid Kudzielka says

    April 13, 2015 at 12:26 pm

    How will VCSA appliance be patched/updated in the future?
    Previous version had an admin web interface but I can’t find it with v6.0.

  2. tiran says

    September 1, 2015 at 8:48 pm

    download link to the json file doesn’t work…
    https://www.dropbox.com/s/aoxqi7nrta0if4o/vladan_embedded.json?dl=0

    • Vladan SEGET says

      September 1, 2015 at 9:26 pm

      Fixed -:) Thanks for letting me know…

  3. Sagar Hindochaa says

    September 16, 2015 at 12:57 am

    For me its shows error:

    Failed to parse the template C:\location_of_file\embedded_homelab.JSON
    No JSON object could be decoded

    • Vladan SEGET says

      September 17, 2015 at 7:27 am

      Things has changed in the VCSA 6.0 U1 where there is more templates (for install and for upgrade). There is a post in draft which shall clear things out. Stay Tuned.

  4. Suresh says

    April 25, 2016 at 5:42 pm

    Vladan,

    Can we use these scripts to upgrade vcsa 55 appliance to 6.0 and also the script does not have any option to specify the datastore, by default which datastore will be chosen for deploying the appliance on host. We are running out of space in our Esxi local datastore so would like to specify alternate datastore.

  5. Biswajit says

    November 26, 2016 at 4:37 pm

    I was unable to connect to esxi server due to proxy settings. You need to remove proxy setting before starting the script.
    For window command is
    set http_proxy=
    set https_proxy=

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Nakivo Backup and Replication v11.1 BETA adds more Proxmox friendly features
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in