<div dir="ltr">Hi Stefan<div>Thanks for the hint, but it doesn't work with ONE 4.6.2:</div><div><br></div><div>http://<IP>:9869/vm/11/startvnc<br></div><div><br></div><div><br></div><div>returns this:</div><div><h2 style="color:rgb(136,136,136);text-align:center">
<font face="arial, helvetica, sans-serif">Sinatra doesn't know this ditty.</font></h2><font face="arial, helvetica, sans-serif"><span style="color:rgb(136,136,136);text-align:center"></span></font><div id="c" style="margin:0px auto;width:500px;color:rgb(136,136,136)">
<font face="arial, helvetica, sans-serif">Try this:</font><pre><font face="arial, helvetica, sans-serif">get '/vm/11/startvnc' do
"Hello World"
end</font></pre></div></div><div class="gmail_extra">regards,<br clear="all"><div><div dir="ltr"><div style="font-family:arial;font-size:small">--</div><div style="font-family:arial;font-size:small">Rodrigue</div></div></div>
<br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 5:27 PM, Stefan Kooman <span dir="ltr"><<a href="mailto:stefan@bit.nl" target="_blank">stefan@bit.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">Quoting Rodrigue Chakode (<a href="mailto:rodrigue.chakode@gmail.com">rodrigue.chakode@gmail.com</a>):<br>
> Hi,<br>
> Reading the OpenNebula documentation [1], it appears that noVNC session<br>
> tokens are generated only when user clicks on the appropriate icon from<br>
> Sunstone.<br>
><br>
> That's OK.<br>
><br>
> However, I would like to know if it's possible, subject to appropriate<br>
> tunings or not, to generate and activate a noVNC session without logging<br>
> into Sunstone?<br>
> My concern is to be able to connect a VM through an external noVNC client.<br>
<br>
</div>Currently you cannot. You can mimic a user session to hit sunstone on<br>
/vm/<id>/startvnc ... you will get a json-response with a key "token".<br>
With that token you can connect to vnc proxy. It would be convenient if<br>
a token could be retrieved through a xml-rpc call. We created feature request<br>
#2655 for that [1].<br>
<br>
Gr. Stefan<br>
<br>
[1]: <a href="http://dev.opennebula.org/issues/2655" target="_blank">http://dev.opennebula.org/issues/2655</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
| BIT BV <a href="http://www.bit.nl/" target="_blank">http://www.bit.nl/</a> Kamer van Koophandel 09090351<br>
| GPG: 0xD14839C6 <a href="tel:%2B31%20318%20648%20688" value="+31318648688">+31 318 648 688</a> / <a href="mailto:info@bit.nl">info@bit.nl</a><br>
</font></span></blockquote></div><br></div></div>