How to Use HTTP with vSphere Client?

If you have viewed the video about Onyx by Carter Shanklin (@cshanklin), you may have noticed a little trick with the vSphere Client.

Normally on the login dialog box, you enter a hostname or IP address. By default, the vSphere Client use HTTPS to communicate with the server. That means you cannot easily see what’s passed back and forth on the wire. As shown in the Onyx video, Carter showed how to use HTTP instead of the default HTTPS with the following in the IP Address / Name field:

Bothered by SLOW Web UI to manage vSphere? Want to manage ALL your VMware vCenters, AWS, Azure, Openstack, container behind a SINGLE pane of glass? Want to search, analyze, report, visualize VMs, hosts, networks, datastores, events as easily as Google the Web? Find out more about vSearch 3.0: the search engine for all your private and public clouds.


So the vSphere Client does support HTTP. In Onyx case, it points to localhost on which the Onyx is installed. You can actually point to a real vCenter or ESX/ESXi server directly – just change the localhost to the IP address of the server and the port to the default port 80 or remove the port part.

Before connecting the server, you need to change the server a bit for it to support HTTP. 

vCenter Server

  1. Log in to the vCenter Server system as the Windows Administrator of the machine.
  2. Go to the directory containing the proxy.xml file:
    c:\Documents and Settings\AllUsers\Application Data\VMware VirtualCenter
  3. Use a text editor like Notepad to open the proxy.xml file.
  4. Find the section of the file associated with the /sdk.
  5. Change the accessMode to httpAndHttps.
  6. Restart the service from a command line or from the Windows Services control panel.


  1. Log in to the service console as the root user.
  2. Change directories to /etc/vmware/hostd.
  3. Use a text editor to open the proxy.xml file.
  4. Navigate to the list of endpoints in the file (identified by the <EndpointList> tag) that contains settings for the Web service supporting the SDK. The nested tags may look something like this:
<e id=”1”>
  1. Change the accessMode to httpAndHttps. Alternatively, to completely disable HTTPS, you can set to httpOnly.
  2. (Optional) Change the setting for the MOB as well.
  3. Save your settings and close the file.
  4. Restart the vmware-hostd process by entering the following command:
service mgmt-vmware restart

Although you can do with HTTP instead of HTTPS, you don’t want HTTP in your production environment. In the development and testing environment, however, you can try this trick with tools like TcpMon, Wireshark to intercept all the messages between the vSphere Client and either ESX or vCenter. It can be of great help to you even you have Onyx today.

Update: LucD(@lucd22) has a nice blog on Onyx alternative using Microsoft Tool Fiddler2 here.

This entry was posted in vSphere API and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.