1. 正常更改administrator@vsphere.local用户密码
在vCenter界面中选择“菜单”下的“系统管理”,如下图所示:

然后在Single Sign On下的用户和组中,选择“vsphere.local”域,再对Administrator用户进行编辑,即可进行administrator用户的密码更改。


2. 重置administrator@vsphere.local用户密码
如果忘记了administrator@vsphere.local的原始密码,那么可以使用root用户登录PSC的系统,在启用shell后执行以下命令重置Administrator用户的密码,如下所示:
# /usr/lib/vmware-vmdir/bin/vdcadmintool
==================
Please select:
0. exit
1. Test LDAP connectivity
2. Force start replication cycle
3. Reset account password
4. Set log level and mask
5. Set vmdir state
6. Get vmdir state
7. Get vmdir log level and mask
==================
3
Please enter account UPN : Administrator@vsphere.local
3. 重置root用户密码
如果连root用户的密码也已经忘记,那么需要重启vCenter Server Appliance,在VCSA启动时,连续按键e(否则会直接进入系统)以进入GNU GRUB编辑菜单,定位到以linux开头的行,在行的最后加入rw init=/bin/bash,如下图所示:

按F10继续启动,启动后以读写方式重新挂载根系统,然后执行passwd更改root用户的密码:
mount -o remount,rw /
passwd
最后卸载根文件系统,重启系统:
umount /
reboot -f
参考:
1.How to unlock and reset SSO password in vSphere 6.x/7.x using the vdcadmintool (2146224)
2.Resetting root password in vCenter Server Appliance 6.5 / 6.7 / 7.x (2147144)
本文介绍了如何在vCenter中更改和重置administrator@vsphere.local用户的密码,以及在忘记root用户密码时,如何通过vdcadmintool和GNUGRUB编辑菜单来重置密码。此过程涉及vSphereSingleSignOn管理及vCenterServerAppliance的操作。
1万+

被折叠的 条评论
为什么被折叠?



