Skip to content

Authenticating with vSphere

vSphere authentication is the classic setup: infrastructure teams log in to Orchestrator with the same accounts they use for vCenter. It’s the most common choice when there’s no VCF Automation in the picture.

Getting ready

  • A deployed appliance (recipe 1.2), and a root shell on it: log in as vmware-system-user and run sudo su - (recipe 2.1).
  • vCenter 9.x and an SSO administrator account, typically administrator@vsphere.local.
  • A decision on who administers Orchestrator. You’ll name an SSO group, and its members become Orchestrator administrators.

How to do it

  1. In the vSphere Client, go to Menu > Administration > Single Sign On > Users and Groups and open the Groups tab.
  2. Click Add, enter a group name such as OrchestratorAdmins, keep the domain vsphere.local, add yourself under Add Members, and click Add. Using the built-in Administrators group also works, but a dedicated group is easier to audit.
Figure 1.9. Creating a dedicated SSO group for Orchestrator administrators.
  1. SSH in as vmware-system-user and switch to root with sudo su - (recipe 2.1), and set vSphere as the provider. You’ll be asked for the SSO administrator’s password and to accept vCenter’s certificate:
root@vco01
vracli vro authentication set -p vsphere \
--hostname https://vc01.vmw.lab \
--username administrator@vsphere.local \
--tenant vsphere.local \
--admin-group OrchestratorAdmins \
--admin-group-domain vsphere.local
  1. Check the staged values:
root@vco01
vracli vro authentication
  1. Redeploy the Orchestrator services so the change takes effect. This takes several minutes:
root@vco01
/opt/scripts/deploy.sh
  1. Browse to https://vco01.vmw.lab, open the client, and log in as a member of OrchestratorAdmins.

How it works

Orchestrator registers itself with vCenter’s Single Sign-On service, using the administrator account you supplied. From then on, every login is checked by SSO, and the token SSO issues is what Orchestrator uses to identify you.

The --admin-group decides who gets full rights. vSphere authentication has no other roles and no groups: you’re either an Orchestrator administrator or a user without a role, who can only see your own runs and answer user interactions. If you need designers, viewers, and group permissions, use a VCF Automation organization (recipe 1.5) instead.

There's more

Running workflows from the vSphere Client. With vSphere authentication you can also bring Orchestrator into the vSphere Client, so that workflows show up in the right-click menu of inventory objects. Enable it with vracli capabilities vcoin --enable, run /opt/scripts/deploy.sh, then run the Register VCF Operations Orchestrator Plug-in for vSphere Web Client Extension workflow. Only one vCenter can host the extension. Chapter 8 covers it fully.

See also