In my previous article, I showed you how to configure additional vSphere Web Client 5.1 Servers for a Windows environment. For those interested in using the VCSA (vCenter Server Appliance) instead to configure additional vSphere Web Client Servers, here is the process.
Disclaimer: This is for educational purposes only, this is not officially supported by VMware. Please test this in a development environment before using it on actual systems.
Before getting started, it is very important to ensure you have proper DNS resolution (forward / reverse working) on all your VCSA's.
Step 1 - You will need to know the IP Address or hostname of your vCenter SSO Server (If you are using the VCSA, then it is the same address as your vCenter Server). Next, deploy a brand new VCSA and go ahead and configure the IP Address, hostname, etc. in preparation for the next step.
Step 2 - Create a script called configureVCSAvSphereWebClientStandalone.sh (this script reside on the new VCSA itself or on a remote host) which contains the following
#!/bin/bash # William Lam # www.virtuallyghetto.com # User Configurations VCENTER_SSO_IPADDRESS=172.30.0.181 ## DO NOT EDIT BEYOND HERE ## echo "Adding Lookup Service URL to /etc/vmware/ls_url.txt & /etc/vmware-sso/ls_url.txt" echo "https://${VCENTER_SSO_IPADDRESS}:7444/lookupservice/sdk" > /etc/vmware/ls_url.txt;echo "https://${VCENTER_SSO_IPADDRESS}:7444/lookupservice/sdk" > /etc/vmware-sso/ls_url.txt; echo "Retrieving ${VCENTER_SSO_IPADDRESS} SSL Certificate" echo "" | openssl s_client -connect ${VCENTER_SSO_IPADDRESS}:7444 2> /dev/null 1> /tmp/cert echo "Storing ${VCENTER_SSO_IPADDRESS} SSL Certificate in /etc/ssl/certs/VMware-Lookup-Service-Root-CA.pem" openssl x509 -in /tmp/cert > /etc/ssl/certs/VMware-Lookup-Service-Root-CA.pem echo "Registering vSphere Web Client with ${VCENTER_SSO_IPADDRESS}" /usr/lib/vmware-vsphere-client/vsphere-client-sso-hook install --ls-server https://${VCENTER_SSO_IPADDRESS}:7444/lookupservice/sdk --user root --password vmware
You will need to change the VCENTER_SSO_IPADDRESS variable to the address of your vCenter SSO Server.
Step 3 - Set the script to executable by running the following command:
chmod +x configureVCSAvSphereWebClientStandalone.sh
Step 4 - You can either execute the script locally on the VCSA or my preferred method is just to execute it remotely by running the following command:
ssh [email protected] < configureVCSAvSphereWebClientStandalone.sh
Note: Make sure to replace the IP Address with address of your VCSA
As part of the configuration, the vSphere Web Client service will automatically start up at the very end. Once the service has successfully started, you will be able to connect to the vSphere Web Client URL by going to https://[webclient-hostname-ip]:9443/vsphere-client and you now should be able to see all the vCenter Servers that have registered with the same vCenter SSO server.
Here is another view using the new VIN 1.2 (vSphere Infrastructure Navigator) to show that I have two vSphere Web Client servers (webclient1 and webclient2) registered to my primary vCenter SSO Server (vcenter51-1) as well as two additional vCenter Server (vcenter51-2 and vcenter51-3) that are also registered with the same SSO Server.
As you can see, if you need to add additional vSphere Web Client Servers, the VCSA can easily be configured to enable only this feature to help you scale out and provide additional capacity as well as redundancy. Stay tuned for some more details on configuring a Load Balancer to load balance multiple vSphere Web Client Servers.
Additional Resources:
- Automating VCSA 5.1 (vCenter Server Appliance) Configurations
- Automatically Join Multiple VCSA 5.1 using New vCenter SSO (Single Sign-On)
- Configuring Additional Windows vSphere Web Client 5.1 Servers