Donnerstag, 21. August 2008

Unable to access VMware Virtual Infrastructure WebAccess if customized ports have been set

VIA: VMware Knowledge Base - View Document

Products: VMware VirtualCenter

Product Versions: VMware VirtualCenter 2.5.x

Symptoms:

  • When you try to log in to VMware Virtual Infrastructure WebAccess when a custom HTTP port has been specified (whether during installation, before an upgrade, or after), the error Web service is unavailable is shown.


  • When you try to log in to VMware Virtual Infrastructure WebAccess when a custom Tomcat Webservice port has been specified (whether during installation, before an upgrade, or after), the error 503 Service Unavailable is shown.


  • Changing the VMware Virtual Infrastructure ports worked prior to installation of (or upgrade to) VirtualCenter 2.5.

By default VMware Virtual Infrastructure WebAccess uses several different ports when you connect. If a modification is made to the default ports that are used for VMware Virtual Infrastructure WebAccess, the configuration is not properly saved and one (or both) of the errors above may be noticed when you try to connect.

To correct this behavior if a custom HTTP port has been specified:

  1. Log in to the VirtualCenter Server as an administrator.

  2. Click Start > Run.

  3. Type services.msc.

  4. Press Enter.

  5. Stop the VMware VirtualCenter Server service.

  6. Stop the VMware Virtual Infrastructure WebAccess service.

  7. Navigate to C:\Program Files\VMware\Infrastructure\VirtualCenter Server\tomcat\webapps\ui\WEB-INF\classes\

  8. Make a copy of the proxy.properties file, and the login.properties file as a backup.

  9. Open the proxy.properties file with a utility such as notepad.

  10. Change the proxy.service.url = http://localhost:80/sdk parameter to proxy.service.url = http://localhost:<custom port>/sdk where <custom port> is the value of the port specified for VMware Virtual Infrastructure WebAccess. This port must be the same as the HTTP port specified in Administration > VirtualCenter Management Server Configuration > Web Service.

  11. Save and close the file.

  12. Open the login.properties file with a utility such as notepad.


    Note: There is also a file called .login.properties, be sure to open the correct file.


  13. Change the login.webServiceUrl.defaultValue = http://localhost/sdk parameter to login.webServiceUrl.defaultValue = http://localhost:<custom port>/sdk where <custom port> is the value of the port specified for VMware VirtualCenter WebAccess. This port needs to be the same as the HTTP port specified in Administration > VirtualCenter Management Server Configuration > Web Service.

  14. Save and Close the file.

  15. Navigate back to the services control panel and start the VMware VirtualCenter Server service

  16. Start the VMware Virtual Infrastructure WebAccess service.

To correct this behavior if a custom Tomcat Webservice port has been specified:

  1. Log in to the VirtualCenter Server as an administrator.

  2. Click Start > Run.

  3. Type services.msc.

  4. Press Enter.

  5. Stop the VMware VirtualCenter Server service.

  6. Stop the VMware Virtual Infrastructure WebAccess service.

  7. Navigate to C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\

  8. Make a copy of the proxy.xml file as a backup.

  9. Open the proxy.xml file with wordpad.

  10. Locate the following xml code, and change <custom port> to the correct port for the Tomcat Webservice:


    <e id="2">
    <_type>vim.ProxyService.LocalServiceSpec</_type>
    <serverNamespace>/ui</serverNamespace>
    <accessMode>httpsWithRedirect</accessMode>
    <port><custom port></port>
    </e>


  11. Save and Close the file.

  12. Navigate back to the services control panel and start the VMware VirtualCenter Server service

  13. Start the VMware Virtual Infrastructure WebAccess service.

When one (or both) of these changes have been made, log in to VMware Virtual Infrastructure WebAccess is successful.

This behavior is currently being investigated by VMware Support, a more permanent fix is expected in a future release of the product.

Technorati-Tags: , , , , ,

1 Kommentar:

Unknown hat gesagt…

thanks mate, this helped me login to my web access VC.
maelito London