To create an HTML console, load the WebMKS program as a script into an HTML page, after loading the jQuery and jQueryUI libraries.

Prerequisites

  • Your machine must have connectivity to vCenter Server and an ESXi host at a known IP address or FQDN.
  • Your machine should have a local HTTP server. Two alternatives are Lighttpd and XAMPP.
  • You need locate and possibly download the jQuery and jQueryUI libraries.

Procedure

  1. Download the HTML Console SDK from code.vmware.com/sdk/html-console.
    The WebMKS_*.zip file contains the SDK components.
  2. Unzip the archive.
    The wmks.min.js program appears, along with css and img folders.
  3. Create a console display page using HTML from the next section.
  4. If lacking security certificates, permit unsafe connections to vCenter Server and ESXi host.
  5. Get a webmks ticket using one of the different methods at the end of this chapter.
  6. On the wmks.connect line, fill in the IP address of the ESXi host, and the VM's webmks ticket.

Results

When you open the HTML file in a browser, the VM console should appear.