Today, I encountered a problem that vcenter6.0 forgot the root password. The reason could be 1. The engineers who deployed the VMware virtualization device were forgotten and did not have the proper custody and handover. 2. Google search users answer vcsa password expiration of 90 days default is invalid.
5.5 of these articles are: https://kb.vmware.com/s/article/2069041 or Chinese version of the VMware website https://wenku.baidu.com/view/fe1f8f3fe518964bce847c75.html
6.0 of these articles are: https://kb.vmware.com/s/article/2069041 (no Red Hat secondary external disc required) from the VMware website http://www.mamicode.com/ Info-detail-1314498.html (to Red Hat Auxiliary external discs) and https://www.iyunv.com/thread-212404-1-3.html (to Red Hat Auxiliary external discs).
- 6.5 of these articles are: http://blog.51cto.com/tech4fei/2053574
But found that the article they wrote could have some place in the actual environment, due to version reasons, there may be differences with my 6.0 version. So I wrote this blog post.
Linux version vcenter6.0 reset root
- Please make a copy of the VCenter Server Appliance 6.0 snapshot or backup before continuing. Do not skip this step and you can achieve the purpose of disaster recovery.
- Re-boot VCenter Server Appliance 6.0.
After the operating system starts, after the GRUB boot loader appears, press the SPACEBAR/E key immediately (I tried these keys as if you can) disable auto-boot, let the menu stay in the GNU GRUB menu, type P, enter the GRUB password. Such as. (Be sure to press when you're on, or you'll start the vcenter system.) Just like windows into the BIOS, don't miss the chance.)
Note: (1) If the root password is not edited in Virtual Appliance Management Interface (VAMI) When deploying VCSA, the default GRUB password is vmware.
(2) If you reset the root password of VCSA using VAMI, the GRUB password is the password set for the root account in VAMI. "If this password is forgotten, please click on the blog to leave a" Red Hat auxiliary external disc method cracked "
- Entering the GRUB password returns to the interface. Locate the row with the second row starting with kernel, and press E to enter the edit.
- Append the following entry to the end of the line: Init=/bin/bash. Type finished carriage return.
(Note: <on nousb audit=1 vga=0x311 and so on with some documents said <on USB audit=1, etc., do not control it, directly after adding the code of this step can be)
- will automatically return to the 4th step interface. Please press the B key to reboot.
- At the command prompt, such as. Enter the command passwd root and provide a new root password. After entering 2 times, enter reboot restart.
About the Linux version vcenter6.0 resetting the root password problem