VxRack-SDDC: How to reset the esxi root password WITHOUT having to reimage the server

           

   Article Number:     524719                                   Article Version: 4     Article Type:    Break Fix 
   

 


Product:

 

VxRack SDDC,VxRail Appliance Family,VxRack Flex Series

 

Issue:

 

 

The root password is wrong and can't be discovered.                                                           

 

 

Resolution:

 

 

This process requires the ability to use Host Profiles in Vcenter which requires an enterprise license.   
   
    Step 1)   

         
  1.         To start we will need to extract a host profile for our host.      
  2.      
  3.         Connect to the vSphere web client.     
  4.      
  5.         Go to the home page     
  6.    
User-added image   
         
  1.          click Host profiles, and then click the plus sign (+) to extract a profile from a host.     
  2.    
User-added image   
         
  1.          Select a host to work with (it doesn't have to be the one you want to change the password for) and click next.     
  2.    
User-added image   
         
  1.         Give your host profile a name and click next and then finish:User-added image     
  2.      
  3.         The newly created host profile will take about a minute to show up since it needs to be built.  Once it is created click host name in in the middle pane.  This will bring up host profile in the middle pane:       
             User-added image     
  4.      
  5.         Click the configure tab in the middle pane.  The following image has the profile tree expanded, but you just need to click the "Edit Host Profile" button.User-added image     
  6.      
  7.         Click next to get to the Edit Host Profile screen.  Clear ALL CHECKMARKS except the ones for User Configuration and root.  In the Password section on the right under user select "Fixed Password Configuration" from the drop down list.  Set the password to what you want and click finish.       
             User-added image     
  8.      
  9.         Select the host profile, and then select from the  Actions drop down menu: Attach/Detach Hosts and Clusters.  You will be presented with this next screen.  Select the host you want to change the  root password for and click attach to sent that host to the right side host attached column.       
             User-added image     
  10.      
  11.         Click next and finish.     
  12.      
  13.         Next we need to check compliance for this host profile.  Click the check compliance button in the center pane.  A task will be cut. Wait until if finishes successfully.       
             User-added image     
  14.      
  15.         Now we are ready to remediate our host.  This will change the password! Click the remediate option in the action drop down menu.       
             User-added image     
  16.      
  17.         Another task will be cut to remediate the host profile which will set your password to the value you specified.     
  18.      
  19.         You are done!     
  20.    
   
   
                                                                

 

 

Notes:

 

 

This process will work on an esxi image based system including, VxRack Flex, VxRail, stand alone esxi images, etc.   
   
    NOTE for VxRack SDDC customers.  The password on any esxi host should always match what is in the output from lookup-passwords command.  Password rotation is managed by SDDC so if the password does not match the value in lookup-passwords it needs to be set to that value.