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

Procedure

  1. Log in to the Compute vCenter Server by using the vSphere Web Client.
    1. Open a Web browser and go to https://lax01w01vc01.lax01.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 lax01w01esx01.lax01.rainpole.local.
    1. In the Navigator, select Hosts and Clusters and expand the lax01w01vc01.lax01.rainpole.local tree.
    2. Right-click lax01w01esx01.lax01.rainpole.local and select Host Profiles > Extract Host Profile.
    3. In the Extract Host Profile page, enter lax01-w01hp-comp01 for the Name and click Next.
    4. In the Ready to complete page, click Finish.
  3. Attach the Host Profile to the shared edge and compute cluster.
    1. In the Navigator, select Hosts and Clusters and expand the lax01w01vc01.lax01.rainpole.local tree.
    2. Right click the lax01-w01-comp01 cluster and select Host Profiles > Attach Host Profile.
    3. In the Attach Host Profile window, select the lax01-w01hp-comp01 Host Profile, select the Skip Host Customization check box, and click Finish.
  4. Create Host Customizations for the hosts in the shared edge and compute cluster.
    1. In the Navigator, select Policies and Profiles.
    2. Click Host Profiles, then right-click on lax01-w01hp-comp01, and select Export Host Customizations.
    3. In the dialog box, click Save.
    4. Select file location to save the lax01-w01hp-comp01_host_customizations.csv file.
    5. Open the lax01-w01hp-comp01_host_customizations.csv in Excel.
    6. Edit the file using the following configuration values.
      ESXi Host Active Directory Configuration Password Active Directory Configuration user name NetStack Instance defaultTcpipStack->DNS configuration

      Name for this host

      NetStack Instance vmotion->DNS configuration
      lax01w01esx01.lax01.rainpole.local svc-domain-join_password svc-domain-join@rainpole.local lax01w01esx01 lax01w01esx01
      lax01w01esx02.lax01.rainpole.local svc-domain-join_password svc-domain-join@rainpole.local lax01w01esx02 lax01w01esx02
      lax01w01esx03.lax01.rainpole.local svc-domain-join_password svc-domain-join@rainpole.local lax01w01esx03 lax01w01esx03
      lax01w01esx04.lax01.rainpole.local svc-domain-join_password svc-domain-join@rainpole.local lax01w01esx04 lax01w01esx04
      ESXi Host Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-management:management->IP address settings

      IPv4 address

      Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-management:management->IP address settings

      SubnetMask

      lax01w01esx01.lax01.rainpole.local 172.17.31.101 255.255.255.0
      lax01w01esx02.lax01.rainpole.local 172.17.31.102 255.255.255.0
      lax01w01esx03.lax01.rainpole.local 172.17.31.103 255.255.255.0
      lax01w01esx04.lax01.rainpole.local 172.17.31.104 255.255.255.0
      ESXi Host Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-nfs:<UNRESOLVED>->IP address settings

      IPv4 address

      Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-nfs:<UNRESOLVED>->IP address settings

      SubnetMask

      lax01w01esx01.lax01.rainpole.local 172.17.25.101 255.255.255.0
      lax01w01esx02.lax01.rainpole.local 172.17.25.102 255.255.255.0
      lax01w01esx03.lax01.rainpole.local 172.17.25.103 255.255.255.0
      lax01w01esx04.lax01.rainpole.local 172.17.25.104 255.255.255.0
      ESXi Host Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-vmotion:vmotion->IP address settings

      IPv4 address

      Host virtual NIC lax01-w01-vds01:lax01-w01-vds01-vmotion:vmotion->IP address settings

      SubnetMask

      lax01w01esx01.lax01.rainpole.local 172.17.32.101 255.255.255.0
      lax01w01esx02.lax01.rainpole.local 172.17.32.102 255.255.255.0
      lax01w01esx03.lax01.rainpole.local 172.17.32.103 255.255.255.0
      lax01w01esx04.lax01.rainpole.local 172.17.32.104 255.255.255.0
    7. When the file is updated, save it and close Excel.
    8. Click the Configure tab.
    9. Click the Edit Host Customizations button.
    10. In the Edit Host Customizations window, select all hosts and click Next.
    11. To use the customization file, click the Browse button, locate the lax01-w01hp-comp01_host_customizations.csv file, select it, click Open, and click Finish.
  5. Remediate the hosts in the shared edge and compute cluster
    1. On the Policies and Profiles page, click lax01-w01hp-comp01, click the Monitor tab, and then click the Compliance tab.
    2. Click lax01-w01-comp01 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.
      Note: All hosts now have Compliant status in the Host Compliance column.
  6. Schedule nightly compliance checks.
    1. On the Policies and Profiles page, click lax01-w01hp-comp01, click the Monitor tab, and click the Scheduled Tasks tab.
    2. Click Schedule a New Task and click Check Host Profile Compliance.
    3. In the Check Host Profile Compliance (scheduled) window, click Scheduling Options.
    4. Enter lax01-w01hp-comp01 Compliance Check in the Task Name text box.
    5. Click the Change button on the Configured Scheduler line.
    6. In the Configure Scheduler page, select Setup a recurring schedule for this action, change the Start time to 10:00 PM, and click OK.
    7. In the Check Host Profile Compliance (scheduled) page, click Ok.