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

About this task

Procedure

  1. Log in to the Compute vCenter Server by using the vSphere Web Client.
    1. Open a Web browser and go to https://comp01vc51.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 comp01esx51.lax01.rainpole.local
    1. In the Navigator select Hosts and Clusters and expand the comp01vc51.lax01.rainpole.local tree.
    2. Right Click the ESXi host comp01esx51.lax01.rainpole.local and choose Host Profiles > Extract Host Profile.
    3. In the Extract Host Profile window enter LAX01-Comp01 for the Name and click Next.
    4. In the Ready to complete window 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 comp01vc51.lax01.rainpole.local tree.
    2. Right Click on the LAX01-Comp01 cluster and choose Host Profiles > Attach Host Profile.
    3. In the Attach Host Profile window select the LAX01-Comp01 Host Profile, slect the Skip Host Customization checkbox 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 on Host Profiles then right click on LAX01-Comp01 and choose Export Host Customizations.
    3. In the dialog box click Save.
    4. Choose a file location to save the LAX01-Comp01_host_customizations.csv file.
    5. Open the LAX01-Comp01_host_customizations.csv in Excel.
    6. Edit the file using the following configuration value.

      ESXi Host

      Active Directory Configuration Password

      Active Directory Configuration Username

      NetStack Instance defaultTcpipStack->DNS configuration

      Name for this host

      comp01esx51.lax01.rainpole.local

      ad_admin_password

      ad_admin_acct@lax01.rainpole.local

      comp01esx51

      comp01esx52.lax01.rainpole.local

      ad_admin_password

      ad_admin_acct@lax01.rainpole.local

      comp01esx52

      comp01esx53.lax01.rainpole.local

      ad_admin_password

      ad_admin_acct@lax01.rainpole.local

      comp01esx53

      comp01esx54.lax01.rainpole.local

      ad_admin_password

      ad_admin_acct@lax01.rainpole.local

      comp01esx54

      ESXi Host

      Host virtual NIC vDS-Comp01:vDS-Comp01-Management:management->IP address settings

      IPv4 address

      Host virtual NIC vDS-Comp01:vDS-Comp01-Management:management->IP address settings

      SubnetMask

      comp01esx51.lax01.rainpole.local

      172.17.31.101

      255.255.255.0

      comp01esx52.lax01.rainpole.local

      172.17.31.102

      255.255.255.0

      comp01esx53.lax01.rainpole.local

      172.17.31.103

      255.255.255.0

      comp01esx54.lax01.rainpole.local

      172.17.31.104

      255.255.255.0

      ESXi Host

      Host virtual NIC vDS-Comp01:vDS-Comp01-NFS:<UNRESOLVED>->IP address settings

      IPv4 address

      Host virtual NIC vDS-Comp01:vDS-Comp01-Management:management->IP address settings

      SubnetMask

      comp01esx51.lax01.rainpole.local

      172.17.25.101

      255.255.255.0

      comp01esx52.lax01.rainpole.local

      172.17.25.102

      255.255.255.0

      comp01esx53.lax01.rainpole.local

      172.17.25.103

      255.255.255.0

      comp01esx54.lax01.rainpole.local

      172.17.25.104

      255.255.255.0

      ESXi Host

      Host virtual NIC vDS-Comp01:vDS-Comp01-vMotion:vmotion->IP address settings

      IPv4 address

      Host virtual NIC vDS-Comp01:vDS-Comp01-vMotion:vmotion->IP address settings

      SubnetMask

      comp01esx51.lax01.rainpole.local

      172.17.32.101

      255.255.255.0

      comp01esx52.lax01.rainpole.local

      172.17.32.102

      255.255.255.0

      comp01esx53.lax01.rainpole.local

      172.17.32.103

      255.255.255.0

      comp01esx54.lax01.rainpole.local

      172.17.32.104

      255.255.255.0

    7. Once the file has been updated save it and close Excel.
    8. Click the Configure tab.
    9. Click the Edit Host Customizations button.
    10. In the Edit Host Customizaions window select all hosts and click Next.
    11. Click the Browse button to use a customization file, locate the LAX01-Comp01_host_customizations.csv file saved earlier and select it and click Open then click Finish.
  5. Remediate the hosts in the shared edge and compute cluster
    1. Click the Monitor tab and click Compliance.
    2. Select LAX01-Comp01 and click the Check Host Profile Compliance button.




    3. Select comp01esx52.lax01.rainpole.local and click the Remediate host based on its host profile button.
    4. Select comp01esx53.lax01.rainpole.local and click the Remediate host based on its host profile button.
    5. Select comp01esx54.lax01.rainpole.local and click the Remediate host based on its host profile button.
      Note:

      All hosts should now show a status of Compliant.





  6. Schedule nightly compliance checks.
    1. On the Policies and Profiles page, click LAX01-Comp01, click the Monitor tab, and then click the Scheduled Tasks tab.
    2. Click Schedule a New Task then click Check Host Profile Compliance.
    3. In the Check Host Profile Compliance (scheduled) window click Scheduling Options.
    4. Enter LAX01-Comp01 Complance 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 and change the Start time to 10:00 PM and click OK.
    7. Click OK in the Check Host Profile Compliance (scheduled) window.

Results