<div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; overflow-x: auto; overflow-y: auto; font: normal normal normal 14px/normal Verdana; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; padding-top: 2px; padding-right: 4px; padding-bottom: 0px; padding-left: 4px; cursor: text; "><div>thanks kiall</div><div><br></div><div>with your two packages that novnc work fine .</div><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">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-top: 1.083em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(51, 51, 51); font-family: arial, sans-serif; ">Oops! Google Chrome could not connect to localhost<a href="http://192.168.0.202:6080/" target="_blank">:6080</a> </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: rgb(239, 239, 239); font-size: 12px; line-height: 18px; ">It return a url as http://localhost:6080/vnc_auto.html?token=XXXXXXXXXXXXXX..</span></div><div><span style="background-color: rgb(239, 239, 239); font-size: 12px; line-height: 18px; ">then I enter this url in chrome with </span><span style="background-color: rgb(239, 239, 239); font-size: 12px; line-height: 18px; ">http://172.18.187.110:6080/vnc_auto.html?token=XXXXXXXXXXXXXX </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">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><includetail><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><font size="2">thanks</font></div><div><font size="2"><br></font></div><div><font size="2">dming</font></div><div> </div><div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; ">------------------ Original ------------------</div><div style="font-size: 12px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(239, 239, 239); padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; "><div id="menu_sender"><b>From: </b> "Kiall Mac Innes"<kiall@managedit.ie>;</div><div><b>Date: </b> Sat, Apr 7, 2012 07:15 PM</div><div><b>To: </b> "Eric Luo"<staywithmyheart@gmail.com>;<wbr></div><div><b>Cc: </b> "openstack"<openstack@lists.launchpad.net>;<wbr></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>--vnc_enabled=true</div><div>--novncproxy_base_url=<a href="http://78.153.xxx.xxx:6080/vnc_auto.html">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>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~e3%2Bdfsg-1_amd64.deb">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~e3%2Bdfsg-1_all.deb">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 class="gmail_quote">On Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes <span dir="ltr"><<a href="mailto:kiall@managedit.ie">kiall@managedit.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; 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; "><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 class="gmail_quote"><div><div class="h5">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><blockquote class="gmail_quote" style="margin-top: 0px; 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 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-top: 1.083em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(51, 51, 51); font-family: arial, sans-serif; ">Oops! Google Chrome could not connect to <a href="http://192.168.0.202:6080/" target="_blank">192.168.0.202:6080</a></h1><h2 style="font-size: 1.083em; margin-top: 1.083em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; ">Suggestions:</h2><ul style="font-size: 1.083em; line-height: 1.37em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 1.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: arial, sans-serif; "><li>Try reloading the page</li><li><form><label style="display: block; padding-top: 0px; padding-right: 0px; padding-bottom: 0.8em; padding-left: 0px; text-align: left; ">Search on Google:</label><label style="display: block; padding-top: 0px; padding-right: 0px; padding-bottom: 0.8em; padding-left: 0px; text-align: left; ">when I click the "VNC " tag in dashboard ,I got the folloing :</label></form></li></ul></div><div><br></div><div><h1 style="font-size: 12pt; line-height: 20px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Here are some suggestions:</h2><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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(11323336-8e18-453b-8b31-f4c821649df4)" target="_blank" style="color: rgb(85, 26, 139); ">Reload</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; color: rgb(119, 119, 119); margin-top: 30px; font-family: Helvetica, Arial, sans-serif; font-size: 13px; ">Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.</div>I hvae an nova config as following:</div><div><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>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>Can someone please help me out of here ?...I almost get crazy about this = = !......</div><div style="line-height: 18px; color: rgb(119, 119, 119); margin-top: 30px; font-family: Helvetica, Arial, sans-serif; font-size: 13px; "><br></div><div style="line-height: 18px; color: rgb(119, 119, 119); margin-top: 30px; font-family: Helvetica, Arial, sans-serif; font-size: 13px; "><br></div><div><br></div>-- <br>Stay with me,stay with my heart,honey.....<br></div><br></div></div>_______________________________________________<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" target="_blank">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></blockquote></div></div></div></div></includetail></div></div><br class="Apple-interchange-newline"></div>