Question


How can I use my own VNC client with OnApp virtual servers?


Environment


OnApp 2x, 3x, 4x, 5x, 6.0 - 6.2


Answer


To use VNC as an alternative, use API calls to retrieve the needed information. You can use the VSs' identifier in place of the ID (the identifier given in a URL address after /virtual_machines/).

These are the API calls:

GET /virtual_machines/:virtual_machine_id/console.xml 
GET /virtual_machines/:id.xml
CODE

The first call starts the console session and gives you the port number to connect to. The second one provides you with remote_access_password.

Then, the VNC settings for the VS will be as follows:

host - OnApp Control Panel IP 
port  - given by console.xml 
password - use remote_access_password
CODE

GET calls to the API can be entered as URLs in a browser. There are also JSON variants of these calls.