Discussion:
[one-users] VNC problem: Failed to connect to server (code: 1006)
ahernandez
2013-04-25 19:51:22 UTC
Permalink
Hi Miguel

I install noVNC, I insert 0.0.0.0 adress and port 5901, and down
firewall, but the problem persist when try up VNC conect to VM

Failed to connect to server (code: 1006)

?Any Ideas?
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and
run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you
need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com
Skype n40lab
Email mcabrerizo at macto.es*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm>
------------------------------
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
End of Users Digest, Vol 62, Issue 109
**************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
Daniel Molina
2013-04-26 09:24:23 UTC
Permalink
Hi
Post by ahernandez
Hi Miguel
I install noVNC, I insert 0.0.0.0 adress and port 5901, and down firewall,
but the problem persist when try up VNC conect to VM
Failed to connect to server (code: 1006)
?Any Ideas?
Did you restart sunstone-server after installing noVNC?

Cheers
Post by ahernandez
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4**aa3 at tesla.cujae.edu.cu<390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CACpsMgEQn7cM6hN_**5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm**
8rHg at mail.gmail.com<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com
Skype n40lab
Email mcabrerizo at macto.es*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/**pipermail/users-opennebula.**
org/attachments/20130425/**3d2e1d51/attachment-0001.htm<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm>
------------------------------
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
End of Users Digest, Vol 62, Issue 109
****************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130426/1b053c03/attachment.htm>
ahernandez
2013-04-26 13:14:31 UTC
Permalink
Hi Daniel, I restart sunstone-server when I install noVNC.

another Ideas? the problem persist
Post by Daniel Molina
Hi
Post by ahernandez
Hi Miguel
I install noVNC, I insert 0.0.0.0 adress and port 5901, and down
firewall, but the problem persist when try up VNC conect to VM
Failed to connect to server (code: 1006)
?Any Ideas?
Did you restart sunstone-server after installing noVNC?
Cheers
?
Post by ahernandez
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
? ? ? ? 1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
? ? ? ? (code: ?1006)
? ? ? ?
<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com [3]
Skype n40lab
Email mcabrerizo at macto.es [4]*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm
[5]>
------------------------------
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [6]
End of Users Digest, Vol 62, Issue 109
**************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [6]
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
------
[1] http://cujae.edu.cu
[2] http://www.ecured.cu
[3] http://n40lab.wordpress.com
[4] http://macto.es
[5]
http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm
[6] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[7] http://www.OpenNebula.org
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
ahernandez
2013-04-26 13:14:31 UTC
Permalink
Hi Daniel, I restart sunstone-server when I install noVNC.

another Ideas? the problem persist
Post by Daniel Molina
Hi
Post by ahernandez
Hi Miguel
I install noVNC, I insert 0.0.0.0 adress and port 5901, and down
firewall, but the problem persist when try up VNC conect to VM
Failed to connect to server (code: 1006)
?Any Ideas?
Did you restart sunstone-server after installing noVNC?
Cheers
?
Post by ahernandez
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
? ? ? ? 1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
? ? ? ? (code: ?1006)
? ? ? ?
<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com [3]
Skype n40lab
Email mcabrerizo at macto.es [4]*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm
[5]>
------------------------------
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [6]
End of Users Digest, Vol 62, Issue 109
**************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org [6]
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
------
[1] http://cujae.edu.cu
[2] http://www.ecured.cu
[3] http://n40lab.wordpress.com
[4] http://macto.es
[5]
http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm
[6] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[7] http://www.OpenNebula.org
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
ahernandez
2013-04-29 12:25:00 UTC
Permalink
People, I repeat my problem

People, I up a VM, but when try conection whit VNC, I present the
problem:

Failed to connect to server (code: 1006)

?Any Ideas?


48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
Daniel Molina
2013-04-29 12:50:26 UTC
Permalink
Hi,
Post by ahernandez
People, I repeat my problem
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
Please use the same thread, so other people, facing the same problem, can
find a solution in the future.

Thank you.
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130429/a9fe994f/attachment.htm>
Daniel Molina
2013-04-29 12:50:26 UTC
Permalink
Hi,
Post by ahernandez
People, I repeat my problem
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
Please use the same thread, so other people, facing the same problem, can
find a solution in the future.

Thank you.
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130429/a9fe994f/attachment-0002.htm>
ahernandez
2013-04-29 17:11:47 UTC
Permalink
Hi People, Daniel Molina (dmolina at opennebula.org), and me Angel Miguel
Hernandez (ahernandez at tesla.cujae.edu.cu), find the solution for problem
with VNC. When you try open VNC of Virtual Machine, you obtain "Failed
to connect to server (code: 1006)". The solution for the problem is
following the step of this web site:

http://t3chnot3s.blogspot.com.es/2012/03/how-to-enable-vnc-access-to-vms-on.html

1- Login to the vSphere host either at the console or remotely.
NOTE: On the console, this requires logging into the ALT+F2 screen as
root or other admin with permissions, going to TROUBLESHOOTING OPTIONS,
and enabling either ESXi Shell (console shell access) or SSH (remote
shell access).

2- Change owner on firewall folder and services.xml file
\etc\vmware\firewall\services.xml

I did the following (as this was my own lab in a protected
environment):

#CD /etc/vmware
#CHOWN -R root firewall/
#CHMOD 7777 firewall/

NOTE: Use "ls -l" (lower case "L") to see permissions on the
FIREWALL folder.

Then?
#CD firewall/
#CHMOD 7777 service.xml

NOTE: Use "ls -l" (lower case "L") to see permissions on
SERVICE.XML file.

3- Edit the SERVICE.XML file to create a VNC service.
NOTE 1: Use VI or another text editor to add the below text at bottom
of the file (assuming it is still in a default format).

NOTE 2: If you have modified your firewall then your service id may be
different! This should be a sequential number which you can get from the
previous listed service. By default it should be approximately "0032".

<!-- VNC -->
<service id="0032">
<id>VNC</id>
<rule id='0000'>
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5800</begin>
<end>5999</end>
</port>
</rule>
<rule id='0001'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5800</begin>
<end>5999</end>
</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>

NOTE 3: Use "i" (lower case) to insert text in VI.
NOTE 4: Use [ESC] to exit insert mode within VI.
NOTE 5: Use ":x" (i.e. colon then lower case "x") to save and write
changes.
NOTE 6: You will notice in the above settings I am opening all ports
between 5800 and 5999. You may not wish to do this!!

4- Save Services.xml file
NOTE: Any errors at this point will be file/folder permissions related.

5- Refresh firewall rules
esxcli network firewall refresh
esxcli network firewall ruleset list (for see the rules)

And the problem solved

Thank to all that colaborate in the solution!!!!!!!!!!, and I send a
big thanks to Tino Vasquez.
----------------------------------------------------------------------
Message: 1
Date: Mon, 29 Apr 2013 15:42:15 +0200
From: Daniel Molina <dmolina at opennebula.org>
To: ahernandez at tesla.cujae.edu.cu
Cc: OpenNebula LIST <users at lists.opennebula.org>
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CAPvyweyMfzgYmLh=3sy8Tfd2S4wnsLu-ykAf3yzgsBnB_8jAGQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I use OpenNebula 3.8.3, and Hypervisor ESXi 5.0
Did you follow this step, to allow VNC inbound connections?
http://opennebula.org/documentation:rel3.8:evmwareg#vnc
Hi,
Hi anagba b, thank for you answer, I see that I don't have
novnc-server
How obtain novnc-server bin
Any Ideas?
PD: I have install install_novnc.sh
What OpenNebula version are you using?
Cheers
Try to kill the vnc proxy and relaunch it manually .
May be you can find the cause of error.
On Thu, Apr 25, 2013 at 11:17 PM,
<ahernandez at tesla.cujae.edu.cu**>
People, I up a VM, but when try conection whit VNC, I present
the
Post by ahernandez
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2
de
diciembre de 1964 | http://cujae.edu.cu [1] [1]
Consulte la enciclopedia colaborativa cubana.
http://www.ecured.cu[2] [2]
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
[3]
------
[1] http://cujae.edu.cu [1]
[2] http://www.ecured.cu [2]
[3]
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2
de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center
Virtualization
------
[1] http://cujae.edu.cu
[2] http://www.ecured.cu
[3]
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
[4] http://www.OpenNebula.org
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130429/9f91a848/attachment-0001.htm>
------------------------------
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
ahernandez
2013-04-25 19:51:22 UTC
Permalink
Hi Miguel

I install noVNC, I insert 0.0.0.0 adress and port 5901, and down
firewall, but the problem persist when try up VNC conect to VM

Failed to connect to server (code: 1006)

?Any Ideas?
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and
run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you
need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com
Skype n40lab
Email mcabrerizo at macto.es*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm>
------------------------------
_______________________________________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
End of Users Digest, Vol 62, Issue 109
**************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
Daniel Molina
2013-04-26 09:24:23 UTC
Permalink
Hi
Post by ahernandez
Hi Miguel
I install noVNC, I insert 0.0.0.0 adress and port 5901, and down firewall,
but the problem persist when try up VNC conect to VM
Failed to connect to server (code: 1006)
?Any Ideas?
Did you restart sunstone-server after installing noVNC?

Cheers
Post by ahernandez
Message: 3
Date: Thu, 25 Apr 2013 13:47:26 -0400
From: ahernandez at tesla.cujae.edu.cu
To: OpenNebula LIST <users at lists.opennebula.org>
1006)
Message-ID: <390e5919a261481e37bb6ad4c17f4**aa3 at tesla.cujae.edu.cu<390e5919a261481e37bb6ad4c17f4aa3 at tesla.cujae.edu.cu>
Content-Type: text/plain; charset=UTF-8; format=flowed
People, I up a VM, but when try conection whit VNC, I present the
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
------------------------------
Message: 4
Date: Thu, 25 Apr 2013 20:38:50 +0200
From: Miguel ?ngel ?lvarez Cabrerizo <mcabrerizo at macto.es>
To: users at lists.opennebula.org
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CACpsMgEQn7cM6hN_**5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm**
8rHg at mail.gmail.com<CACpsMgEQn7cM6hN_5EdhGgOn6O0AoQHeiM9MzDR4pH0EEm8rHg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
if you're using OpenNebula 3.8.3
1) Check that you've installed novnc (if not go to /usr/share/one and run
./install_novnc.sh)
2) If novnc is installed check if you have set 0.0.0.0 address in the
Graphics section of your VM (you should insert a port also e.g 5901).
3) If you are running iptables try to stop the firewall maybe you need a
rule to allow traffic.
Regards,
Miguel
--
*Miguel ?ngel ?lvarez Cabrerizo*
MACTO apps ? cloud ? security*
**Blog http://n40lab.wordpress.com
Skype n40lab
Email mcabrerizo at macto.es*
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/**pipermail/users-opennebula.**
org/attachments/20130425/**3d2e1d51/attachment-0001.htm<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130425/3d2e1d51/attachment-0001.htm>
------------------------------
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
End of Users Digest, Vol 62, Issue 109
****************************************
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130426/1b053c03/attachment-0002.htm>
ahernandez
2013-04-29 12:25:00 UTC
Permalink
People, I repeat my problem

People, I up a VM, but when try conection whit VNC, I present the
problem:

Failed to connect to server (code: 1006)

?Any Ideas?


48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
ahernandez
2013-04-29 17:11:47 UTC
Permalink
Hi People, Daniel Molina (dmolina at opennebula.org), and me Angel Miguel
Hernandez (ahernandez at tesla.cujae.edu.cu), find the solution for problem
with VNC. When you try open VNC of Virtual Machine, you obtain "Failed
to connect to server (code: 1006)". The solution for the problem is
following the step of this web site:

http://t3chnot3s.blogspot.com.es/2012/03/how-to-enable-vnc-access-to-vms-on.html

1- Login to the vSphere host either at the console or remotely.
NOTE: On the console, this requires logging into the ALT+F2 screen as
root or other admin with permissions, going to TROUBLESHOOTING OPTIONS,
and enabling either ESXi Shell (console shell access) or SSH (remote
shell access).

2- Change owner on firewall folder and services.xml file
\etc\vmware\firewall\services.xml

I did the following (as this was my own lab in a protected
environment):

#CD /etc/vmware
#CHOWN -R root firewall/
#CHMOD 7777 firewall/

NOTE: Use "ls -l" (lower case "L") to see permissions on the
FIREWALL folder.

Then?
#CD firewall/
#CHMOD 7777 service.xml

NOTE: Use "ls -l" (lower case "L") to see permissions on
SERVICE.XML file.

3- Edit the SERVICE.XML file to create a VNC service.
NOTE 1: Use VI or another text editor to add the below text at bottom
of the file (assuming it is still in a default format).

NOTE 2: If you have modified your firewall then your service id may be
different! This should be a sequential number which you can get from the
previous listed service. By default it should be approximately "0032".

<!-- VNC -->
<service id="0032">
<id>VNC</id>
<rule id='0000'>
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5800</begin>
<end>5999</end>
</port>
</rule>
<rule id='0001'>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5800</begin>
<end>5999</end>
</port>
</rule>
<enabled>true</enabled>
<required>false</required>
</service>

NOTE 3: Use "i" (lower case) to insert text in VI.
NOTE 4: Use [ESC] to exit insert mode within VI.
NOTE 5: Use ":x" (i.e. colon then lower case "x") to save and write
changes.
NOTE 6: You will notice in the above settings I am opening all ports
between 5800 and 5999. You may not wish to do this!!

4- Save Services.xml file
NOTE: Any errors at this point will be file/folder permissions related.

5- Refresh firewall rules
esxcli network firewall refresh
esxcli network firewall ruleset list (for see the rules)

And the problem solved

Thank to all that colaborate in the solution!!!!!!!!!!, and I send a
big thanks to Tino Vasquez.
----------------------------------------------------------------------
Message: 1
Date: Mon, 29 Apr 2013 15:42:15 +0200
From: Daniel Molina <dmolina at opennebula.org>
To: ahernandez at tesla.cujae.edu.cu
Cc: OpenNebula LIST <users at lists.opennebula.org>
Subject: Re: [one-users] VNC problem: Failed to connect to server
(code: 1006)
<CAPvyweyMfzgYmLh=3sy8Tfd2S4wnsLu-ykAf3yzgsBnB_8jAGQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I use OpenNebula 3.8.3, and Hypervisor ESXi 5.0
Did you follow this step, to allow VNC inbound connections?
http://opennebula.org/documentation:rel3.8:evmwareg#vnc
Hi,
Hi anagba b, thank for you answer, I see that I don't have
novnc-server
How obtain novnc-server bin
Any Ideas?
PD: I have install install_novnc.sh
What OpenNebula version are you using?
Cheers
Try to kill the vnc proxy and relaunch it manually .
May be you can find the cause of error.
On Thu, Apr 25, 2013 at 11:17 PM,
<ahernandez at tesla.cujae.edu.cu**>
People, I up a VM, but when try conection whit VNC, I present
the
Post by ahernandez
Failed to connect to server (code: 1006)
?Any Ideas?
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2
de
diciembre de 1964 | http://cujae.edu.cu [1] [1]
Consulte la enciclopedia colaborativa cubana.
http://www.ecured.cu[2] [2]
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
[3]
------
[1] http://cujae.edu.cu [1]
[2] http://www.ecured.cu [2]
[3]
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2
de
diciembre de 1964 | http://cujae.edu.cu [1]
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
[2]
______________________________**_________________
Users mailing list
Users at lists.opennebula.org
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>[3]
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center
Virtualization
------
[1] http://cujae.edu.cu
[2] http://www.ecured.cu
[3]
http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
[4] http://www.OpenNebula.org
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de
diciembre de 1964 | http://cujae.edu.cu
Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
-------------- next part --------------
An HTML attachment was scrubbed...
<http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130429/9f91a848/attachment-0001.htm>
------------------------------
48 Aniversario de la Cujae, Una obra de la Revolucion Cubana | 2 de diciembre de 1964 | http://cujae.edu.cu

Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
Loading...