<!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=宋体>what the result of CLI 
`virsh dumpxml ${instance-uuid}` execute on the host which instance is 
running?</FONT></DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-07-30</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>sam lee 
<lixq2000@gmail.com></FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>发送时间:</STRONG>2013-07-30 11:23</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>"Mahardhika"<mahardika.gilang@andalabs.com></FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>抄送:</STRONG>"Wangpan"<hzwangpan@corp.netease.com>,"openstack"<openstack@lists.openstack.org></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV dir=ltr>No application listening 5900 on compute node. </DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>2013/7/30 Mahardhika <SPAN dir=ltr><<A 
href="mailto:mahardika.gilang@andalabs.com" 
target=_blank>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>
  <P><FONT face="Times New Roman, Times, serif">You should check on machine that 
  running compute node (nova-compute), it will be /qemu-system-x </FONT></P>
  <P><FONT face="Times New Roman, Times, serif">#netstat -tulpn</FONT></P>
  <DIV>
  <DIV class=h5><BR>On 7/30/2013 9:52 AM, sam lee wrote:<BR></DIV></DIV></DIV>
  <DIV>
  <DIV class=h5>
  <BLOCKQUOTE type="cite">
    <DIV dir=ltr>I doesn't find any application listening port 5900 on 
    controller node, Do I miss something?</DIV>
    <DIV class=gmail_extra><BR><BR>
    <DIV class=gmail_quote>2013/7/29 Wangpan <SPAN dir=ltr><<A 
    href="mailto:hzwangpan@corp.netease.com" 
    target=_blank>hzwangpan@corp.netease.com</A>></SPAN><BR>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
      <DIV 
      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:%7E$" 
      target=_blank>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" 
      target=_blank>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" 
      target=_blank>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 face=Verdana>2013-07-29</FONT></DIV>
      <DIV align=left><FONT face=Verdana>
      <HR style="MIN-HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
      <SPAN><FONT color=#888888></FONT></SPAN></FONT></DIV><SPAN><FONT 
      color=#888888>
      <DIV align=left><FONT color=#c0c0c0 
      face=Verdana><SPAN>Wangpan</SPAN></FONT></DIV>
      <DIV><FONT face=Verdana>
      <HR>
      </FONT></DIV>
      <DIV><FONT face=Verdana><STRONG>发件人:</STRONG>Mahardhika <<A 
      href="mailto:mahardika.gilang@andalabs.com" 
      target=_blank>mahardika.gilang@andalabs.com</A>></FONT></DIV>
      <DIV><FONT 
      face=Verdana><STRONG>发送时间:</STRONG>2013-07-29 16:07</FONT></DIV>
      <DIV><FONT face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] can not access 
      vm via vnc(grizzly)</FONT></DIV>
      <DIV><FONT face=Verdana><STRONG>收件人:</STRONG>"sam lee"<<A 
      href="mailto:lixq2000@gmail.com" 
      target=_blank>lixq2000@gmail.com</A>>,"openstack"<<A 
      href="mailto:openstack@lists.openstack.org" 
      target=_blank>openstack@lists.openstack.org</A>></FONT></DIV>
      <DIV><FONT face=Verdana><STRONG>抄送:</STRONG></FONT></DIV></FONT></SPAN>
      <DIV>
      <DIV>
      <DIV> </DIV>
      <DIV><FONT face=Verdana>
      <DIV>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 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>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"><BR>
          <DIV text="#000000" bgcolor="#FFFFFF">
          <DIV>Does the nova novnc start well? 
          <DIV>
          <DIV><BR>On 7/29/2013 2:14 PM, sam lee wrote:<BR></DIV></DIV></DIV>
          <BLOCKQUOTE type="cite">
            <DIV>
            <DIV>
            <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>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>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>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A>
Post to     : <A href="mailto:openstack@lists.openstack.org" target=_blank>openstack@lists.openstack.org</A>
Unsubscribe : <A href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target=_blank>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</A><SPAN><FONT color=#888888>
</FONT></SPAN></PRE><SPAN></SPAN></BLOCKQUOTE><SPAN><FONT 
          color=#888888><BR></FONT></SPAN><BR></DIV></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE><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>mahardika.gilang@andalabs.com</A> 
      </DIV></FONT></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE><BR><BR>
  <DIV><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></FONT></DIV></BODY></HTML>