<div>Here are several flags that you must set on your compute host for a multi host deploy:</div><div><br></div><div><span class="Apple-style-span" style="font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;color:rgb(51,51,51);line-height:22px"><ul style="margin-top:15px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:30px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit">
<li style="margin-top:15px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit">
<a href="https://github.com/openstack/nova#id3" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit;color:rgb(65,131,196);text-decoration:none">: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-top:15px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit">
<a href="https://github.com/openstack/nova#id5" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit;color:rgb(65,131,196);text-decoration:none">: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-top:15px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit">
<a href="https://github.com/openstack/nova#id7" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit;color:rgb(65,131,196);text-decoration:none">: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 href="http://%24SERVICE_HOST:6080/vnc_auto.html" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;font:inherit;color:rgb(65,131,196);text-decoration:none">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">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 class="Apple-style-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 class="Apple-style-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">http://my.server.com:6080/vnc_auto.html</a> or </span><span class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-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 class="Apple-style-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">https://github.com/openstack/nova/blob/master/doc/source/runnova/vncconsole.rst</a><div><br>
</div><div><br><div class="gmail_quote">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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
<font face="Tahoma" color="#366092">Hey guys,</font><div><font face="Tahoma" color="#366092"><br></font></div><div><font face="Tahoma" color="#366092">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 face="Tahoma" color="#366092"><br></font></div><div><font face="Tahoma" color="#366092">Here is the log -> <a href="http://pastebin.com/5DZMfiNE" target="_blank">http://pastebin.com/5DZMfiNE</a></font></div>
<div><font face="Tahoma" color="#366092"><br></font></div><div><font face="Tahoma" color="#366092">Anyone already saw this trouble?<span class="HOEnZb"><font color="#888888"><br></font></span></font><span class="HOEnZb"><font color="#888888"><br>
<br><div><font face="Tahoma" color="#333399"><strong>Lucian Thomaz </strong></font></div><br></font></span></div>                                           </div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" 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/~openstack" 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>