忘记 root 密码
可以找到 vCenter 所在的主机打开 vCenter 的控制台,开启 shell 或者 ssh
1
2
3
4
5
6
| Command> shell #进入shell
Shell access is granted to root
root@photon-machine [ ~ ]# passwd #修改root密码
New password:
Retype new password:
passwd: password updated successfully
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| root@photon-machine# cd /usr/lib/vmware-vmdir/bin
root@photon-machine# ./vdcadmintool
==================
Please select:
exit
Test LDAP connectivity
Force start replication cycle
Reset account password
Set log level and mask
Set vmdir state
Get vmdir state
Get vmdir log level and mask
3 #选择3重置密码
Please enter account UPN : administrator@vsphere.local #administrator域名
New password is -
i'dH/yDt+ZU\6RNT~; #系统生成的密码
==================
==================
Please select:
exit
Test LDAP connectivity
Force start replication cycle
Reset account password
Set log level and mask
Set vmdir state
Get vmdir state
Get vmdir log level and mask
0 #退出
|
登陆 vCenter,修改密码为自己的密码即可。
