<div dir="ltr">FYI<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Prachi De</b> <span dir="ltr"><<a href="mailto:deprachi3@gmail.com">deprachi3@gmail.com</a>></span><br>

Date: 1 April 2013 13:52<br>Subject: Re: [one-users] VNC Error opennebual-3.8.3 -Failed to connect to server(1006)<br>To: Daniel Molina <<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>><br><br><br>

<div dir="ltr">Hi Daniel,<div><br></div><div>Thanks for the reply .</div><div><br></div><div>My problem is solved now , able to  see VNC popup Window.</div><div><br></div><div>Regards.</div></div>
<div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Mon, Apr 1, 2013 at 2:49 PM, Daniel Molina <span dir="ltr"><<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 1 April 2013 09:52, Prachi De <span dir="ltr"><<a href="mailto:deprachi3@gmail.com" target="_blank">deprachi3@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>Installed opennebula-3.8.3 on frontend in self contained mode and unable to see vm running on host.</div>




<div><br></div><div>Tried following solutions</div><div>
1]Cheked if I set Listen= 0 0 0 0 in qemu.conf.</div><div>2]Killed existing proxies and relaunched through console</div><div>3] o/p</div><div><br></div><div><br></div><div>
        
        
        


<p style="margin-bottom:0cm"><b>Kill existing proxy</b></p>
<p style="margin-bottom:0cm">oneadmin@psd:~/var$ ps aux | grep
websockify 
</p>
<p style="margin-bottom:0cm">oneadmin  3357  0.0  0.3  13296  6344
pts/1    S    10:50   0:00 python
/srv/cloud/one/share/websockify/websocketproxy.py
--target-config=/srv/cloud/one/var/sunstone_vnc_tokens 29876
</p>
<p style="margin-bottom:0cm">oneadmin  6011  0.0  0.0   4392   820
pts/1    S+   11:42   0:00 grep websockify
</p>
<p style="margin-bottom:0cm">oneadmin@psd:~/var$ kill 3357
</p>
<p style="margin-bottom:0cm"><b>4] Launch proxy manually</b></p>
<p style="margin-bottom:0cm">oneadmin@psd:~/var$ python
/srv/cloud/one/share/websockify/websocketproxy.py
--target-config=/srv/cloud/one/var/sunstone_vnc_tokens  29876
</p>
<p style="margin-bottom:0cm">WARNING: no 'numpy' module, HyBi
protocol is slower or disabled
</p>
<p style="margin-bottom:0cm">WebSocket server settings:
</p>
<p style="margin-bottom:0cm">  - Listen on :29876
</p>
<p style="margin-bottom:0cm">  - Flash security policy server
</p>
<p style="margin-bottom:0cm">  - No SSL/TLS support (no cert file)
</p>
<p style="margin-bottom:0cm">  - proxying from :29876 to targets in
/srv/cloud/one/var/sunstone_vnc_tokens
</p>
<p style="margin-bottom:0cm">
</p>
<p style="margin-bottom:0cm">  1: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>: Plain non-SSL (ws://)
WebSocket connection
</p>
<p style="margin-bottom:0cm">  1: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>: Version hybi-13,
base64: 'True'
</p>
<p style="margin-bottom:0cm">  1: <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>: Path:
'/?token=cco7iiv1aoijvck4bn3k'
</p>
<p style="margin-bottom:0cm">  1: connecting to:
oneadmin@clustermachineip:29876
</p>
<p style="margin-bottom:0cm">  1: handler exception: [Errno -2] Name
or service not known </p></div><div><br></div><div>I have added oneadmin@clusterip in frontend machines hosts file . In resolv.conf nameserver 127.0.0.1 . </div><div><br></div><div>MY VM TEMPLATE:</div><div><br></div>
<div><table style="background-image:none;border-collapse:collapse;margin:20px;display:inline-block;width:560.140625px;vertical-align:top;overflow:auto;outline-style:none;font-family:Arial,Verdana,Geneva,Helvetica,sans-serif;font-size:13px;background-repeat:repeat repeat">





<tbody style="outline-style:none"><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">ID</td>
<td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">6</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Name</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">mynet</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Cluster</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">-</td></tr><tr style="outline-style:none"><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Owner</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;outline-style:none;width:378px">oneadmin</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Group</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">oneadmin</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Bridge</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">virbr0</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





VLAN</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">yes</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Physical device</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">eth1</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





VLAN ID</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px">--</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





Permissions</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px"></td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





     Owner</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px;font-family:monospace">um-</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





     Group</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px;font-family:monospace">---</td></tr><tr><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;min-width:150px;font-weight:bold">





     Other</td><td style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204);color:rgb(53,55,53);padding:6px 8px;width:378px;font-family:monospace">--</td></tr></tbody></table>
</div><div><div>oneadmin@pbi:~$ virsh list</div><div> Id Name                 State</div><div>----------------------------------</div><div> 11 one-10               running</div></div><div><br></div><div><br></div><div>
Here vm id shown by virsh list is 11 but sunstone shows  vm id 10 . </div><div><br></div><div>If vm is created on host and running then why this error is coming for VNC</div><div><br></div><div><br>
</div><div>: handler exception: [Errno -2] Name or service not known.<br></div><div><br></div><div><br></div><div>One bridge is created on host machine </div><div><div>oneadmin@pbi:~$ brctl show</div><div>bridge name<span style="white-space:pre-wrap">     </span>bridge id<span style="white-space:pre-wrap">               </span>STP enabled<span style="white-space:pre-wrap">     </span>interfaces</div>





<div>virbr0<span style="white-space:pre-wrap">            </span>8000.fe00c0a80101<span style="white-space:pre-wrap">       </span>yes<span style="white-space:pre-wrap">             </span>vnet0</div><div><br></div><div>eth1 is ethernet of host machine.</div>





<div><br></div><div><br></div></div></div></blockquote><div><br></div></div></div><div>The problem is you added your host ''<span style="font-family:arial,sans-serif;font-size:13px">oneadmin@clusterip''' including the user. Trying just adding ''clusterip'' as the host name and modifying your ~/.ssh/config to connect as oneadmin to that host</span></div>




<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><div><font face="arial, sans-serif">Host </font><span style="font-family:arial,sans-serif;font-size:13px">clusterip</span></div>

<div><font face="arial, sans-serif">    User oneadmin</font></div></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Hope this helps</span></div>


<span><font color="#888888">

<div><span style="font-family:arial,sans-serif;font-size:13px"> </span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></font></span></div><span><font color="#888888">-- <br>
Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div>Prachi D.</div><div><br><div><br></div></div></div>
</font></span></div>
</div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula
</div>