[one-users] Asking about VMWARE ESX and OpenNebula

Tino Vazquez tinova at opennebula.org
Wed Apr 27 06:46:22 PDT 2011


Hi,

You need to set a valid user in the ESX hypervisor, _not_ a opennebula
or linux user.

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Wed, Apr 27, 2011 at 3:03 PM, Hoang Dinh Phuc <hdphuc at gmail.com> wrote:
> Hello Tino,
>
> Here is the log you need:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
> ---
> INIT
> INIT SUCCESS - -
> ---
> MONITOR 0 esxsrv -
>
> LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> vmware esxsrv
> LOG - 0 STDERR follows.
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> 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
> LOG - 0
> LOG - 0 error: internal error Could not find compute resource '��� � ���
> []Ít&'
> LOG - 0 error: failed to connect to the hypervisor
> LOG - 0 . Stdout: ExitCode: 1
> LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum
> (NoMethodError)
> LOG - 0 Error executing vmware.rb
> LOG - 0 ExitCode: 1
> MONITOR FAILURE 0 Could not monitor host esxsrv.
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> And the second:
>
> virsh -c esx://esxsrv/?no_verify=1
> Enter username for esxsrv [root]: oneadmin
> Enter oneadmin's password for esxsrv:
> error: internal error HTTP response code 500 for call to 'Login'. Fault:
> ServerFaultCode - Cannot complete login due to an incorrect user name or
> password.
> error: failed to connect to the hypervisor
>
> Do i have to reinstall OpenNebula (2.2) to fix these problems?
>
> Thanks & Regards
> On 27 April 2011 17:24, Tino Vazquez <tinova at opennebula.org> wrote:
>>
>> Dear Hoang,
>>
>> comments inline,
>>
>> On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc <hdphuc at gmail.com>
>> wrote:
>> > Hi Tino,
>> >
>> > I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
>> >
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>>
>> This should be
>>
>>  $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
>>
>> > ----
>> > INIT
>> > INIT SUCCESS - -
>> > -----
>> > MONITOR 0 esxsrv -
>> > MONITOR SUCCESS 0
>> > (Ctrl-C)
>> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
>> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in
>> > `start_driver'
>> >     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>> >
>> > Then. I use the command to test to connect to ESX Server:
>> > $ virsh -c esx://root@esxsrv/?no_verify=1
>>
>> This should be
>>
>>  $ virsh -c esx://esxsrv/?no_verify=1
>>
>> > Enter root's password for esxsrv:
>> > error: internal error Could not find compute resource '��� � ��� []Ít&'
>> > error: failed to connect to the hypervisor
>> >
>> > It can't connect to esx server
>> >
>> > Then, i add esx host to opennebula by command:
>> > $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
>> >
>> > But it make error state, and here is the oned.log:
>> > Wed Apr 27 17:01:14 2011 [InM][I]:
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
>> > compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
>> > hypervisor
>> > Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method
>> > `split'
>> > called for 1:Fixnum (NoMethodError)
>> > Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR
>> > FAILURE
>> > 5 Could not monitor host esxsrv.
>> >
>> > Please help me to resolve this problems
>> >
>> > Thanks
>> > On 27 April 2011 16:58, Tino Vazquez <tinova at opennebula.org> wrote:
>> >>
>> >> Deawr Hong,
>> >>
>> >> Yes, you have to set in USERNAME and PASSWORD valid credentials to
>> >> access the ESX hypervisor.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>
>


More information about the Users mailing list