<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>I think<br>--vncserver_listen must be one of the ips of compute-node.<br></div><div><br><div><br></div><font color="#990099">-----openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: "Anthony Young" <a class="moz-txt-link-rfc2396E" href="mailto:sleepsonthefloor@gmail.com"><sleepsonthefloor@gmail.com></a><br>From: ".。o 0 O泡泡" <a class="moz-txt-link-rfc2396E" href="mailto:501640144@qq.com"><501640144@qq.com></a><br>Sent by: <a class="moz-txt-link-abbreviated" href="mailto:openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net">openstack-bounces+gongysh=cn.ibm.com@lists.launchpad.net</a><br>Date: 04/09/2012 06:16PM<br>Cc: openstack <a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a><br>Subject: Re: [Openstack] What is the correct config for vnc or       novnctosuccessfully enable VNC CONSOLE in a browser?<br><br><div><br></div><div><includetail><div>thanks for your answer.</div><div><br></div><div>the option of --vncserver_listen is always 0.0.0.0 during I having any change for other vnc's options in nova.conf </div><div><br></div><div>by the way ,if I set --vncserver_listen to controlnote's IP ,can novnc work fine when instance is in compute-note??</div><div><br></div><div>thanks </div><div>dming</div><div><br></div><div> </div><div style=""><font color="#000000"><div style="font-size: 12px; font-family: Arial Narrow; padding: 2px 0pt;">------------------ Original ------------------</div><div style="font-size: 12px; background: none repeat scroll 0% 0% #efefef; padding: 8px;"><div id="menu_sender"><b>From: </b> "Anthony Young"<a class="moz-txt-link-rfc2396E" href="mailto:sleepsonthefloor@gmail.com"><sleepsonthefloor@gmail.com></a>;</div><div><b>Date: </b> Mon, Apr 9, 2012 02:23 PM</div><div><b>To: </b> ".。o 0 O泡泡"<a class="moz-txt-link-rfc2396E" href="mailto:501640144@qq.com"><501640144@qq.com></a>; <wbr></div><div><b>Cc: </b> "openstack"<a class="moz-txt-link-rfc2396E" href="mailto:openstack@lists.launchpad.net"><openstack@lists.launchpad.net></a>; <wbr></div><div><b>Subject: </b> Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?</div></div><div> </div>See below:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div><div style="margin: 0px; font: 14px Verdana; padding: 2px 4px 0px;"> <div><br></div><div>but I get some thing strange for:</div><div>if I set </div><div><div style="line-height: 21px;">--vnc_enabled=true</div></div><div><div style="line-height: 21px;">--novncproxy_base_url=<a href="http://78.153.xxx.xxx:6080/vnc_auto.html" target="_blank">http://localhost:6080/vnc_auto.html</a></div> <div style="line-height: 21px;">--vncserver_proxyclient_address=localhost</div></div><div style="line-height: 21px;">--vncserver_listen=0.0.0.0</div><div style="line-height: 21px;">in nova.conf that it return </div><h1 style="font-size: 1.5em; margin: 1.083em 0px 0px; font-family: arial,sans-serif;"><font color="#333333"> Oops! Google Chrome could not connect to localhost<a href="http://192.168.0.202:6080/" target="_blank">:6080</a> </font></h1><div>in dashboard,but work fine when I use command <b>nova get-vnc-console demo novnc  <span style="font-size: 12px; line-height: 18px;">..</span></b><span style="background-color: #efefef; font-size: 12px; line-height: 18px;">It return a url as <a href="http://localhost:6080/vnc_auto.html?token=XXXXXXXXXXXXXX" target="_blank">http://localhost:6080/vnc_auto.html?token=XXXXXXXXXXXXXX</a>..</span></div> <div><span style="background-color: #efefef; font-size: 12px; line-height: 18px;">then I enter this url in chrome with </span><span style="background-color: #efefef; font-size: 12px; line-height: 18px;"><a href="http://172.18.187.110:6080/vnc_auto.html?token=XXXXXXXXXXXXXX" target="_blank">http://172.18.187.110:6080/vnc_auto.html?token=XXXXXXXXXXXXXX</a> </span></div> <div><span style="font-size: 12px; line-height: 18px;">ps:172.18.187.110 is the public ip of my openstack server..</span></div><div><span style="font-size: 12px; line-height: 18px;"><font color="#ff0000"><b>It can return my VM's screen ..</b></font></span></div> <div><span style="font-size: 12px; line-height: 18px;"><font color="#ff0000"><b><br></b></font></span></div><div><span style="font-size: 12px; line-height: 18px;">however,when I set</span></div><div><div><div style="line-height: 21px;"> --vnc_enabled=true</div></div><div><div style="line-height: 21px;">--novncproxy_base_url=<a href="http://78.153.xxx.xxx:6080/vnc_auto.html" target="_blank">http://172.18.187.110:6080/vnc_auto.html</a></div><div style="line-height: 21px;"> --vncserver_proxyclient_address=172.18.187.110</div></div><div style="line-height: 21px;">--vncserver_listen=0.0.0.0</div></div><div style="line-height: 21px;"><br></div><div style="line-height: 21px;">and restart all the services ..</div> <div style="line-height: 21px;">both dashboard and url from command <b>nova get-vnc-console demo novnc </b>returns <font color="#ff0000">server connot connect</font></div><div><u></u><div> </div><div><b><font size="4">I am wondering how would localhost and 172.18.187.110 be not the same???</font></b></div> <div><b><font size="4"><br></font></b></div></div></div></div></blockquote><div><br></div><div><br></div><div>If you launched this instance before you specified --vncserver_listen, then the instance's vnc server will bind 127.0.0.1.  Furthermore, this configuration will be baked into the instances libvirt.xml file, so changes to --vncserver_listen in your nova.conf will not have any effect for already existing instances.</div> <div><br></div><div>Did you happen to launch this instance before you set --vncserver_listen to 0.0.0.0?  If so, you may try to launch another instance and see if vnc is working properly.</div><div><br></div><div>Just for the record, --vncserver_listen is generally set to the hosts management ip, rather than the public ip or 0.0.0.0, for security reasons.</div> <div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div><div style="margin: 0px; font: 14px Verdana; padding: 2px 4px 0px;"> <div><div><b><font size="4"></font></b></div><div><font>thanks</font></div><div><font><br></font></div><div><font>dming</font></div><div> </div><div><div style=""> ------------------ Original ------------------</div><div style="font-size: 12px; background-color: #efefef; padding: 8px;"><div><b>From: </b> "Kiall Mac Innes"<<a href="mailto:kiall@managedit.ie" target="_blank">kiall@managedit.ie</a>>;</div> <div><b>Date: </b> Sat, Apr 7, 2012 07:15 PM</div><div><b>To: </b> "Eric Luo"<<a href="mailto:staywithmyheart@gmail.com" target="_blank">staywithmyheart@gmail.com</a>>;<u></u></div><div><b>Cc: </b> "openstack"<<a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>>;<u></u></div> <div><b>Subject: </b> Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?</div></div><div> </div>For anyone else who might be hng the same issue.. These two packages, combined with these options will get novnc working on precise..<div><br></div><div><div><div class="h5"><div>--vnc_enabled=true</div><div>--novncproxy_base_url=<a href="http://78.153.xxx.xxx:6080/vnc_auto.html" target="_blank">http://78.153.XXX.XXX:6080/vnc_auto.html</a></div><div>--vncserver_proxyclient_address=78.153.XXX.XXX</div> <div>--vncserver_listen=0.0.0.0</div><div><br></div></div></div><div><div><div class="h5"><div>I've intentionally kept the version numbers identical to the packages currently in the precise repo's. This will hopefully let apt "do the right thing" once an official update is released..</div> <div><br></div><div><a href="http://dl.dropbox.com/u/1400487/novnc_2012.1%7Ee3%2Bdfsg-1_amd64.deb" target="_blank">http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.deb</a></div><div><br></div><div><a href="http://dl.dropbox.com/u/1400487/python-novnc_2012.1%7Ee3%2Bdfsg-1_all.deb" target="_blank">http://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.deb</a> <br><br>Thanks,<br>Kiall</div><br><br></div></div><div class="gmail_quote"><div><div class="h5">On Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes <span dir="ltr"><<a href="mailto:kiall@managedit.ie" target="_blank">kiall@managedit.ie</a>></span> wrote:<br> </div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"><div> <div class="h5"><p>The novnc package included in 12.04 is outdated/broken..</p><p>I know Chuck is planning to fix it ASAP..</p><p>In the meantime, I hacked together a fixed .deb.. I can stick it somewhere for you to download if you like?<br> </p><p>Thanks,<br>Kiall</p><p>Sent from my phone.</p></div></div><div class="gmail_quote"><div><div class="h5"><div><div>On Apr 7, 2012 9:31 a.m., "Eric Luo" <<a href="mailto:staywithmyheart@gmail.com" target="_blank">staywithmyheart@gmail.com</a>> wrote:<br type="attribution"> </div></div></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;"> <div><div><div><div class="h5">Hello ,all<div>I installed Openstack as a all-in-one solution ,I got everything runs correctly ,I can ssh to my VMs etc. But there is a problem here: I can not use the VNC tag in dashboard.</div> <div>I have installed the nova-consoleauth and novnc by "apt-get" .but I can not statrt the nova-novncproxy service (by the way ,the nova-vncproxy service always runs OK),</div><div>When I use the command root@ubuntu:~# <b>service novnc start</b></div> <div>I got the following with nothing else:</div><div>* Starting OpenStack NoVNC proxy nova-novncproxy</div><div><br></div><div>It only says "starting",but does not say "started"!</div><div><br></div><div> actually it is not started ,by command <b>service novnc status, </b>it says: * nova-novncproxy is not running.</div><div><br></div><div>when I use command <b>nova-novncproxy --flagfile=/etc/nova/nova.conf</b> ,I got the following:</div> <div><br></div><div><div>WARNING: no 'numpy' module, HyBi protocol support disabled</div><div>Traceback (most recent call last):</div><div>File "/usr/bin/nova-novncproxy", line 40, in <module></div> <div>flags.DEFINE_boolean('verbose', False,</div><div>AttributeError: 'module' object has no attribute 'DEFINE_boolean'</div></div><div><br></div><div>When I use command <b>nova get-vnc-console testVM novnc</b></div> <div><br></div><div><br></div><div><div>+-------+------------------------------------------------------------------------------------+</div><div>| Type | Url |</div><div>+-------+------------------------------------------------------------------------------------+</div> <div>| novnc | <a href="http://192.168.0.202:6080/vnc_auto.html?token=e1095862-deb9-4cb5-9ec9-44aa0200342e" target="_blank">http://192.168.0..202:6080/vnc_auto.html?token=e1095862-deb9-4cb5-9ec9-44aa0200342e</a> |</div><div> +-------+------------------------------------------------------------------------------------+</div></div><div><br></div><div>but When pasted the url above into my chrome ,I got the following :</div><div><h1 style="font-size: 1.5em; margin: 1.083em 0px 0px; font-family: arial,sans-serif;"><font color="#333333"> Oops! Google Chrome could not connect to <a href="http://192.168.0.202:6080/" target="_blank">192.168.0.202:6080</a></font></h1><h2 style="font-size: 1.083em; margin: 1.083em 0px 0px; font-family: arial,sans-serif;"> Suggestions:</h2><ul style="font-size: 1.083em; line-height: 1.37em; margin: 0px 0px 0px 1.5em; padding: 0px; font-family: arial,sans-serif;"> <li>Try reloading the page</li><li><div><label style="display: block; padding: 0px 0px 0.8em; text-align: left;">Search on Google:</label><label style="display: block; padding: 0px 0px 0.8em; text-align: left;">when I click the "VNC " tag in dashboard ,I got the folloing :</label></div> </li></ul></div><div><br></div><div><h1 style="font-size: 12pt; line-height: 20px; margin: 0px; font-family: Helvetica,Arial,sans-serif;">This webpage is not available</h1><div style="line-height: 18px; margin-top: 15px; font-family: Helvetica,Arial,sans-serif; font-size: 13px;"> Google Chrome's connection attempt to <strong>192.168.0.202</strong> was rejected. The website may be down, or your network may not be properly configured.</div><div style="line-height: 18px; margin-top: 15px; font-family: Helvetica,Arial,sans-serif; font-size: 13px;"> <h2 style="font-size: 10pt; margin: 0px; padding: 0px;">Here are some suggestions:</h2><ul style="margin: 0px; padding-bottom: 0px;"> <li style="padding-top: 2px;"><a href="http://192.168.0.202:6080/vnc_auto..html?token=4ecea055-2253-48e7-9542-544761432d29&title=VM9%2811323336-8e18-453b-8b31-f4c821649df4%29" style="" target="_blank"><font color="#551a8b">Reload</font></a> this webpage later.</li> <li style="padding-top: 2px;">Check your Internet connection. Restart any router, modem, or other network devices you may be using.</li><li style="padding-top: 2px;">Add Google Chrome as a permitted program in your firewall's or antivirus software's settings. If it is already a permitted program, try deleting it from the list of permitted programs and adding it again.</li> <li style="padding-top: 2px;">If you use a proxy server, check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server, adjust your proxy settings: Go to <strong>the wrench menu > Settings > Under the Hood > Change Proxy Settings... </strong>and make sure your configuration is set to "no proxy" or "direct."</li> </ul></div><div style="line-height: 18px; margin-top: 30px; font-family: Helvetica,Arial,sans-serif; font-size: 13px;"><font color="#777777">Error 102 (<a class="moz-txt-link-freetext" href="net::ERR_CONNECTION_REFUSED">net::ERR_CONNECTION_REFUSED</a>): The server refused the connection.</font></div>I hvae an nova config as following:</div> </div></div><div><div><div class="h5"><div>--dhcpbridge_flagfile=/etc/nova/nova.conf</div><div>--dhcpbridge=/usr/bin/nova-dhcpbridge</div><div>--logdir=/var/log/nova</div><div>--state_path=/var/lib/nova</div><div>--lock_path=/var/lock/nova</div> <div>--allow_admin_api=true</div><div>--use_deprecated_auth=false</div><div>--auth_strategy=keystone</div><div>--scheduler_driver=nova.scheduler.simple.SimpleScheduler</div><div>--s3_host=192.168.0.202</div><div>--ec2_host=192.168.0.202</div> <div>--rabbit_host=192.168.0.202</div><div>--cc_host=192.168.0.202</div><div>--nova_url=<a href="http://192.168.0.202:8774/v1.1/" target="_blank">http://192.168.0.202:8774/v1.1/</a></div><div>--routing_source_ip=192.168.0.202</div> <div>--glance_api_servers=<a href="http://192.168.0.202:9292/" target="_blank">192.168.0.202:9292</a></div><div>--image_service=nova.image.glance.GlanceImageService</div><div>--iscsi_ip_prefix=192.168.0</div><div>--sql_connection=mysql://<a href="http://novadbadmin:123456@192.168.0.202/nova" target="_blank">novadbadmin:123456@192.168.0.202/nova</a></div> <div>--ec2_url=<a href="http://192.168.0.202:8773/services/Cloud" target="_blank">http://192.168.0.202:8773/services/Cloud</a></div><div>--keystone_ec2_url=<a href="http://192.168.0.202:5000/v2.0/ec2tokens" target="_blank">http://192.168.0.202:5000/v2.0/ec2tokens</a></div> <div>--api_paste_config=/etc/nova/api-paste.ini</div><div>--libvirt_type=kvm</div><div>--libvirt_use_virtio_for_bridges=true</div><div>--start_guests_on_host_boot=false</div><div>--resume_guests_state_on_host_boot=false</div> <div><br></div><div><br></div><div>--vnc_enabled=true</div><div>--novnc_enabled=true</div><div>--vncserver_listen=127.0.0.1</div><div>--vncserver_proxyclient_address=127.0.0.1</div><div>--novncproxy_base_url=<a href="http://192.168.0.202:6080/vnc_auto.html" target="_blank">http://192.168.0.202:6080/vnc_auto.html</a></div> <div>--xvpvncproxy_base_url=<a href="http://192.168.0.202:6081/console" target="_blank">http://192.168.0.202:6081/console</a></div><div>--xvpvncproxy_port=6081</div><div>--novncproxy_port=65535</div><div># network specific settings</div> <div>--network_manager=nova.network.manager.FlatDHCPManager</div><div>--public_interface=eth0</div><div>--flat_interface=eth0</div><div>--flat_network_bridge=br100</div><div>--fixed_range=<a href="http://192.168.0...60/27" target="_blank">192.168.0.60/27</a></div> <div>--floating_range=<a href="http://192.168.0.202/27" target="_blank">192.168.0.202/27</a></div><div>--network_size=32</div><div>--flat_network_dhcp_start=192.168.0.61</div><div>--flat_injected=False</div><div>--force_dhcp_release</div> <div>--iscsi_helper=tgtadm</div><div>--connection_type=libvirt</div><div>--root_helper=sudo nova-rootwrap</div><div>--verbose</div><div><br></div><div><br></div><div>I guess that's all the information I can give it for now .</div> </div></div><div>I did a lot of googling ,and read ton of docs on <a href="http://openstack.org/" target="_blank">openstack.org</a> ..but nothing seams help......</div><div class="im"><div>Can someone please help me out of here ?...I almost get crazy about this = = !......</div> <div style="line-height: 18px; margin-top: 30px; font-family: Helvetica,Arial,sans-serif; font-size: 13px;"><font color="#777777"><br></font></div><div style="line-height: 18px; margin-top: 30px; font-family: Helvetica,Arial,sans-serif; font-size: 13px;"><font color="#777777"><br></font></div><div><br></div>-- <br>Stay with me,stay with my heart,honey......<br></div></div><br></div></div><div class="im">_______________________________________________<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" target="_blank">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></div></blockquote></div></blockquote></div></div></div></div><u></u></div></div><br></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> </font></div></includetail></div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>Mailing list: <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>Post to     : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></font> </blockquote><br></div></font> <br/>