VMware vRealize Automation 6.2 Configuration
vCAC configuration is little complicate. I’ll separate to vCAC server, IaaS, vCAC itself and VCO configurations, 4 sections.
vCAC Server Configuration
We will configure network, then regenerate SSL and import SN, and eventually connect vCAC with vCenter SSO.
- Open vCAC Appliance page by the address (https://x.x.x.x:5480) you get from vCAC virtual machine console. (vCAC default account is root, you have entered password in first boot)
- Go to Network – Address – Set to Static – Set networking and click Save Settings. Wait about 1 minutes then connect vCAC Appliance page by new IP address. Reboot if you can open the page.
- Login to command line in vCAC virtual machine console after rebooting. Try ping FQDN of vCAC server, you have to try several times if it cannot resolve to new IP address.
- Login vCAC Appliance page after ping works. Click vRA Settings – Host Settings – Choose Update Host – Enter vCAC FQDN in Host Name – Choose Generate Certificate – Enter vCAC FQDN in Common Name – Enter vmware in Organization and Organization Unit – Enter US in Country Code – Click Save Settings. You should see Host and SSL Certificate have been successfully configured if SSL generated correctly.
- Click vRA Settings – SSO – Enter FQDN of vCenter Server in SSO Host – Enter password of Administrator@vSphere.local of vCenter Server then click Save Settings. Accept certificate and wait about 10 minutes it will show you successfully connected to SSO server.
- Click vRA Settings – Licensing – Enter vCAC SN.
- Click Services – You will see 27 services after about 10 minutes.
- Open vCAC homepage (https://vCAC.contoso.com), click vRealize Automation Console, login by Administrator@vSphere.local of vCenter Server.
- vCAC is ready if you can login and no any error message.
IaaS Configuration
It’s actually how to install IaaS service. Please make sure you read my vCAC build articles otherwise following steps will be failed.
- RDP to IaaS server by domain admins.
- Re-install MSDTC component. Run command msdtc –uninstall, then run msdtc –install.
-
Modify MSDTC.
- Click Start – Administrative Tools – Component Services – Expand Component Services – Computers – My Computer – Distributed Transaction Coordinator.
- Right click Local DTC – Properties – Security tab – Click Network DTC Access, Allow Inbound and Allow Outbound.
- Open vCAC homepage (https://vCAC.contoso.com) – Click vRealize Automation IaaS installation page – Download IaaS installer.
- Launch IaaS installer.
- Log In section. Credential is vCAC root.
- Installation Type section. Choose Complete Install.
-
Running the Prerequisite Checker section. Complete the settings by following up wizard and disable Windows firewall. Click Check Again then go next. If cannot pass check, please select firewall option and click Bypass button.
- When you configure Providers of Windows Authentication in IIS, please make sure NTLM is top one. vCAC shows error if sequence is wrong:Exception occured when retrieving work from VRM: The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘Negotiate,NTLM’. Inner Exception: The remote server returned an error: (401) Unauthorized.
- MSDTC has been configured on step 3, please make sure you also configured same on SQL Server (We have talked in vCenter Server Configuration). vCAC shows error if it’s not configured on SQL Server:
DataBaseStatsService: ignoring exception: Error executing query usp_SelectAgent Inner Exception: Error executing query usp_SelectAgentCapabilities
- Microsoft SQL Server Database Installation Information section. Keep all default settings, but enter vCenter Server FQDNVIM_SQLEXP in Server. For example my server is VC01.contoso.comVIM_SQLEXP.
- Component Registry section. Click Load then Download button, then select Accept Certificate.
- SSO Administrator Credentials section. Enter Administrator@vSphere.local credential of vCenter Server.
- Click the two Test button.
- Wait IaaS installed.
- Restart IaaS server then restart IIS service.
vCAC Configuration
We will talk about vCAC configuration in this section
- Open vCAC homepage (https://vCAC.contoso.com) by IE or Chrome. Click vRealize Automation console then login by Administrator@vSphere.local of vCenter Server.
- Click Administration – Tenants – vsphere.local – Administrators tab – Search and add Domain Admins in Tenant administrators and Infrastructure administrators both, then click Update button to save.
- Quick and login vRealize Automation console again by Administrator@contoso.com.
- Go to Infrastructure – Administration – Licensing – Click Add License and add SN.
- Go to Infrastructure – Endpoints – Endpoints – New Endpoint – Virtual – vSphere (vCenter).
- I assume you build LAB by follow my articles. Name is vCenter, Address is https://vc01.contoso.com/sdk and choose Integrated in Credentials.
- Create Fabric Group. Click Infrastructures – Groups – Fabric Groups – New Fabric Group.
- I assume you build LAB by follow my articles. Name is CONTOSO and Fabric administrators is Domain Admins@contoso.com.
- Re-login vRealize Automation console by Administrator@contoso.com.
- Edit the Fabric Group you just created. Click Infrastructures – Groups – Fabric Groups – Edit CONTOSO – Choose Farm01 in Compute resources.
- Grant full permission to Administrator@contoso.com. Click Administration – Users & Groups – Identity Store Users & Groups – Search Domain Admins in search box in top right – Click Domain Admins – Add all roles in Add Roles to this Group in Detail tab – Click Update.
- vCAC configuration is completed.
VCO Configuration
I used native VCO of vCAC to save computing resource. It also brings me a benefit that it’s already integrated with vCAC.
- Login vCAC command line in virtual machine console.
- Run command service vco-configurator start to start VCO service.
- Open vCAC homepage (https://vcac.contoso.com/) – Click vRealize Orchestrator Configurator – Enter default account and password vmware. ( Please reboot vCAC virtual machine if you cannot login, then repeat step 2 and 3 )
- Login VCO Configurator – Click startup options – Wait Status change to Running.
- Change VCO SSO setting. Left navigator Authentication – SSO Configuration – Choose CONTOSO.COM in SSO domain – Choose contoso.com Domain Admins in vRO Admin – Click Update Orchestrator Configuration.
- Add VCO administrator. Login vCenter Server by vSphere Web Client – Left navigator Administration – Single Sing-On – Users and Groups – Groups tab – Add Domain Admins of CONTOSO.COM to vcoadmins (It’s not VCOAdministrators).
- Open vCAC homepage (https://vcac.contoso.com/), click vRealize Automation console, login by Administrator@contoso.com.
-
Click Advanced Services tab – Endpoints – Click Add.
- Choose vCenter Server in Plug-in.
- Name is VC01
- IP or host name of the vCenter Server instance to add is vCenter Server FQDN: vc01.contoso.com
- User name of the user…connect to the vCenter Server instance is Administrator@contoso.com credential.
- Keep default to rest of settings.
- Now VCO, vCAC and vCenter Sever are integrated.
Summary
We have completed basic build and deployment of VMware vRealize Automation 6.2. I grant all permissions to my domain administrator since I want to have a simple and fast testing environment. The Administrator@contoso.com is domain administrator, vCenter Server administrator, vCAC administrator and Farm01 resource administrator. There are multiple permission layers in vCAC, I’ll share in other articles.
Serials of How to build/configure vCAC 6.2 LAB on VMware Workstation 11 (系列文章):
How to Build vCAC 6.2 LAB on VMware Workstation 11 – Part 1
How to Build vCAC 6.2 LAB on VMware Workstation 11 – Part 2
How to Build vCAC 6.2 LAB on VMware Workstation 11 – Part 3
How to configure vCAC 6.2 LAB on VMware Workstation 11 – Part 1
How to configure vCAC 6.2 LAB on VMware Workstation 11 – Part 2
How to configure vCAC 6.2 LAB on VMware Workstation 11 – Part 3
*** Chinese Version ***
VMware vRealize Automation 6.2配置
vCAC的配置稍微复杂点儿。我将分vCAC服务器、IaaS、vCAC应用、VCO的配置共4部分分享给大家。
vCAC 服务器配置
我们将先配置网络,然后重新生成SSL,然后导入序列号、最后把vCAC和vCenter SSO连接起来。
- 根据vCAC虚拟机控制台界面上DHCP获得的地址打开vCAC配置页面(https://x.x.x.x:5480)。vCAC默认帐号为root。
- Network -> Address -> 设定为Static -> 设定好网络点击Save Settings。等待大约1分钟后,尝试用新的IP连接vCAC配置页面,如果可以连接,重启vCAC虚拟机。
- 重启后从虚拟机控制台登录vCAC命令行,尝试ping vCAC的FQDN,如果无法ping通,需要重复上一步。直到能ping通为止。
- 能ping通后登录vCAC配置页面,点击vRA Settings -> Host Settings -> 选择Update Host -> Host Name输入vCAC的FQDN -> 选择Generate Certificate -> Common Name输入vCAC的FQDN -> Organization和 Organization Unit输入vmware -> Country Code输入US -> 点击Save Settings。如果设定成功会提示Host and SSL Certificate have been successfully configured。
- 点击vRA Settings -> SSO -> SSO Host输入vCenter Server的FQDN -> 输入vCenter Server的Administrator@vSphere.local的密码,然后点击Save Settings,确认vCenter SSO Server的证书后等待大约10分钟会提示连接SSO成功。
- 点击vRA Settings -> Licensing -> 输入vCAC的序列号。
- 点击Services -> 等待大约10分钟你应该最终看到27个服务。
- 用浏览器打开vCAC主页(https://vCAC.contoso.com),点击vRealize Automation Console,用vCenter Server的默认管理员帐号Administrator@vSphere.local登录。
- 如果你能够看到正常的管理界面,至此vCAC配置完毕。
IaaS服务配置
vCAC的IaaS配置主要是IaaS的安装过程,以下分享我的安装流程。请确保你按照我上一篇关于vCAC实验环境安装的文章安装了IaaS服务器,否则以下步骤无法完成。
- 用域管理员帐号登录IaaS服务器。
- 重新安装MSDTC组件。在命令行运行msdtc -uninstall,然后运行msdtc -install。
-
修改MSDTC。
- 点击Start -> Administrative Tools -> Component Services -> 展开Component Services ->Computers -> My Computer -> Distributed Transaction Coordinator。
- 右键点击Local DTC -> Properties -> Security标签 -> 勾选 Network DTC Access、Allow Inbound、Allow Outbound。
- 在IaaS服务器上打开vCAC主页(https://vCAC.contoso.com),点击vRealize Automation IaaS installation page进入IaaS安装页面,下载IaaS安装包。
- 启动IaaS安装程序。
- Log In 页面的帐号和密码是配置vCAC时用的root帐号和密码。
- Installation Type页面,选择Complete Install。
-
Running the Prerequisite Checker页面,根据向导把还未设定的内容设定完毕。防火墙关闭掉。设定完毕后,点击Check Again重新检查一遍。如果防火墙无法通过,选择防火墙选项,点击Bypass按钮。
- 此处特别注意在配置IIS的Windows Authentication的Providers时,NTLM在Negotiate之前。如果顺序错了会导致vCAC报错误:
Exception occured when retrieving work from VRM: The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘Negotiate,NTLM’. Inner Exception: The remote server returned an error: (401) Unauthorized. - MSDTC已经在之前的步骤配置过了,这里要说的是你也需要在SQL Server上配置此处(vCenter Server配置部分已提到),否则会导致vCAC报错:
DataBaseStatsService: ignoring exception: Error executing query usp_SelectAgent Inner Exception: Error executing query usp_SelectAgentCapabilities
- 此处特别注意在配置IIS的Windows Authentication的Providers时,NTLM在Negotiate之前。如果顺序错了会导致vCAC报错误:
- Microsoft SQL Server Database Installation Information区域,保持默认选项,Server要填写vCenter Server FQDNVIM_SQLEXP,例如我的写的是VC01.contoso.comVIM_SQLEXP。
- Component Registry区域,依次点击Load按钮和Download按钮 ,选择Accept Certificate。
- SSO Administrator Credentials区域,输入vCenter Server的Administrator@vSphere.local和密码。
- 点两个Test按钮。
- 等待完成IaaS组件的安装。
- 重启IaaS服务器 ,然后重启 IIS服务。
vCAC 配置
本节我将分享vCAC程序的配置。
- 用IE或者Chrome打开vCAC主页(https://vCAC.contoso.com),点击vRealize Automation console并使用vCenter Server默认SSO管理员Administrator@vSphere.local登录。
- 点击Administration – Tenants – vsphere.local – Administrators标签 – 分别在Tenant administrators和Infrastructure administrators搜索Domain Admins并添加,点Update按钮保存。
- 退出并重新用Administrator@contoso.com登录vRealize Automation console。
- 点击Infrastructure – Administration – Licensing – 点击Add License按钮并添加序列号。
- 点击Infrastructure – Endpoints – Endpoints – New Endpoint – Virtual – vSphere (vCenter) 。
- 如果你按照我的系列文章搭建了实验环境,则Name输入vCenter、Address输入https://vc01.contoso.com/sdk、Credentials选择Integrated。
- 创建Fabric Group。点击Infrastructures – Groups – Fabric Groups – New Fabric Group。
- 如果你按照我的系列文章搭建了实验环境,则Name输入CONTOSO、Fabric administrators输入Domain Admins@contoso.com。
- 退出并重新用Administrator@contoso.com登录vRealize Automation console。
- 编辑刚创建的Fabric Group。点击Infrastructures – Groups – Fabric Groups – 编辑CONTOSO – 在Compute resources中选择Farm01。
- 赋予Administrator@contoso.com最高权限。点击Administration – Users & Groups – Identity Store Users & Groups – 右侧搜索栏搜索Domain Admins – 点击搜索到的Domain Admins组 – 在Detail标签的Add Roles to this Group下选择所有角色 – 点击Update按钮保存设定。
- 至此vCAC配置完毕。
VCO配置
为了节约资源,我采用vCAC内置的VCO组件,另外还有个好处是自带的VCO已经和vCAC整合好了,配置起来比较简单。
- 从vCAC虚拟机的控制台界面登录命令行。
- 启动VCO服务。运行命令service vco-configurator start。
- 用IE或Chrome打开vCAC主页(https://vcac.contoso.com/),点击vRealize Orchestrator Configurator打开VCO Configurator,默认帐号和密码 都是vmware。(如果无法登录,重启vCAC虚拟机 ,重复步骤2、3。)
- 登录VCO Configurator后,点击startup options,等待Status变为Running。
- 更改VCO SSO设定。点击左侧导航栏Authentication – SSO Configuration – SSO domain选择CONTOSO.COM – vRO Admin选择contoso.com Domain Admins – 点击Update Orchestrator Configuration按钮。
- 添加域管理员为VCO管理员。用vSphere Web Client登录vCenter Server,左侧导航栏Administration – Single Sing-On – Users and Groups – Groups标签 – 把CONTOSO.COM域的Domain Admins组加入vcoadmins(此处不是VCOAdministrators)。
- 用IE或Chrome打开vCAC主页(https://vcac.contoso.com/),打开vRealize Automation console并用Administrator@contoso.com登录。
-
添加高级服务Endpoints。点击Administration – Advanced Services – Endpoints – 点击Add按钮。
- Plug-in选择vCenter Server
- Name填写VC01
- IP or host name of the vCenter Server instance to add填写vCenter Server的FQDN:vc01.contoso.com
- User name of the user…connect to the vCenter Server instance填写Administrator@contoso.com以及密码。
- 其他保持默认不变
- 至此VCO与vCAC以及vCenter Server的整合完毕 。
结语
VMware vRealize Automation 6.2 的实验环境到此基本搭建和配置完毕 。由于vCAC权限层级较多,在我的实验环境里我只是简单的给域管理员分配了最大权限以求简单快速实现各个功能模块。这里Administrator@contoso.com是域管理员、vCenter Server的管理员、vCAC的系统管理员以及Farm01资源的管理员。在未来的实验中基本用这一个帐号可以测试所有的功能。有关vCAC基础架构等的介绍我会在其他文章中分享。