Reset ESXi Root Password using VMware Host Profile

本文介绍如何利用VMware vCenter Server的Host Profile功能来创建配置蓝图,并以此来重置忘记的ESXi主机root密码,避免重新安装ESXi带来的配置丢失。

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.

reset ESXi root Password using Host Profile

Select the ESXi host from which you want to extract all the settings from. Click Next.

reset ESXi root Password using Host Profile

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.


reset ESXi root Password using Host Profile

Once the host profile is created. Select the Host profile and  Right-click the Host profile  -> Click Edit Settings 

reset ESXi root Password using Host Profile

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.

reset ESXi root Password using Host Profile

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.


reset ESXi root Password using Host Profile

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.

reset ESXi root Password using 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.

reset ESXi root Password using Host Profile

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.

reset ESXi root Password using Host Profile

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.

reset ESXi root Password using Host Profile

 

Click on Finish to start the remediation of the ESXi host based on the attached Host Profile.

reset ESXi root Password using Host Profile

Once the ESXi host remediation is completed, You can see the ESXi host is now “Complaint” with the attached Host profile.

reset ESXi root Password using 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值