Host profile is nothing but a blueprint of configuration settings that you can apply to an ESXi host to change its configuration. You can configure one ESXi host with all the settings as per your enterprise standard and extract the profile from a host. This extracted profile will act as a blueprint and can apply to another ESXi hosts to maintain a consistent configuration across ESXi hosts in your infrastructure and also saves a lot of time in the confguring ESXi host after the build.
To Create Host profile, Login to vCenter Server using vSphere Web Client. Click on Host Profile icon on the home page of the vSphere Web Client. Click “Extracted Profile from a host” to extract a profile from ESXi host with the known root password.
Select the ESXi host from which you want to extract all the settings from. Click Next.
Specify the name and description for the host profile. Provide the description for the host profile which helps you to identify the purpose of this profile.
Once the host profile is created. Select the Host profile and Right-click the Host profile -> Click Edit Settings
For quicker navigation to the Root Password settings in Host Profile, Search for Root in the search box. Select the “Fixed Password Configuration” under Password and specify the standard root password which you want to apply to the ESXi host with forgot root password.
Deselect all other configuration such as Networking Configuration, General System settings, advanced configuration, Storage configuration, etc. of the host profile except Security > User Configuration > root. Click Finish.
Under Actions menu ->Attach/Detach Hosts to attach the ESXi host to apply this host profile to reset the root password or you can click on the below-highlighted symbol to attach or detach host to this host profile.
Select the ESXi host(s) and click on Attach to attach to this Host profile to reset the ESXi root password. Click Finish.
Once ESXi host attached to the Host profile, we need to check the host profile compliance. Select the created Host profile -> Monitor -> Compliance tab. Click on the below highlighted symbol (Red X and Green tick mark) to check the host profile compliance or Click Check Host profile Compliance under Actions menu.
Compliance tab will display the host compliance with the attached host profile. I can notice one of the ESXi host which is not compliant with the attached Host profile. Not Complaint host is the ESXi host which I forgot the root password and I want to reset the ESXi root password using VMWare Host Profile.
If you click on the Not Complaint ESXi host, it will display the settings name which is non-complaint to the attached Host profile. It displays the description as ” Password in profile does not match that on the host for root”.
So We need to remediate the ESXi host which is showing as “Not Complaint” to reset the ESXi root password to the same password which we have specified it in the attached Host Profile. Click on Below highlighted “Tools” Symbol or Select Remediate under Actions Menu.
Click on Finish to start the remediation of the ESXi host based on the attached Host Profile.
Once the ESXi host remediation is completed, You can see the ESXi host is now “Complaint” with the attached Host profile.
That’s it. We have reset the ESXi root of the ESXi host(s) using VMWare Host profile without reinstalling ESXi host and losing ESXi host Configurations. I hope this article is informative for you. Thanks for Reading!!!. Be social and share it with social media, if you feel worth sharing it.
本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1842948如需转载请自行联系原作者
520feng2007