Skip to main content

How to configure vCAC 6.2 LAB on VMware Workstation 11 – Part 2

vCenter Server Configuration

We will do identity source and permission settings on vCenter Server.

  1. Login vSphere Web Client by Administrator@vSphere.local.

  2. Go to Administration - Single Sign-On - Configuration - Identity Source tab in left navigator. CONTOSO.COM already existing, select it and click button to set it to default identity source.

  3. Go to Administration - Single Sign-On - Users and GroupsGroups tab in left navigator. Add Domain Admins of CONTOSO.COM to Administrators group.

  4. Go to vCenter - vCenter Servers – Choose VC01.CONTOSO.COMManage tab – Permissions tab. Add Domain Admins of CONTOSO.COM to Administrator role.

  5. Login vCenter Server by Domain Admins member of CONTOSO.COM, create datacenter and cluster. My datacenter name is Austin, cluster name is Farm01.

  6. Modify MSDTC. RDP to vCenter Server.

    1. Click Start - Administrative Tools - Component Services – Expand Component Services - Computers - My Computer - Distributed Transaction Coordinator.

    2. Right click Local DTC - Properties - Security tab - Select Network DTC Access, Allow Inbound and Allow Outbound.

  7. vCenter Server is ready.

ESXi Configuration

We'll setup network, join to cluster and add NFS storage.

  1. Open ESXi virtual machine console, login system customize GUI by press F2.

  2. Open Configure Management Network - IP Configuration – Choose Set static IP address and network configuration – Set IP address and other settings.

  3. Continue set DNS Configuration and Custom DNS Suffixes.

  4. Quit and join the hosts to Farm01.

  5. Login vCenter Server by vSphere Web Client. Click Storage in middle panel – Select Austin datacenter in left navigator
    - Go to Related Objects tab in middle panel - Select Datastores tab – Click button to create new datastore.

  6. I'll not give detail procedure to add NFS datastore. Just notice when you fill up NFS Share Details page, Server is FreeNAS IP address and Folder is the share path you created in FreeNAS.

  7. In vSphere Web Client. Select ESXi host - Manage tab - Settings tab - Advanced System Settings - Search NFS.MaxQueueDepth – Change the value to 64 – Reboot ESXi host. It prevents ESXi host hung when heavy IO.

  8. ESXi host is ready and joined vCenter Server.

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 ***

vCenter Server配置

vCenter Server的配置主要是域设定和权限设定。

  1. Administrator@vSphere.local登录vSphere Web Client

  2. 主界面左侧导航栏点击Administration -> Single Sign-On -> Configuration -> Identity Source标签。CONTOSO.COM已经存在,选中它点击菜单栏的按钮把CONTOSO.COM设定为默认域。

  3. 主界面左侧导航栏点击Administration -> Single Sign-On -> Users and Groups -> Groups标签。将CONTOSO.COM域的Domain Admins组加入到Administrators组。

  4. 主界面左侧导航栏点击vCenter -> vCenter Servers -> 选择VC01.CONTOSO.COM -> Manage标签 -> Permissions 标签。将CONTOSO.COM域的Domain Admins组加入Administrator角色。

  5. 重新用CONTOSO.COM域的Domain Admins组成员登录vCenter Server,创建数据中心和集群。我的数据中心名字叫Austin,集群名叫Farm01

  6. 修改MSDTC。登录vCenter Server桌面。

    1. 点击Start -> Administrative Tools -> Component Services -> 展开Component Services ->Computers -> My Computer -> Distributed Transaction Coordinator

    2. 右键点击Local DTC -> Properties -> Security标签 -> 勾选 Network DTC AccessAllow InboundAllow Outbound

  7. 至此vCenter Server准备就绪。


ESXi我们主要配置网络、创建集群并且添加NFS存储 。

  1. 打开ESXi虚拟机的控制台,按F2登录自定义系统设定界面。

  2. 打开Configure Management Network -> IP Configuration -> 选择Set static IP address and network configuration -> 设定IP地址等。

  3. 继续设定DNS ConfigurationCustom DNS Suffixes

  4. 完毕后退出自定义系统设定界面 ,将ESXi主机加入刚创建的Farm01集群。

  5. vSphere Web Client登录vCenter Server,在主界面点击Storage -> 左侧导航栏选择数据中心Austin -> 中部界面选择Related Objects标签 -> Datastores标签 -> 点击按钮新建Datastore。

  6. 添加NFS存储的方法不再介绍,只是注意在填写NFS Share Details时,Server填写FreeNAS虚拟机的IP,Folder填写FreeNAS中创建的共享目录。

  7. vSphere Web Client选择ESXi主机 -> Manage标签 -> Settings标签 -> Advanced System Settings -> 搜索NFS.MaxQueueDepth,更改值为64,重启ESXi主机。此步骤为了防止磁盘高IO时ESXi主机死机。

  8. 至此ESXi配置完毕并且加入了vCenter Server。

Popular posts from this blog

Connect-NsxtServer shows "Unable to connect to the remote server"

When you run Connect-NsxtServer in the PowerCLI, it may show "Unable to connect to the remote server".  Because the error message is a little bit confusing with other login issues. It's not easy to troubleshoot. The actual reason is the NSX-T uses a self-signed certificate, and the PowerCLI cannot accept the certificate automatically. The fix is super easy. You need to set the PowerCLI to ignore the invalid certificate with the following command: Set-PowerCLIConfiguration -Scope User -InvalidCertificateAction:Ignore -Confirm:$false

Setup Terraform and Ansible for Windows provisionon CentOS

Provisioning Windows machines with Terraform is easy. Configuring Windows machines with Ansible is also not complex. However, it's a little bit challenging to combine them. The following steps are some ideas about handling a Windows machine from provisioning to post configuration without modifying the winrm configuration on the guest operating system. Install required repos for yum. yum -y install yum -y install yum -y install yum -y install epel-release yum -y install yum-utils yum-config-manager --add-repo Install  Terraform . sudo yum -y install terraform Install  Ansible . sudo yum -y install ansible Install  Kerberos . yum -y install gcc python-devel krb5-devel krb5-libs krb5-workstation

How to List All Users in Terraform Cloud

Terraform has a rich API. However, the API documentation does not mention how to list all users. We can leverage the organization membership API and the PowerShell command  Invoke-RestMethod  to get a user list. 1. Create an organization token in Terraform Cloud. 2. Create the token variable ( $Token ) in PowerShell. $Token = "abcde" 3. Create the API parameters variable in PowerShell. $params = @{ Uri = "" Authentication = "Bearer" Token = $Token ContentType = "application/vnd.api+json" } Note: You need to replace ZHENGWU with your own organization name. And I used 100 at the end of the URI to retrieve the first 100 users. It can be any number.  4. Retrieve the API return and list the user's email address. $Test = Invoke-RestMethod @params $