VCENTER LICENSE许可服务问题处理办法

有一套VMWARE VSAN系统停机多日,现将服务器开机,通过登录vcenter所在的esxi主机将vcenter开机,vcenter虚拟机位于vsan存储中,通过https://vcenter的IP打开vcenter管理界面,进入vcenter后发现所有主机都处于断开的状态,怀疑为之前未安装vcenter许可,试用的60天许可过期导致。

打开系统管理——许可证,添加许可证,提示Unable to connect to the License Service. Verify that the service is running,远程桌面登录到vcenter虚拟机上,在命令行下使用“c:\program files\vmware\vcenter server\bin\service-control” –status vmware-license,报错,使用 “c:\program files\vmware\vcenter server\bin\service-control” –stop vmware-license可以停止vmware-license服务,但是使用 “c:\program files\vmware\vcenter server\bin\service-control” –start vmware-license报错,不能正常启动该服务,将系统中vmware相关的服务都重启,问题依旧,重新安装vcenter后,添加vcenter许可证,再新建数据中心,新建群集,重新添加三台esxi主机后,整个vcenter恢复以前的正常状态。

补充1、 可以通过“c:\program files\vmware\vcenter server\bin\service-control” — list查看相关的服务。

补充2、vcenter虚拟机放在vsan存储中,并不是在某台esxi主机存储上,重装vcenter程序并且重新新建数据中心、新建群集、添加esxi主机都不影响vsan存储中的数据。

补充3、vcenter虚拟机的操作系统管理员administrator密码和vcenter的administrator@vsphere.local的密码并不相关,修改操作系统administrator密码不影响vcenter的administrator@vsphere.local账号正常登录使用。