Step 1: Make a request to http://<onapp-cp-url>/virtual_machines/<virtual_machine_id>.json
to get the remote access password:
{
"virtual_machine": {
... <snip> ...
"remote_access_password": "abc1234",
... <snip> ..
}
}
Step 2: Make a request to http://<onapp-cp-url>/virtual_machines/<virtual_machine_id>/console.json
to request a console session and get an assigned port:
{
"remote_access_session": {
"called_in_at": "2014-09-01T16:30:20+01:00",
"created_at": "2014-09-01T16:30:20+01:00",
"id": 11,
"port": 30000,
"remote_key": "<snip>",
"updated_at": "2014-09-01T16:30:20+01:00",
"virtual_machine_id": 53
}
}
Step 3: You can now make a normal VNC connection using your client to the following URL: vnc://<onapp-cp-url>:<console-port-from-step-2>
with the VNC password as the remote_access_password
from step 1
To embed the console on a web page, you'll need to run your own middleware to connect to a VNC connection. OnApp exposes the VNC connection as described in the previous section via the API.
There are a few HTML5 based options to look into: