<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, It's working now. Thanks for your support. I'll take a look at the outdated flags at my config.<br>I have just a question, the novnc works on wich browsers? I've tried on firefox 10.0.2 and didn't worked. With chrome and IE I can connect to my instances, but can't use the keyboard.<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Fri, 30 Mar 2012 12:23:08 -0700<br>Subject: Re: [Openstack] Dashboard VNC Console failed to connect to server<br>From: sleepsonthefloor@gmail.com<br>To: guibirk@hotmail.com<br>CC: openstack@lists.launchpad.net<br><br><div><span class="ecxApple-style-span" style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:arial;font-size:small">On Fri, Mar 30, 2012 at 11:29 AM, Guilherme Birk <span dir="ltr"><<a href="mailto:guibirk@hotmail.com">guibirk@hotmail.com</a>></span> wrote:<br>
<div class="ecxgmail_quote"><blockquote class="ecxgmail_quote" style="margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div dir="ltr"><div class="ecxim">I installed the nova-consoleauth service and that resolved the problem of 404 not found. Now I'm getting a cannot connect to the server<a href="http://127.0.0.1:6080" target="_blank">127.0.0.1:6080</a>. The IP 127.0.0.1 is strange, because on my nova.conf file I have the following flags:</div>
</div></div></blockquote></div></span></span></div><div><span class="ecxApple-style-span" style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)"><br></span></div><div><span class="ecxApple-style-span" style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)">The 127.0.0.1 means that your flag is not taking effect.</span></div>
<div><span class="ecxApple-style-span" style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)"><br></span></div><div><span class="ecxApple-style-span" style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(34,34,34)">If you are using essex you need:<div>
<br></div><div>--novncproxy_base_url=<a href="http://192.168.100.142:6080/vnc_auto.html" style="color:rgb(17,85,204)" target="_blank">http://192.168.100.142:6080/vnc_auto.html</a></div><div><br></div><div>In <a href="https://review.openstack.org/6002" style="color:rgb(17,85,204)" target="_blank">https://review.openstack.org/6002</a> I explain that there are configuration options that have changed for essex, this is one of them.  Let me know if there is any way I can improve that explanation.</div>
<div><br></div><div>Is this a 1 machine deploy? Given that <span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:arial;font-size:small">vncproxy_url (again that is an outdated flag) references the same ip as the compute host, your configs would only work for all-in-one.</span></div>
<div><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:arial;font-size:small"><br></span></div><div><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:arial;font-size:small">A</span></div>
<div><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:arial;font-size:small"><br></span></div></span></div><div class="ecxgmail_quote"><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div class="ecxim"><br>--vncserver_listen=192.168.100.142<br>--vncserver_proxyclient_address=192.168.100.142<br>--vncproxy_url=<a href="http://192.168.100.142:6080" target="_blank">http://192.168.100.142:6080</a><br>
--vnc_console_proxy_url=<a href="http://192.168.100.142:6080" target="_blank">http://192.168.100.142:6080</a><br><br>My problem could be because of the localhost IP? I've already tried the port 6081, but with no success.<br>
<br></div><div><div class="ecxhm ecxHOEnZb"><div></div><hr>From: <a href="mailto:lucianthomaz@hotmail.com">lucianthomaz@hotmail.com</a><br>To: <a href="mailto:sleepsonthefloor@gmail.com">sleepsonthefloor@gmail.com</a><br>
Date: Fri, 30 Mar 2012 16:30:05 +0000<br>CC: <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a></div><div><div class="h5"><br>Subject: Re: [Openstack] Dashboard VNC Console failed to connect to server<br>
<br>




<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><br>
</span></span></span></span><br><br><div><font color="#333399" face="Tahoma"><strong>Lucian Thomaz</strong></font><br></div><br><br><div><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><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>
<br>_______________________________________________
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></div></div></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></body>
</html>