<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 10.00.9200.16521"><BASE 
target=_blank></HEAD>
<BODY 
style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 12px; LINE-HEIGHT: 1.3; BORDER-TOP-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV><FONT color=#000000 size=3 face=宋体>vnc is supported by 
qemu, so we needn't to install a vnc-server into instance.</FONT></DIV>
<DIV>you may check the vnc connection by connecting it directly on the host by a 
vnc client,</DIV>
<DIV>1. virsh dumpxml ${instance-uuid}</DIV>
<DIV>2. get the vnc port: like 5900 or 59XX</DIV>
<DIV>3. get the vnc bind address: like 127.0.0.1 or 0.0.0.0(same as 
the vncserver_listen = 127.0.0.1 in nova.conf)</DIV>
<DIV>4. make a port forwarding to the host by ssh and set the proxy 
in vnc client if your vncserver_listen = 127.0.0.1</DIV>
<DIV>5. set the target ip address to the host of instance and the vnc port 59XX 
to the vnc client and connect to the instance</DIV>
<DIV> </DIV>
<DIV><graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1' 
keymap='en-us'><BR>      <listen type='address' 
address='127.0.0.1'/><BR>    </graphics></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>if this is ok, then may be the vncproxy type you config is wrong, there 
are two types :'novnc' and 'xvpvnc', and in my env, the 'novnc' is 
used,</DIV>
<DIV>the novnc service need be installed on the host,</DIV>
<DIV>then you can get the vnc-console by 'nova get-vnc-console ${instance-uuid} 
novnc',</DIV>
<DIV><A href="mailto:hzwangpan@myhost:~$">hzwangpan@myhost:~$</A> nova 
get-vnc-console e4975b9f-95d0-4223-8df9-7d4f017b5de7 
novnc<BR>+-------+-------------------------------------------------------------------------------------+<BR>| 
Type  | 
Url                                                                                 
|<BR>+-------+-------------------------------------------------------------------------------------+<BR>| 
novnc | <A 
href="http://xxx.xxx.xxx.xxx:6080/vnc_auto.html?token=45fc8fc6-4488-4b4f-9b20-53de67d9ef8d">http://xxx.xxx.xxx.xxx:6080/vnc_auto.html?token=45fc8fc6-4488-4b4f-9b20-53de67d9ef8d</A> 
|<BR>+-------+-------------------------------------------------------------------------------------+</DIV>
<DIV>the ip of Url is same as the config novncproxy_base_url = <A 
href="http://xxx.xxx.xxx.xxx:6080/vnc_auto.html">http://xxx.xxx.xxx.xxx:6080/vnc_auto.html</A> in 
the nova.conf.</DIV>
<DIV>then you can try to open the url in the browser like google chrome of 
firefox(html5/websocket should be supported).</DIV>
<DIV>the vnc console will be open if there is no error.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-07-29</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana>
<HR id=SignNameHR style="HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana><SPAN 
id=_FlashSignName>Wangpan</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG>Mahardhika 
<mahardika.gilang@andalabs.com></FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>发送时间:</STRONG>2013-07-29 16:07</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] can not 
access vm via vnc(grizzly)</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG>"sam 
lee"<lixq2000@gmail.com>,"openstack"<openstack@lists.openstack.org></FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV class=moz-cite-prefix>Have you tried to used console on horizon dashboard? 
vnc must be installed on instance first, like tiger-vnc<BR>On 7/29/2013 2:53 PM, 
sam lee wrote:<BR></DIV>
<BLOCKQUOTE 
cite=mid:CANKQmssv2tXwM=MLq+Gm1KFQUpfjZTbCPCcehyJckTGosk3+Sw@mail.gmail.com 
type="cite">
  <DIV dir=ltr>yes.</DIV>
  <DIV class=gmail_extra><BR><BR>
  <DIV class=gmail_quote>2013/7/29 Mahardhika <SPAN dir=ltr><<A 
  href="mailto:mahardika.gilang@andalabs.com" target=_blank 
  moz-do-not-send="true">mahardika.gilang@andalabs.com</A>></SPAN><BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV text="#000000" bgcolor="#FFFFFF">
    <DIV>Does the nova novnc start well? 
    <DIV>
    <DIV class=h5><BR>On 7/29/2013 2:14 PM, sam lee wrote:<BR></DIV></DIV></DIV>
    <BLOCKQUOTE type="cite">
      <DIV>
      <DIV class=h5>
      <DIV dir=ltr><SPAN 
      style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif">Hi all,</SPAN> 
      <DIV style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif"><BR></DIV>
      <DIV style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif">    
          I am installing openstack grizzly on redhat 6.4. when I 
      created a instances successfully and tried to access it via vnc, it had no 
      response. the log file xvpvncproxy.log shows an error as below:</DIV>
      <DIV style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif"><BR></DIV>
      <BLOCKQUOTE 
      style="FONT-SIZE: 14px; BORDER-TOP: medium none; FONT-FAMILY: arial,sans-serif; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">Host: <A 
          href="http://172.16.2.91:6081/" target=_blank 
          moz-do-not-send="true">172.16.2.91:6081</A></BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">Referer: <A 
          href="http://172.16.2.91/dashboard/project/instances/e1f21ec1-7dfd-452b-ab3e-88ecfabc0929/" 
          target=_blank 
          moz-do-not-send="true">http://172.16.2.91/dashboard/project/instances/e1f21ec1-7dfd-452b-ab3e-88ecfabc0929/</A></BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">User-Agent: 
          Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) 
          Chrome/26.0.1410.64 Safari/537.31</BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">2013-07-29 
          10:35:18.231 3111 INFO nova.XCP VNC Proxy.wsgi.server [-] Traceback 
          (most recent call last):</BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">  
          File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 393, in 
          handle_one_response</BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">  
            for data in result:</BLOCKQUOTE>
        <BLOCKQUOTE 
        style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 0px 40px; BORDER-LEFT: medium none; PADDING-RIGHT: 0px">TypeError: 
          'NoneType' object is not iterable</BLOCKQUOTE></BLOCKQUOTE>
      <DIV 
      style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif"><BR></DIV><SPAN 
      style="FONT-SIZE: 14px; FONT-FAMILY: arial,sans-serif">Anyone has 
      encountered the same question before? thanks in 
      advance.</SPAN><BR></DIV><BR>
      <FIELDSET></FIELDSET> <BR></DIV></DIV><PRE>_______________________________________________
Mailing list: <A href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target=_blank moz-do-not-send="true">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A>
Post to     : <A href="mailto:openstack@lists.openstack.org" target=_blank moz-do-not-send="true">openstack@lists.openstack.org</A>
Unsubscribe : <A href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target=_blank moz-do-not-send="true">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A><SPAN class=HOEnZb><FONT color=#888888>
</FONT></SPAN></PRE><SPAN class=HOEnZb><FONT 
    color=#888888></FONT></SPAN></BLOCKQUOTE><SPAN class=HOEnZb><FONT 
    color=#888888><BR><BR>
    <DIV>-- <BR>Regards,<BR>Mahardhika Gilang<BR><BR><STRONG>PT. Andalabs 
    Technology </STRONG><BR>Gedung Gravira<BR>Jl. Cideng Barat no. 54<BR>Jakarta 
    Pusat 10150<BR><BR>HP : 0852 139 55861<BR>Email : <A 
    href="mailto:mahardika.gilang@andalabs.com" target=_blank 
    moz-do-not-send="true">mahardika.gilang@andalabs.com</A> 
    </DIV></FONT></SPAN></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE><BR><BR>
<DIV class=moz-signature>-- <BR>Regards,<BR>Mahardhika Gilang<BR><BR><STRONG>PT. 
Andalabs Technology </STRONG><BR>Gedung Gravira<BR>Jl. Cideng Barat no. 
54<BR>Jakarta Pusat 10150<BR><BR>HP : 0852 139 55861<BR>Email : <A 
class=moz-txt-link-abbreviated 
href="mailto:mahardika.gilang@andalabs.com">mahardika.gilang@andalabs.com</A> 
</DIV></FONT></DIV></BODY></HTML>