Host Profiles ensure that all hosts in the cluster have the same configuration.

Procedure

  1. Log in to vCenter Server by using the vSphere Web Client.
    1. Open a Web browser and go to https://nyc01r01vc01.rainpole.local/vsphere-client.
    2. Log in using the following credentials.

      Setting

      Value

      User name

      administrator@vsphere.local

      Password

      vsphere_admin_password

  2. Create a Host Profile from nyc01r01esx01.rainpole.local.
    1. In the Navigator, select Hosts and Clusters and expand the nyc01r01vc01.rainpole.local tree.
    2. Right-click nyc01r01esx01.rainpole.local and select Host Profiles > Extract Host Profile.
    3. In the Extract Host Profile window, enter nyc01-r01hp-mgmt01 as the name of the host profile and click Next.
    4. On the Ready to complete page, click Finish.
  3. Attach the Host Profile to the cluster.
    1. In the Navigator, select Hosts and Clusters and expand the nyc01r01vc01.rainpole.local tree.
    2. Right-click the nyc01-r01-robo01 cluster, and select Host Profiles > Attach Host Profile.
    3. In the Attach Host Profile window, click nyc01-r01hp-mgmt01, select the Skip Host Customization box, and click Finish.
  4. Create a host customization profile for the hosts in the cluster.
    1. From the Home menu, select Policies and Profiles from the drop-down menu.
    2. In the Navigator, click Host Profiles.
    3. Right-click nyc01-r01hp-mgmt01 and select Export Host Customizations. Click Save.
    4. Save the NYC01_host_customizations.csv file that is generated.
    5. Open the file with Excel.
    6. Edit the Excel file to include the following values.

      ESXi Host

      Active Directory Configuration Password

      Active Directory Configuration Username

      NetStack Instance defaultTcpipStack->DNS configuration

      Name for this host

      NetStack Instance vmotion->DNS configuration

      nyc01r01esx01.rainpole.local

      svc-domain-join_password

      svc-domain-join@rainpole.local

      nyc01r01esx01

      nyc01r01esx01

      nyc01r01esx02.rainpole.local

      svc-domain-join_password

      svc-domain-join@rainpole.local

      nyc01r01esx02

      nyc01r01esx02

      nyc01r01esx03.rainpole.local

      svc-domain-join_password

      svc-domain-join@rainpole.local

      nyc01r01esx03

      nyc01r01esx03

      nyc01r01esx04.rainpole.local

      svc-domain-join_password

      svc-domain-join@rainpole.local

      nyc01r01esx04

      nyc01r01esx04

      ESXi Host

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-management:management->IP address settings Host IPv4 address

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-management:management->IP address settings SubnetMask

      nyc01r01esx01.rainpole.local

      172.18.11.101

      255.255.255.0

      nyc01r01esx02.rainpole.local

      172.18.11.102

      255.255.255.0

      nyc01r01esx03.rainpole.local

      172.18.11.103

      255.255.255.0

      nyc01r01esx04.rainpole.local

      172.18.11.104

      255.255.255.0

      ESXi Host

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-vsan:vsan->IP address settings Host IPv4 address

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-vsan:vsan->IP address settings SubnetMask

      nyc01r01esx01.rainpole.local

      172.18.13.101

      255.255.255.0

      nyc01r01esx02.rainpole.local

      172.18.13.102

      255.255.255.0

      nyc01r01esx03.rainpole.local

      172.18.13.103

      255.255.255.0

      nyc01r01esx04.rainpole.local

      172.18.13.104

      255.255.255.0

      ESXi Host

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-vmotion:vmotion->IP address settings Host IPv4 address

      Host virtual NIC nyc01-r01-vds01:nyc01-r01-vds01-vmotion:vmotion->IP address settings SubnetMask

      nyc01r01esx01.rainpole.local

      172.18.12.101

      255.255.255.0

      nyc01r01esx02.rainpole.local

      172.18.12.102

      255.255.255.0

      nyc01r01esx03.rainpole.local

      172.18.12.103

      255.255.255.0

      nyc01r01esx04.rainpole.local

      172.18.12.104

      255.255.255.0

    7. When you have updated the Excel file, save it in the CSV file format and close Excel.
    8. Click the Configure tab.
    9. Click the Edit Host Customizations button.
    10. On the Select hosts page, click Next.
    11. On the Customize hosts page, click the Browse button, select the customization CSV file you created previously, and click Finish.
  5. Remediate the hosts in the cluster.
    1. On the Policies and Profiles page, click nyc01-r01hp-mgmt01, click the Monitor tab, and then click the Compliance tab.
    2. Click nyc01-r01-robo01 in the Host/Cluster column and click Check Host Profile Compliance icon.
      Note:

      This compliance test shows that the first host is Compliant, but the other hosts are Not Compliant.

    3. Click each of the non-compliant hosts, click Remediate host based on its host profile icon, and then click Finish on the wizard that appears.

      All hosts should show a Compliant status in the Host Compliance column.

  6. Schedule nightly compliance checks.
    1. On the Policies and Profiles page, click nyc01-r01hp-mgmt01, click the Monitor tab, and then click the Scheduled Tasks subtab.
    2. Click Schedule a New Task then click Check Host Profile Compliance.
    3. In the nyc01-r01hp-mgmt01: Check Host Profile Compliance (scheduled) window click Scheduling Options.
    4. Enter nyc01-r01hp-mgmt01 Compliance Check in the Task Name field.
    5. Click the Change button on the Configured Scheduler line.
    6. In the Configure Scheduler window select Setup a recurring schedule for this action, change the Start time to 10:00 PM, and click OK.
    7. Click OK in the nyc01-r01hp-mgmt01: Check Host Profile Compliance (scheduled) window.