[one-users] VNC problem: Failed to connect to server (code: 1006)
ahernandez at tesla.cujae.edu.cu
ahernandez at tesla.cujae.edu.cu
Mon Apr 29 10:11:47 PDT 2013
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)
> Message-ID:
> <CAPvyweyMfzgYmLh=3sy8Tfd2S4wnsLu-ykAf3yzgsBnB_8jAGQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 29 April 2013 15:33, <ahernandez at tesla.cujae.edu.cu> wrote:
>
>> 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
>
>
>
>>
>> El 2013-04-29 08:53, Daniel Molina escribi?:
>>
>>> Hi,
>>>
>>> On 26 April 2013 15:56, <ahernandez at tesla.cujae.edu.cu**> wrote:
>>>
>>> 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
>>>
>>>
>>>
>>> El 2013-04-26 02:32, anagha b escribi?:
>>>>
>>>> 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**>
>>>>> wrote:
>>>>>
>>>>> 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 [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]
>>>>>>
>>>>>
>>>>> Links:
>>>>> ------
>>>>> [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
>>> www.OpenNebula.org [4] | dmolina at opennebula.org | @OpenNebula
>>>
>>>
>>> Links:
>>> ------
>>> [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
> 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/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
More information about the Users
mailing list