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
- Download the HTML Console SDK from code.vmware.com/sdk/html-console.
The WebMKS_*.zip file contains the SDK components.
- Unzip the archive.
The
wmks.min.js program appears, along with
css and
img folders.
- Create a console display page using HTML from the next section.
- If lacking security certificates, permit unsafe connections to vCenter Server and ESXi host.
- Get a
webmks
ticket using one of the different methods at the end of this chapter.
- 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.