[one-users] Generate a noVNC session token outside Sunstone

Rodrigue Chakode rodrigue.chakode at gmail.com
Tue Jun 24 02:39:12 PDT 2014


Thanks Daniel, it works  now.

--
Rodrigue


On Tue, Jun 24, 2014 at 11:14 AM, Daniel Molina <dmolina at opennebula.org>
wrote:

> Hi Rodrigue,
>
> You have to use the POST method instead of GET
>
> Cheers
>
>
> On 19 June 2014 17:39, Rodrigue Chakode <rodrigue.chakode at gmail.com>
> wrote:
>
>> Hi Stefan
>> Thanks for the hint, but it doesn't work with ONE 4.6.2:
>>
>> http://<IP>:9869/vm/11/startvnc
>>
>>
>> returns this:
>> Sinatra doesn't know this ditty.
>> Try this:
>>
>> get '/vm/11/startvnc' do
>>   "Hello World"
>> end
>>
>> regards,
>> --
>> Rodrigue
>>
>>
>> On Thu, Jun 19, 2014 at 5:27 PM, Stefan Kooman <stefan at bit.nl> wrote:
>>
>>> Quoting Rodrigue Chakode (rodrigue.chakode at gmail.com):
>>> > Hi,
>>> > Reading the OpenNebula documentation [1], it appears that noVNC session
>>> > tokens are generated only when user clicks on the appropriate icon from
>>> > Sunstone.
>>> >
>>> > That's OK.
>>> >
>>> > However, I would like to know if it's possible, subject to appropriate
>>> > tunings or not, to generate and activate a noVNC session without
>>> logging
>>> > into Sunstone?
>>> > My concern is to be able to connect a VM through an external noVNC
>>> client.
>>>
>>> Currently you cannot. You can mimic a user session to hit sunstone on
>>> /vm/<id>/startvnc ... you will get a json-response with a key "token".
>>> With that token you can connect to vnc proxy. It would be convenient if
>>> a token could be retrieved through a xml-rpc call. We created feature
>>> request
>>> #2655 for that [1].
>>>
>>> Gr. Stefan
>>>
>>> [1]: http://dev.opennebula.org/issues/2655
>>>
>>>
>>> --
>>> | BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
>>> | GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl
>>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> --
> Daniel Molina
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140624/3145e369/attachment-0001.htm>


More information about the Users mailing list