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

1

Log in to the Compute vCenter Server by using the vSphere Web Client.

a

Open a Web browser and go to https://comp01vc01.sfo01.rainpole.local/vsphere-client.

b

Log in using the following credentials.

Setting

Value

User name

administrator@vsphere.local

Password

vsphere_admin_password

2

Create a Host Profile from comp01esx01.sfo01.rainpole.local.

a

In the Navigator, select Hosts and Clusters and expand the comp01vc01.sfo01.rainpole.local tree.

b

Right-click the ESXi host comp01esx01.sfo01.rainpole.local and choose Host Profiles > Extract Host Profile.

c

In the Extract Host Profile window, enter SFO01-Comp01 for the Name and click Next.

d

In the Ready to complete window, click Finish.

3

Attach the Host Profile to the shared edge and compute cluster.

a

In the Navigator, select Hosts and Clusters and expand the comp01vc01.sfo01.rainpole.local tree.

b

Right-click on the SFO01-Comp01 cluster, and choose Host Profiles > Attach Host Profile.

c

In the Attach Host Profile window, select the SFO01-Comp01 Host Profile, select the Skip Host Customization checkbox, and click Finish.

4

Create Host Customizations for the hosts in the shared edge and compute cluster.

a

In the Navigator, select Policies and Profiles.

b

Click on Host Profiles, then right-click on SFO01-Comp01, and choose Export Host Customizations.

c

In the dialog box, click Save.

d

Choose a file location to save the SFO01-Comp01_host_customizations.csv file.

e

Open the SFO01-Comp01_host_customizations.csv in Excel.

f

Edit the file using the following configuration value.

ESXi Host

Active Directory Configuration Password

Active Directory Configuration Username

NetStack Instance defaultTcpipStack->DNS configurationName for this host

comp01esx01.sfo01.rainpole.local

ad_admin_password

ad_admin_acct@sfo01.rainpole.local

comp01esx01

comp01esx02.sfo01.rainpole.local

ad_admin_password

ad_admin_acct@sfo01.rainpole.local

comp01esx02

comp01esx03.sfo01.rainpole.local

ad_admin_password

ad_admin_acct@sfo01.rainpole.local

comp01esx03

comp01esx04.sfo01.rainpole.local

ad_admin_password

ad_admin_acct@sfo01.rainpole.local

comp01esx04

ESXi Host

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

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

comp01esx01.sfo01.rainpole.local

172.16.31.101

255.255.255.0

comp01esx02.sfo01.rainpole.local

172.16.31.102

255.255.255.0

comp01esx03.sfo01.rainpole.local

172.16.31.103

255.255.255.0

comp01esx04.sfo01.rainpole.local

172.16.31.104

255.255.255.0

ESXi Host

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

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

comp01esx01.sfo01.rainpole.local

172.16.25.101

255.255.255.0

comp01esx02.sfo01.rainpole.local

172.16.25.102

255.255.255.0

comp01esx03.sfo01.rainpole.local

172.16.25.103

255.255.255.0

comp01esx04.sfo01.rainpole.local

172.16.25.104

255.255.255.0

ESXi Host

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

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

comp01esx01.sfo01.rainpole.local

172.16.32.101

255.255.255.0

comp01esx02.sfo01.rainpole.local

172.16.32.102

255.255.255.0

comp01esx03.sfo01.rainpole.local

172.16.32.103

255.255.255.0

comp01esx04.sfo01.rainpole.local

172.16.32.104

255.255.255.0

g

Once the file has been updated, save it and close Excel.

h

Click the Configure tab.

i

Click the Edit Host Customizations button.

j

In the Edit Host Customizaions window, select all hosts and click Next.

k

Click the Browse button to use a customization file, locate the SFO01-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.

a

Click the Monitortab and click Compliance.

b

Select LAX01-Comp01 and click the Check Host Profile Compliance button.

c

Select comp01esx02.lax01.rainpole.local and click the Remediate host based on its host profile button.

d

Select comp01esx03.lax01.rainpole.local and click the Remediate host based on its host profile button.

e

Select comp01esx04.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.

a

On the Policies and Profiles page, click SFO01-Comp01, click the Monitor tab, and then click the Scheduled Tasks subtab.

b

Click Schedule a New Task then click Check Host Profile Compliance.

c

In the Check Host Profile Compliance (scheduled) window click Scheduling Options.

d

Enter SFO01-Comp01 Complance Check in the Task Name field.

e

Click the Change button on the Configured Scheduler line.

f

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.

g

Click OK in the Check Host Profile Compliance (scheduled) window.