WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple

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 🙂

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

Quick Tip - Automate JVM Heap configurations after increasing VCSA memory

01.12.2015 by William Lam // 1 Comment

If you are using the VCSA (vCenter Server Appliance) and you wish to increase the VM memory settings to one of the three supported memory configurations: 8-16GB, 24GB & 32GB, there is on additional configuration change before the new memory configuration can take effect. This change is adjusting the JVM Heap memory settings for the following vCenter Server Services: vSphere Web Client, Inventory Service and SPS (vSphere Profile-Driven Storage). If you would like to do this from the UI, you can access the VCSA's VAMI interface and under vCenter Server->Services tab, there is a "Inventory Size" toggle that you will need to set based on your VCSA's configured memory. Once you have save the settings, you will need to restart the vCenter Server for the changes to take effect.

increase_memory_on_vcsa
Note: The text in the VAMI states that the appliance requires at least 16GB of RAM for a Medium configuration which is actually incorrect, it should actually say 24GB for Medium configuration. The correct supported VCSA memory configuration maximum can be found here.

The UI is great but what if you wish to automate this change? This is especially handy if you have already automated the memory increase for the VCSA itself. Luckily, we can turn to our handy vpxd_servicefg command which supports modifying the JVM Memory based on the three supported vSphere Inventory Sizes. Below is the chart with the respective Inventory Size and command to issue within the VCSA. The parameters reflect the JVM Heap configurations for the vSphere Web Client, Inventory Service and SPS (vSphere Profile-Driven Storage).

Inventory Size VCSA Memory Command
Small 8-16GB /usr/sbin/vpxd_servicecfg 'jvm-max-heap' 'write' '512' '3072' '1024'
Medium 24GB /usr/sbin/vpxd_servicecfg 'jvm-max-heap' 'write' '512' '6144' '2048'
Large 32GB /usr/sbin/vpxd_servicecfg 'jvm-max-heap' 'write' '1024' '12288' '4096'
Once the command has successfully completed, you can refresh the VCSA VAMI interface and you should see the appropriate size has been configured. For the changes to take effect, you will need to restart the vCenter Service by issuing one of the following commands:

/usr/sbin/vpxd_servicecfg service restart

or

/etc/init.d/vmware-vpxd restart

Categories // Automation, VCSA Tags // jvm heap, VCSA, vcva, vpxd_servicecfg

Handy VCSA (vCenter Server Appliance) Operational KB Resources

12.09.2014 by William Lam // 1 Comment

I am a huge fan of the VCSA (vCenter Server Appliance) for anyone that knows me. From time to time, I see interesting VMware KB articles that contain what I think are valuable tidbits of "Operational" information that could come handy in the future. I normally would bookmark these in my browser since you never know when you might need it. I figured for customers who are currently using the VCSA, having some of these operational tidbits would definitely be helpful, especially during troubleshooting or helping them build out a list of resources they could reference when they need to update, increase capacity or change the configurations for the VCSA. Instead of just keeping this list for myself, I thought I can share what I have for the latest VCSA 5.5.x as well comb through our VMware KB site looking for other handy operational KB's to include.

I have categorized the VCSA KB's into four categories that I felt made the most sense, I am sure you could break it down further but I thought this would make it easier to process. In addition, I have also included articles from virtuallyGhetto (subset from this page) that may also apply to these areas which I have listed at the very bottom in case you were interested in those as well. Hopefully this will be helpful for anyone managing VCSA(s) and if there are any that I have missed or you would like to see get added, feel free to leave a comment.

Deployment:
  • Minimum Requirements for the VMware vCenter Server 5.x Appliance (2005086)
  • Downloading and deploying the vCenter Server Appliance 5.x (2007619)
Configurations:
  • Updating VMware vCenter Server Appliance 5.x (2031331)
  • Increase the disk space in vCenter Server Appliance (2056764)
  • vCenter Server Appliance fails to reconfigure JVM settings when the memory size of the virtual machine on which it resides is modified (2066099)
  • Configuring Certificate Authority (CA) signed certificates for vCenter Server Appliance 5.5 (2057223)
  • Re-repointing and re-registering VMware vCenter Server Appliance 5.5 and components (2094888)
  • vSphere Flash Read Cache considerations for vCenter Server 5.5u2 (2072392)
  • Adding an Integrated Active Directory (IWA) Identity Source without the vSphere Web Client for vCenter Single Sign-On 5.5 (2063424)
  • Adding Default Identity Provider (2070433)
Logging & Troubleshooting:
  • Location of vCenter Server log files (1021804)
  • Location of vCenter Server Service log files (2056632)
  • Location of vSphere Profile-Driven Storage log files (2056646)
  • Location of vSphere ESXi Dump Collector log files (2003277)
  • Location of vCenter Inventory Service log files (2056632)
  • Location of vSphere Web Client service log files (2004090)
  • Location of vCenter Single Sign-On log files for vCenter Server 5.x (2033430)
  • Location of vCenter Server SMTP mail log files (2075375)
  • Enable debug logging for the vCenter Inventory Service (2021705)
  • Stopping, starting, or restarting vCenter Server Appliance services (2054085)
Backups & Recovery: 
  • Backing up and restoring the vCenter Server Appliance vPostgres Database (2034505)
  • Backing up and restoring the VMware vCenter Single Sign-On 5.5 configuration (2057353)
  • Backing up and restoring the vCenter Server Appliance Inventory Service Database (2062682)
  • Preserving the Storage Policies during a backup and restore of the vCenter Server Inventory Service Database (2072307)

virtuallyGhetto VCSA Operational Resources

Deployment:
  • Automating VCSA 5.5 Configurations including SSO Administrator password
  • How to finally inject OVF properties into VCSA when deploying directly onto ESXi?
  • Quick Tip – Automate the enabling of the Customer Experience Improvement Program (vTelemetry) in VCSA
  • How to automate NTP configurations on the VCSA using the CLI
  • Quick Tip – Minimum amount of memory to run the vCenter Server Appliance
  • Automating VCSA Network Configurations For Greenfield Deployments
Configurations:
  • Hybrid environment leveraging SSO Multi-Master Replication between vCenter Server for Windows & VCSA
  • Administrator password expiration in new VCSA 5.5
  • Automating SSL Self Signed Certificate Regeneration in VCSA 5.1 & 5.5 (vCenter Server Appliance)
  • Separating Out the vCenter SSO, vSphere Web Client and vCenter Server Services Using the VCSA
  • Changing VCSA Failed Login Attempt & Lock Out Period
  • Default Password for vCenter SSO Admin Account on VCSA
  • Automatically Join Multiple VCSA 5.1 using New vCenter SSO (Single Sign-On)
  • How to Register a vCenter Server 5.0 with Admin Tool on VCSA 5.1 Using SSH Port Forwarding
  • Automating Active Directory Identity Source & Default Domain in vSphere Web Client
  • Quick Tip – Automate JVM Heap configurations after increasing VCSA memory
  • How to change the default HTML5 VM console port in vSphere 5.5?
Logging & Troubleshooting:
  • Quick Tip – Start & Stop order for vCenter Server Services
  • Quick Tip – How to quickly find the release & build number on VCSA
  • How do I find my SSO Server 5.5 Site name?
  • Forwarding vCenter Server Logs to a Syslog Server
  • How To Add A Tag (Log prefix) To Syslog Entries
Backups & Recovery:
  • How to recover VCSA 5.5 from an expired administrator account?
Tips/Tricks:
  • How to Send vCenter Alarm Notification to Growl
  • Getting Rid of the Inventory Tree in the New vSphere Web Client
  • vCloud Director Simulator
  • How to bootstrap Horizon View 5.3.1 onto a VSAN Datastore using VCT

Categories // VCSA, vSphere Tags // inventory service, operational, sso, vcenter server appliance, VCSA, vcva

  • « Previous Page
  • 1
  • …
  • 18
  • 19
  • 20
  • 21
  • 22
  • …
  • 33
  • Next Page »

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

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/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...