<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi<br>
    Can you connect to the kvm virtual console with virtviewer (e.g.,
    not with sunstone)?<br>
    <br>
    On 04/25/2012 10:54 AM, Valerio Schiavoni wrote:
    <blockquote
cite="mid:CAOoC4scAmaxB+nYU-2tnMLxKFZqfhiNJgO2UHhpmPAeFxPdpDg@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">Hello Justin,</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Apr 25, 2012 at 1:36 AM, Justin
          Cinkelj <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:justin.cinkelj@xlab.si" target="_blank">justin.cinkelj@xlab.si</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> You can still connect
              to VNC console (kvm ... -vnc <a moz-do-not-send="true"
                href="http://0.0.0.0:34100" target="_blank">0.0.0.0:34100</a>
              ...).<br>
              Something like 'vncviewer 192.168.128.100::34100'. Or
              maybe is port 34100+5900. Check with netstat on which
              ports does kvm proces listen.</div>
          </blockquote>
          <div><br>
          </div>
          <div>On sunstone.log I see:</div>
          <div><br>
          </div>
          <div>Wed Apr 25 10:47:15 2012 [I]: Starting vnc proxy:
            /usr/share/one/noVNC/utils/websockify  39876
            newcluster-0:10000</div>
          <div>
            Wed Apr 25 10:47:15 2012 [I]: 130.125.11.252 - -
            [25/Apr/2012 10:47:15] "POST /vm/50/startvnc HTTP/1.1" 200
            30 0.0111</div>
          <div>Wed Apr 25 10:47:23 2012 [I]: 130.125.11.252 - -
            [25/Apr/2012 10:47:23] "GET /acl?timeout=true HTTP/1.1" 200
            377 0.0055</div>
          <div>Wed Apr 25 10:47:23 2012 [I]: 130.125.11.252 - -
            [25/Apr/2012 10:47:23] "GET /image?timeout=true HTTP/1.1"
            200 2902 0.0070</div>
          <div><br>
          </div>
          <div>but the web  interface shows "<span
style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:Arial,Verdana,Geneva,Helvetica,sans-serif;font-size:13px">Server
              disconnected (code: 1006)"</span> </div>
          <div><br>
          </div>
          <div>On the machine newcluster-0 (where I try to vnc into) i
            see:</div>
          <div><br>
          </div>
          <div>
            <div>newcluster-0:~$ lsof -i :10000</div>
            <div>COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF NODE
              NAME</div>
            <div>
              kvm     3123 oneadmin   11u  IPv4 121082      0t0  TCP
              *:webmin (LISTEN)</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div>newcluster-0:~$ netstat -nlp</div>
            <div>(Not all processes could be identified, non-owned
              process info</div>
            <div> will not be shown, you would have to be root to see it
              all.)</div>
            <div>Active Internet connections (only servers)</div>
            <div>Proto Recv-Q Send-Q Local Address           Foreign
              Address         State       PID/Program name</div>
            <div>tcp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:16509">0.0.0.0:16509</a>          
              0.0.0.0:*               LISTEN      -               </div>
            <div>tcp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:10000">0.0.0.0:10000</a>          
              0.0.0.0:*               LISTEN      3123/kvm        </div>
            <div>tcp        0      0 <a moz-do-not-send="true"
                href="http://192.168.122.1:53">192.168.122.1:53</a>    
                 0.0.0.0:*               LISTEN      -               </div>
            <div>tcp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:22">0.0.0.0:22</a>            
               0.0.0.0:*               LISTEN      -               </div>
            <div>tcp6       0      0 :::22                   :::*      
                           LISTEN      -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://192.168.122.1:53">192.168.122.1:53</a>    
                 0.0.0.0:*                           -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:67">0.0.0.0:67</a>            
               0.0.0.0:*                           -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:68">0.0.0.0:68</a>            
               0.0.0.0:*                           -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:68">0.0.0.0:68</a>            
               0.0.0.0:*                           -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:68">0.0.0.0:68</a>            
               0.0.0.0:*                           -               </div>
            <div>udp        0      0 <a moz-do-not-send="true"
                href="http://0.0.0.0:68">0.0.0.0:68</a>            
               0.0.0.0:*                           -               </div>
            <div>Active UNIX domain sockets (only servers)</div>
            <div>Proto RefCnt Flags       Type       State        
              I-Node   PID/Program name    Path</div>
            <div>unix  2      [ ACC ]     STREAM     LISTENING     6331
                  -                   @/com/ubuntu/upstart</div>
            <div>unix  2      [ ACC ]     STREAM     LISTENING     316  
                 -                   /var/run/dbus/system_bus_socket</div>
            <div>unix  2      [ ACC ]     STREAM     LISTENING     9547
                  -                   /var/run/libvirt/libvirt-sock</div>
            <div>unix  2      [ ACC ]     STREAM     LISTENING     9549
                  -                   /var/run/libvirt/libvirt-sock-ro</div>
            <div>unix  2      [ ACC ]     SEQPACKET  LISTENING     1893
                  -                   @/org/kernel/udev/udevd</div>
            <div>unix  2      [ ACC ]     STREAM     LISTENING    
              117431   3123/kvm          
               /var/lib/libvirt/qemu/one-50.monitor</div>
          </div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>