Hello Tino,<br><br>Here is the log you need:<br><br><span style="font-family: courier new,monospace;">$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">---</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">INIT</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">INIT SUCCESS - -</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">---</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MONITOR 0 esxsrv -</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes vmware esxsrv</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 STDERR follows.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already initialized constant ONE_LOCATION</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already initialized constant RUBY_LIB_LOCATION</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u root -p pass virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr:  pass</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 error: internal error Could not find compute resource '��� �  ��� []Ít&'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 error: failed to connect to the hypervisor</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 . Stdout: ExitCode: 1</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum (NoMethodError)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 Error executing vmware.rb</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">LOG - 0 ExitCode: 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MONITOR FAILURE 0 Could not monitor host esxsrv.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 - </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    from /srv/cloud/one/lib/mads/one_im_sh.rb:85</span><br>And the second:<br><br><span style="font-family: courier new,monospace;">virsh -c esx://esxsrv/?no_verify=1</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Enter username for esxsrv [root]: oneadmin</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Enter oneadmin's password for esxsrv: </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">error: internal error HTTP response code 500 for call to 'Login'. Fault: ServerFaultCode - Cannot complete login due to an incorrect user name or password.</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">error: failed to connect to the hypervisor</span><br><br>Do i have to reinstall OpenNebula (2.2) to fix these problems?<br><br>Thanks & Regards<br><div class="gmail_quote">

On 27 April 2011 17:24, Tino Vazquez <span dir="ltr"><<a href="mailto:tinova@opennebula.org">tinova@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Dear Hoang,<br>
<br>
comments inline,<br>
<div class="im"><br>
On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc <<a href="mailto:hdphuc@gmail.com">hdphuc@gmail.com</a>> wrote:<br>
> Hi Tino,<br>
><br>
> I've change the USERNAME="root" and PASSWORD="pass" . Then i test:<br>
><br>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb<br>
<br>
</div>This should be<br>
<br>
 $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware<br>
<div class="im"><br>
> ----<br>
> INIT<br>
> INIT SUCCESS - -<br>
> -----<br>
> MONITOR 0 esxsrv -<br>
</div><div class="im">> MONITOR SUCCESS 0<br>
> (Ctrl-C)<br>
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -<br>
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt<br>
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'<br>
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'<br>
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'<br>
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'<br>
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85<br>
><br>
> Then. I use the command to test to connect to ESX Server:<br>
> $ virsh -c esx://root@esxsrv/?no_verify=1<br>
<br>
</div>This should be<br>
<br>
 $ virsh -c esx://esxsrv/?no_verify=1<br>
<div><div></div><div class="h5"><br>
> Enter root's password for esxsrv:<br>
> error: internal error Could not find compute resource '��� � ��� []Ít&'<br>
> error: failed to connect to the hypervisor<br>
><br>
> It can't connect to esx server<br>
><br>
> Then, i add esx host to opennebula by command:<br>
> $ onehost create esxsrv im_vmware vmm_vmware tm_vmware<br>
><br>
> But it make error state, and here is the oned.log:<br>
> Wed Apr 27 17:01:14 2011 [InM][I]:<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find<br>
> compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the<br>
> hypervisor<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method `split'<br>
> called for 1:Fixnum (NoMethodError)<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb<br>
> Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1<br>
> Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR FAILURE<br>
> 5 Could not monitor host esxsrv.<br>
><br>
> Please help me to resolve this problems<br>
><br>
> Thanks<br>
> On 27 April 2011 16:58, Tino Vazquez <<a href="mailto:tinova@opennebula.org">tinova@opennebula.org</a>> wrote:<br>
>><br>
>> Deawr Hong,<br>
>><br>
>> Yes, you have to set in USERNAME and PASSWORD valid credentials to<br>
>> access the ESX hypervisor.<br>
>><br>
>> Regards,<br>
>><br>
>> -Tino<br>
>><br>
>> --<br>
>> Constantino Vázquez Blanco, MSc<br>
>> OpenNebula Major Contributor<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79<br>
>><br>
>><br>
>><br></div></div></blockquote></div><br>