vsphere client 6.5 打开失败
vmware vsphere 6.5官方文档虽然支持windows server2016,但是在其上面vsphere client是无法正常访问的。
在windows server 2012/2012R2上安装vsphere 6.5,vsphere client都能正常访问。
vSphere Web Client: https://FQDN-or-IP-Address-of-VC/vsphere-client
vSphere Client: https://FQDN-or-IP-Address-of-VC/UI
Host Client: https://FQDN-or-IP-Address-of-ESXi-host/UI
打开vsphere client后,错误信息如下:
503 Service Unavailable (Failed to connect to endpoint: [class Vmacore::Http::LocalServiceSpec:0x00000163cfa6ec80]
_serverNamespace = /ui action = Allow _port = 5090)
查看5090端口号,没有被打开。
netstat -ano | findstr "5090"
打开vsphere-ui-runtime.log-1.stdout可以看到如下信息:
A bundle could not be resolved because no match was found for the native code specification. Resolver error data
<org/xerial/snappy/native/Windows/x86_64/snappyjava.dll; processor=x86-64; osname=win32; osname=Windows Server 2012;
osname=Windows Server 2012 R2; osname=Windows 8.1, org/xerial/snappy/native/Windows/x86/snappyjava.dll; processor=x86;
osname=win32; osname=Windows Server 2012; osname=Windows Server 2012 R2; osname=Windows 8.1,
org/xerial/snappy/native/Mac/x86/libsnappyjava.jnilib; processor=x86; osname=macosx,
org/xerial/snappy/native/Mac/x86_64/libsnappyjava.jnilib; processor=x86-64; osname=macosx,
org/xerial/snappy/native/Linux/x86_64/libsnappyjava.so; processor=x86-64; osname=linux,
org/xerial/snappy/native/Linux/x86/libsnappyjava.so; processor=x86; osname=linux,
org/xerial/snappy/native/Linux/arm/libsnappyjava.so; processor=arm; osname=linux,
org/xerial/snappy/native/Linux/ppc64/libsnappyjava.so; processor=ppc64; osname=linux,
解决办法:
打开:C:\ProgramData\VMware\vCenterServer\cfg\vmware-vmon\svcCfgfiles\vsphere-ui.json
为StartCommandArgs添加-Dos.name参数,设置Dos.name 为Windows8.1、Windows Server 2012、
Windows Server 2012 R2中的任何一种,就可以正常打开vsphere client了。格式如下:
"StartCommandArgs": [
"-Dos.name=Windows Server 2012 R2",
"-Dinstance.dir=%VMWARE_H5CLIENT_HOME%/server",
"-Djava.security.auth.login.config=%VMWARE_H5CLIENT_HOME
%/server/configuration/org.eclipse.virgo.kernel.authentication.config",
"-Dorg.eclipse.virgo.kernel.authentication.file=%VMWARE_H5CLIENT_HOME
%/server/configuration/org.eclipse.virgo.kernel.users.properties",
"-Djava.io.tmpdir=%VMWARE_H5CLIENT_HOME%/server/work/tmp/",
"-Dorg.eclipse.virgo.kernel.home=%VMWARE_H5CLIENT_HOME%/server",
"-DPS_BASEDIR=%VMWARE_DATA_DIR%/vSphere Web Client/",
"-Dorg.eclipse.virgo.kernel.config=%VMWARE_H5CLIENT_HOME%/server/configuration",
"-Declipse.ignoreApp=true",
… …
]
最后,重启机器或重启服务:
C:\Program Files\VMware\vCenter Server\vmon\vmon-cli.exe --stop vsphere-ui
C:\Program Files\VMware\vCenter Server\vmon\vmon-cli.exe --start vsphere-ui

浙公网安备 33010602011771号