WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Completely automating vCenter Server Appliance (VCSA) 5.5 Configurations

Completely automating vCenter Server Appliance (VCSA) 5.5 Configurations

01.15.2015 by William Lam // 8 Comments

As promised, here is a new script called configureVCSA55.sh that I have put together after learning about a couple new VCSA automation tips here and here. This script will fully automate the configuration of a vCenter Server Appliance (VCSA) 5.5 and once the script has completed, you will have a fully functional vCenter Server Appliance. There are several variables at the top of the script that you will want to edit prior to running the script.

Here is a summary of the high level operations the script is performing and not all operations will be performed, it will depend on the variables that you have configured.

  • Accept EULA
  • vSphere Inventory Size Configuration
  • Active Directory Configuration (optional)
  • DNS Search Domain Configuration
  • NTP Configuration
  • vCenter Server Database Configuration
  • vSphere SSO Configuration
  • vSphere SSO Identity Source Configuration for Active Directory (optional)
  • Active Directory default Identity Source Configuration (optional)
  • VMware Telemtry Configuration (optional)

To run the script, you can either SCP the script to a newly deployed VCSA and run it locally in the shell or remotely via SSH using the following command:

ssh root@[VC-IP] < configureVCSA55.sh

completely-automate-configuration-vcsa55.0
I almost never go through a manual configuration of the VCSA anymore (since 5.0) as it just takes way too long! Hopefully you will find this script handy when needing to quickly test something or automating the deployment of a few dozen VCSA which I know of a few customers that are doing on a regular basis 🙂

More from my site

  • How to automate NTP configurations on the VCSA using the CLI
  • Will I get Photon OS when I upgrade my VCSA 5.5/6.0 to VCSA 6.5?
  • Configuring VCSA 6.0 as vSphere Web Client Server for vSphere 5.5
  • Long awaited Fling, Windows vCenter Server to VCSA Converter Appliance is finally here!
  • Increasing disk capacity simplified with VCSA 6.0 using LVM autogrow

Categories // Automation, VCSA, vSphere 5.5 Tags // VCSA, vcva, vpxd_servicecfg, vSphere 5.5

Comments

  1. *protectedRandolf says

    01/20/2015 at 4:29 am

    Did I miss the shell or something that I missed (it has been a while) I wanted to test this internally and I changed the permissions on the script(chmod 777 configureVCSA55.sh) on the vcsa. I ran it (from a temp folder ./configureVCSA55.sh) and getting an error message"

    : command not found
    : command not found
    : command not found
    line 31 Syntax error near unexpected token
    line 32 etc...

    It has been a while, so not sure if I missed something or not.

    Thanks,

    Al

    Reply
    • William Lam says

      01/20/2015 at 7:57 pm

      This looks like you might have downloaded the script to a Windows text editor and then try to upload it to the VCSA which will give you problems. Try using something like EditPlus or Notepad++ which will give you a compatible file which you can then run on the VCSA.

      Reply
      • *protectedEddyc says

        02/10/2015 at 9:15 am

        Notedpad++ returns the same result. What i did was copy the script contents and saved in Notepad++ and it returns the error.

        Then I found if we download from the raw content link and edit with notepad++ it will work.
        The raw content link is:
        https://raw.githubusercontent.com/lamw/vghetto-scripts/master/shell/configureVCSA55.sh

        Hope this can helps.

        Reply
  2. *protectedPhong says

    04/09/2015 at 9:06 pm

    Have you had any luck automating any of this with vcsa 6.0? It looks like vmware changed a lot of the vpxd_servicecfg functionality.

    Reply
    • William Lam says

      04/11/2015 at 5:24 pm

      What exactly are you trying to automate? since the entire deployment/configuration of VCSA 6.0 can be done using the new "Scripted Install". Take a look here for more details http://www.virtuallyghetto.com/2015/02/ultimate-automation-guide-to-deploying-vcsa-6-0.html

      Reply
      • *protectedPhong says

        04/11/2015 at 6:03 pm

        Thanks for the reply! That script worked great for me and gets me 85% there, but I'm trying to automate the addition of LDAP as an identity source, add local users, and configure a syslog remote destination.

        Reply
        • William Lam says

          04/12/2015 at 5:09 pm

          * I blogged about the adding Identity Source for 5.5 and in 6.0, the script is now available on VCSA by default to use. You can check out /usr/lib/vmidentity/tools/scripts/sso-add-native-ad-idp.sh
          * Local OS or SSO users, if the former you can use traditional Linux commands like adduser
          * Take a look at this article for syslog configuration http://www.virtuallyghetto.com/2015/03/a-preview-of-native-syslog-support-in-vcsa-6-0.html

          Reply
  3. *protectedavinash says

    11/12/2016 at 7:41 am

    hi my name avinash i want lean vmware. what is the best practice.

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VCF 9.0 Hardware Considerations 05/30/2025
  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...