{"id":5597,"date":"2020-09-27T21:17:54","date_gmt":"2020-09-27T19:17:54","guid":{"rendered":"https:\/\/tekmart.co.za\/t-blog\/?p=5597"},"modified":"2020-09-27T21:17:56","modified_gmt":"2020-09-27T19:17:56","slug":"how-to-change-an-esxi-password-for-vcenter","status":"publish","type":"post","link":"https:\/\/tekmart.co.za\/t-blog\/how-to-change-an-esxi-password-for-vcenter\/","title":{"rendered":"How to change an ESXi password for vCenter"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<h2 class=\"wp-block-heading\"><strong>A forgotten ESXi root password can stop you in your tracks. Avoid dodgy quick fixes and learn the proper way to recover a root password for vCenter-connected and stand-alone hosts.<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/onlineImages\/burns_stuart.jpg\" alt=\"Stuart Burns\"\/><\/figure>\n\n\n\n<p>By <a href=\"https:\/\/www.techtarget.com\/contributor\/Stuart-Burns\">Stuart Burns<\/a><\/p>\n\n\n\n<p>Everyone forgets a password once in a while. If you forget your ESXi root password, you can find many quick fixes online, but many of these options &#8212; such as changing the bootbank files &#8212; seem questionable at best. Fortunately, you can use better, less risky methods to change a forgotten root password.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>If the affected host connects to vCenter,\u00a0you can use Host Profiles\u00a0to change the root password. If you have a standalone host, you must reinstall and reconfigure ESXi during the password reset process.<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Change an ESXi root password for a vCenter server<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>To prepare for a password reset, begin by migrating all VMs to alternate hosts as a belt-and-brace security measure.<\/li><li>Set\u00a0<strong>Distributed Resource Scheduler<\/strong>\u00a0to manual and then\u00a0open the vSphere Web Client\u00a0for vCenter. In Active Directory, navigate to the\u00a0<strong>Host Profiles<\/strong>\u00a0icon.<\/li><li>Next, select\u00a0<strong>Extract Host Profile<\/strong>\u00a0and choose the appropriate ESXi host.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_tip_ESXi_root_password_figA.png\" alt=\"\"\/><figcaption><strong>Figure A. Locate the affected host from the\u00a0Select Host\u00a0menu to extract its profile settings.<\/strong><\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Choose an appropriate name and then advance to the final page; click the\u00a0<strong>Finish<\/strong>\u00a0It takes a few minutes for the Web Client to create the profile.<\/li><li>Edit the finished profile to change the default password. This effectively applies it back to the problematic host.<\/li><li>Open the\u00a0<strong>Host Profile<\/strong>\u00a0page and select the new profile. At the top of the page, click the\u00a0<strong>Edit Host Profile<\/strong>\u00a0Once you click through the first page, you&#8217;ll see a tree of settings including\u00a0<strong>Advanced Configuration Settings<\/strong>\u00a0and\u00a0<strong>General System Settings<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_tip_ESXi_root_password_figB.png\" alt=\"\"\/><figcaption>Figure B. You can easily change the settings of your newly created Host Profile.<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\"><li>Expand the\u00a0<strong>Security and Services<\/strong>\u00a0item group, then expand the\u00a0<strong>Security Settings<\/strong>\u00a0item group underneath that. Finally, expand the\u00a0<strong>User Configuration<\/strong>\u00a0item group and select\u00a0<strong>root<\/strong>. To reset the password, select the password drop-down menu and select\u00a0<strong>Fixed\u00a0<\/strong>password configuration.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_tip_ESXi_root_password_figC.png\" alt=\"\"\/><figcaption><strong>Figure C. Expand the\u00a0Security and Services,\u00a0Security Settings\u00a0and\u00a0User Configuration\u00a0item groups until you reach\u00a0root, and then change the root password.<\/strong><\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\"><li>Choose a new password for the ESXi server. Enter it into the password field to confirm it and click\u00a0<strong>Finish<\/strong>.<\/li><li>This profile should apply the new password to the affected ESXi host. Next, select\u00a0<strong>Attach\/Detach Hosts and Clusters<\/strong>\u00a0from the\u00a0<strong>Actions<\/strong>\u00a0drop-down menu. This action attaches and applies the profile to the affected host.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_tip_ESXi_root_password_figD.png\" alt=\"\"\/><figcaption><strong>Figure D. From the\u00a0Actions\u00a0drop-down menu, select\u00a0Attach\/Detach Hosts and Clusters\u00a0to attach the new profile to the affected host.<\/strong><\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"10\"><li>Continue to click through this menu. Select the appropriate ESXi host and click&nbsp;<strong>Finish<\/strong>&nbsp;to complete.<\/li><li>Finally, navigate to the&nbsp;<strong>Hosts &amp; VMs<\/strong>&nbsp;page. Select&nbsp;<strong>Remediate<\/strong>&nbsp;for the affected host. Remediation takes a few minutes, but once it&#8217;s complete, you can open the host in your vSphere Client and log in with the root name and newly reset password.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Change an ESXi root password for a standalone host<\/strong><\/h3>\n\n\n\n<p>The password reset process\u00a0for a standalone host\u00a0is more involved than for a vCenter-connected host. You must\u00a0reinstall ESXi\u00a0on top of the affected host, which removes all host configuration and network details and enables you to access VMs that might otherwise be lost.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Start by booting from the ESXi installation media. Follow the installation prompts until the installer reaches the screen that asks you to select a disk to install or upgrade. Select the appropriate disk and press\u00a0<strong>Enter<\/strong>.<\/li><li>The installer should detect an installed ESXi setup and present several options. Select\u00a0<strong>Install ESXi, preserve VMFS datastore<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.ttgtmedia.com\/rms\/editorial\/sVMWare_tip_ESXi_root_password_figE.png\" alt=\"\"\/><figcaption><strong>Choose\u00a0Install ESXi, preserve VMFS datastore\u00a0from the list of VMware ESXi Installer options.<\/strong><\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>The installer should then configure the ESXi installation. When the configuration finishes, the installer prompts you to reboot. You can log back into the server after the reboot, either directly or via your web interface.<\/li><li>Next,\u00a0configure network port groups\u00a0and other components. Since the VMs remain available, you must also recreate the port groups and all associated configurations.<\/li><li>After you recreate the port groups, reattach the network to the appropriate port group. At this point, reboot again.<\/li><\/ol>\n\n\n\n<p>If you use a standalone machine, consider using a second account and reserving the root account for emergencies.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/www.techtarget.com\/contributor\/Stuart-Burns\"><\/a><a href=\"https:\/\/www.techtarget.com\/contributor\/Stuart-Burns\">Stuart Burns<\/a>\u00a0asks:<\/p><p>What method do you typically use to recover a lost or forgotten root password?<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/searchvmware.techtarget.com\/tip\/Recover-an-ESXi-root-password-for-stand-alone-and-vCenter-hosts#commenting\"><strong>Join the Discussion<\/strong><\/a><\/h2>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time-approximately:<\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>A forgotten ESXi root password can stop you in your tracks. Avoid dodgy quick fixes and learn the proper way to recover a root password for vCenter-connected and stand-alone hosts. By Stuart Burns Everyone forgets a password once in a while. If you forget your ESXi root password, you can find many quick fixes online, but many of these options<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/tekmart.co.za\/t-blog\/how-to-change-an-esxi-password-for-vcenter\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,30,16,3,12,95,52,105],"tags":[],"class_list":["post-5597","post","type-post","status-publish","format-standard","hentry","category-datacenter-news","category-engage-the-experts","category-expert-advise-and-opinion","category-how-tos-and-other-useful-tips-and-tricks","category-industry-news-and-expert-advise","category-tekmart-enterprise-hardware-tips","category-timeless-tips","category-vmware-esx-and-esxi-administration","category-vmware-products"],"_links":{"self":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/comments?post=5597"}],"version-history":[{"count":1,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5597\/revisions"}],"predecessor-version":[{"id":5598,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/posts\/5597\/revisions\/5598"}],"wp:attachment":[{"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/media?parent=5597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/categories?post=5597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tekmart.co.za\/t-blog\/wp-json\/wp\/v2\/tags?post=5597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}