During the vCenter installation process you can config a custom http port. This can be needed because of security policies or if a other service uses port 80, but it leads to errors afterwards. The vCenter service health status will show errors for the Storage Monitoring Service and the Storage Policy Service. I have expierenced that error during the Proof of Concept for the upgrade from vSphere 4.1 to 5.0 in the last year. I could solve that problem with the VMware Support and meanwhile they have published the Knowledge Base article Installing vCenter Server with custom HTTP ports… The reason for the problem is that the installer does not add the custom port to the configuration files of SMS and SPS. I show you how the errors look like and how to solve the problem.
The vCenter installer provides the option to change the connection ports of the vCenter services. In my example i have changed the http port to 82. You will receive a warning if you do this, but later the installer forgets it’s own warning.
After the installation you will SMS and SPS service health errors in the vCenter Service Status window.
Go into the SMS configuration folder to add the port to the url. In a default installation it is
C:\Program Files\VMware\Infrastructure\VirtualCenter Server\extensions\com.vmware.vim.sms
Open the extension.xml with an editor and add the custom port to the SMS service health url.
http://localhost/sms/health.xml to http://localhost:82/sms/health.xml
Go into the SPS configuration folder to add the port to the url. In a default installation it is
C:\Program Files\VMware\Infrastructure\VirtualCenter Server\extensions\com.vmware.vim.sps
Open the extension.xml with an editor and add the custom port to the SPS service health url.
http://localhost/sps/health.xml to http://localhost:82/sps/health.xml
Restart the vCenter services or reboot the vCenter machine.
net stop "VMware vSphere Profile-Driven Storage Service" net stop "vCenter Inventory Service" net stop "VMware VirtualCenter Management Webservices" net stop "VMware VirtualCenter Server" net stop "VMwareVCMSDS" net start "VMwareVCMSDS" net start "VMware VirtualCenter Server" net start "VMware VirtualCenter Management Webservices" net start "vCenter Inventory Service" net start "VMware vSphere Profile-Driven Storage Service"
Check the vCenter Service Status window for the solved errors. All checks now should be green.
Let’s see if this problem is fixed in vSphere 5.1. I will do another test if 5.1 has been released…
Today i have tested the vSphere 5.1 release to see if the problem is solved. As the screenshot shows. In a new installation of vSphere 5.1 the service status problems with a custom http port are gone.
http://localhost:8080/sms/health.xml and http://localhost:21200/sps/health.xml
are now configured by the installer.
The Port bug is back for the SMS component in vCenter 5.5 U2. Maybe other versions between 5.1 and 5.5 U2 are also affected.