Updated for vSphere 8.0 |
VMware HTML Console SDK Release Notes
VMware HTML Console SDK 2.2.0 | 14 November 2022 | Zip on developer.vmware.com
For VMware vSphere and vCloud Director 8.0 | Last document update: 14 November 2022 Check back for additions and updates to these release notes. Contents
About the HTML Console SDKThe HTML Console SDK allows developers to add virtual machine console functionality to an existing web user interface running on vSphere. Using applications created by this SDK, end users can interact with a virtual machine console by typing on the keyboard and moving the mouse. The HTML Console SDK provides APIs with the following functionality:
What's New in this ReleaseThis version follows vSphere 8.0 and is the first update since 2019. The programming guide contains new sample code showing how to copy from a remote virtual machine to the local HTML Console client. The SDK is available in the Download section of the landing page. You might have to sign in using your VMware Customer Connect account. The SDK is delivered as a ZIP file. After you download and unzip the file, you use Javascript and CSS directly. See compatibility notices below for browser and OS support. Quick StartTo see how it works, place this HTML code in a folder with the unzipped SDK. <!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Console</title> </head> <body> <link rel="stylesheet" type="text/css" href="css/wmks-all.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/ui/1.8.16/jquery-ui.min.js"></script> <script type="text/javascript" src="wmks.min.js"></script> <div id="wmksContainer" style="position:absolute;width:100%;height:100%"></div> <script> var wmks = WMKS.createWMKS("wmksContainer",{}) .register(WMKS.CONST.Events.CONNECTION_STATE_CHANGE, function(event,data){ if(data.state == WMKS.CONST.ConnectionState.CONNECTED){ console.log("connection state change : connected");} }); wmks.connect("wss://ESXi.host.IP.Address:443/ticket/webmksTicket"); </script> </body> </html> Replace ESXi.host.IP.Address with the IP address or fully-qualified hostname of the ESXi host where the virtual machine resides. To get the webmksTicket, find the vCenter Server that manages the above ESXi host. You can get a ticket using the vSphere API, or with the managed object browser:
Once you know the managed object ID (moid) of the virtual machine, you can quickly get another ticket at this URL. Replace NN with the VM number: https://vCenter.Server.IP.Address/mob/?moid=vm-NN&method=acquireTicket Compatibility NoticesThe HTML Console SDK was tested with recent versions of the following Web browsers on Windows, MacOS, and Linux:
Recently Resolved IssuesThe HTML Console 2.1 release resolved the following issues.
Known Issues and WorkaroundsThe following issues are found in the HTML Console 2.2 release.
|
Copyright © 2022-2023 VMware, Inc. All rights reserved.