<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Anthony,<br>thank you, I saw that.<br><br>I'm working in it and I'll report if I have success.<br id="FontBreak"><br><br><div><font color="#333399" face="Tahoma" size="2"><strong>Lucian Thomaz</strong></font></div><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Fri, 30 Mar 2012 11:18:31 -0700<br>Subject: Re: [Openstack] Dashboard VNC Console failed to connect to server<br>From: sleepsonthefloor@gmail.com<br>To: lucianthomaz@hotmail.com<br>CC: openstack@lists.launchpad.net<br><br>Lucian,<div><br></div><div>I added a response to your question.  There are several issues at play there.</div><div><br></div><div>A<br><br><div class="ecxgmail_quote">On Fri, Mar 30, 2012 at 9:30 AM, Lucian Thomaz <span dir="ltr"><<a href="mailto:lucianthomaz@hotmail.com">lucianthomaz@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div><div dir="ltr">
<span><span><span dir="ltr" title="sleepsonthefloor@gmail.com"><span dir="ltr"></span></span></span></span><span><span><span dir="ltr" title="sleepsonthefloor@gmail.com"><span dir="ltr">Anthony, I tried to add this flags there and do some more things but I didn't have sucess yet.<br>
<br>I made a question in launchpad with all my network configurations and my log. Can you see that please?<br><br>Thank you.<br><br><a href="https://answers.launchpad.net/nova/+question/192153" target="_blank">https://answers.launchpad.net/nova/+question/192153</a><span class="ecxHOEnZb"><font color="#888888"><br>
</font></span></span></span></span></span><span class="ecxHOEnZb"><font color="#888888"><br><br><div><font color="#333399" face="Tahoma"><strong>Lucian Thomaz</strong></font><br></div></font></span><div class="ecxhm ecxHOEnZb"><br>
<br></div><div><div class="ecxhm ecxHOEnZb"><div></div><hr>Date: Thu, 29 Mar 2012 12:28:24 -0700<br>Subject: Re: [Openstack] Dashboard VNC Console failed to connect to server<br>From: <a href="mailto:sleepsonthefloor@gmail.com">sleepsonthefloor@gmail.com</a><br>
To: <a href="mailto:lucianthomaz@hotmail.com">lucianthomaz@hotmail.com</a><br>CC: <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a></div><div><div class="h5">
<br><br><div>Here are several flags that you must set on your compute host for a multi host deploy:</div><div><br></div><div><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;"><ul style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px 0px 0px 30px; border-width: 0px; font: inherit;">

<li style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit;">
<a href="https://github.com/openstack/nova#id3" style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit; color: rgb(65, 131, 196); text-decoration: none;" target="_blank">:option:`--vncserver_listen`</a> - defaults to 127.0.0.1 This is the address that vncservers will bind, and should be overridden in production deployments as a private address. Applies to libvirt only. For multi-host libvirt deployments this should be set to a host management ip on the same network as the proxies.</li>

<li style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit;">
<a href="https://github.com/openstack/nova#id5" style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit; color: rgb(65, 131, 196); text-decoration: none;" target="_blank">:option:`--vncserver_proxyclient_address`</a> - defaults to 127.0.0.1 This is the address of the compute host that nova will instruct proxies to use when connecting to instance vncservers. For all-in-one xen server domU deployments this can be set to 169.254.0.1. For multi-host xen server domU deployments this can be set to a dom0 management ip on the same network as the proxies. For multi-host libvirt deployments this can be set to a host management ip on the same network as the proxies.</li>

<li style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit;">
<a href="https://github.com/openstack/nova#id7" style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit; color: rgb(65, 131, 196); text-decoration: none;" target="_blank">:option:`--novncproxy_base_url=[base url for client connections]`</a> - this is the public base url to which clients will connect. "?token=abc" will be added to this url for the purposes of auth. When using the system as described in this document, an appropriate value is "<a style="margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding: 0px; border-width: 0px; font: inherit; color: rgb(65, 131, 196); text-decoration: none;" target="_blank">http://$SERVICE_HOST:6080/vnc_auto.html</a>" where SERVICE_HOST is a public hostname.</li>

</ul></span></div><div>Suppose you have 2 servers, APISERVER and COMPUTESERVER:</div><div><br></div><div>APISERVER:</div><div>public hostname = <a href="http://my.server.com" target="_blank">my.server.com</a></div><div>management ip = 192.168.1.1</div>

<div>public ip = 172.24.4.1</div><div><br></div><div>COMPUTESERVER:</div><div>management ip = 192.168.1.2</div><div><br></div><div>Your nova.conf con COMPUTESERVER would need the following flags:</div><div><br></div><div>

<span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">novncproxy_base_url=</span><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;"><a href="http://my.server.com:6080/vnc_auto.html" target="_blank">http://my.server.com:6080/vnc_auto.html</a> or </span><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">novncproxy_base_url=</span><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">http://</span>172.24.4.1<span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">:6080/vnc_auto.html</span></div>

<div><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">vncserver_proxyclient_address=192.168.1.2</span></div><div><span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">vncserver_listen=192.168.1.2</span></div>

<div><br></div><div>Note that <span style="font-family: Helvetica,arial,freesans,clean,sans-serif; font-size: 14px; color: rgb(51, 51, 51); line-height: 22px;">novncproxy_base_url references a public ip or hostname (so clients can connect), while the other flags use private ips.</span></div>

<div><br></div><div>For more info:</div><a href="https://github.com/openstack/nova/blob/master/doc/source/runnova/vncconsole.rst" target="_blank">https://github.com/openstack/nova/blob/master/doc/source/runnova/vncconsole.rst</a><div>
<br>
</div><div><br><div>On Thu, Mar 29, 2012 at 11:07 AM, Lucian Thomaz <span dir="ltr"><<a href="mailto:lucianthomaz@hotmail.com">lucianthomaz@hotmail.com</a>></span> wrote:<br><blockquote style="padding-left: 1ex;">




<div><div dir="ltr">
<font color="#366092" face="Tahoma">Hey guys,</font><div><font color="#366092" face="Tahoma"><br></font></div><div><font color="#366092" face="Tahoma">I'm using Dashboard with a nova-compute installed in another machine, but when I try access VNC Console I get the error "failed to connect to server".</font></div>

<div><font color="#366092" face="Tahoma"><br></font></div><div><font color="#366092" face="Tahoma">Here is the log -> <a href="http://pastebin.com/5DZMfiNE" target="_blank">http://pastebin.com/5DZMfiNE</a></font></div>

<div><font color="#366092" face="Tahoma"><br></font></div><div><font color="#366092" face="Tahoma">Anyone already saw this trouble?<span><font color="#888888"><br></font></span></font><span><font color="#888888"><br>
<br><div><font color="#333399" face="Tahoma"><strong>Lucian Thomaz </strong></font></div><br></font></span></div>                                      </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div></div></div>                                       </div></div>
</blockquote></div><br></div></div>                                         </div></body>
</html>