Hi,<br><br>Is any mistake in your command? I've change the path like this:<br><br><span style="font-family:courier new,monospace">$ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r </span><i style="font-family:courier new,monospace"><b>$ONE_LOCATION/lib/remotes/im/vmware.d/* </b></i><span style="font-family:courier new,monospace">$ONE_LOCATION/var/remotes/im/vmware.d</span><br>


<br>and<br><br><span style="font-family:courier new,monospace">$ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r <b>$ONE_LOCATION/lib/remotes/vmm/vmware/*</b> $ONE_LOCATION/var/remotes/vmm/vmware</span><br>


<br>But it still get the error.<br><br>Regards<br><br><div class="gmail_quote">On 26 April 2011 22:20, Tino Vazquez <span dir="ltr"><<a href="mailto:tinova@opennebula.org" target="_blank">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>
My apologies, the test i was asking for was not complete (it was<br>
lacking a paramenter to the mad).<br>
<br>
In any case, I think the problem may be in the way ONE 2.0+ handles<br>
the remotes. The VMware Addon only copies to<br>
$ONE_LOCATION/lib/remotes, when it should copy also to<br>
$ONE_LOCATION/var. I've opened a ticket [1] to keep track of the<br>
solution.<br>
<br>
Meanwhile, a workaround is to issue the following from the VMware<br>
Addon installation directory:<br>
<br>
$ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*<br>
$ONE_LOCATION/var/remotes/im/vmware.d<br>
$ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*<br>
$ONE_LOCATION/var/remotes/vmm/vmware<br>
<br>
Please let me know if this solves the issue.<br>
<br>
Regards,<br>
<br>
-Tino<br>
<br>
[1] <a href="http://dev.opennebula.org/issues/593" target="_blank">http://dev.opennebula.org/issues/593</a><br>
<div><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><div></div><div>On Tue, Apr 26, 2011 at 12:13 PM, Hoang Dinh Phuc <<a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a>> wrote:<br>
> Hi<br>
><br>
> Here is the output:<br>
><br>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb<br>
> --<br>
> INIT<br>
> --INIT SUCCESS - -<br>
> --<br>
> MONITOR 0 esxsrv<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>
> It can't connect to my ESX Server. Please show me the way to check the<br>
> problems.<br>
><br>
> Thanks & Regards<br>
><br>
> On 26 April 2011 16:55, Tino Vazquez <<a href="mailto:tinova@opennebula.org" target="_blank">tinova@opennebula.org</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> Yes please input the following two lines:<br>
>><br>
>> --<br>
>> INIT<br>
>> --<br>
>><br>
>> The answer should be<br>
>><br>
>> --<br>
>> INIT SUCCESS<br>
>> --<br>
>><br>
>> and the also enter the following<br>
>><br>
>> --<br>
>> MONITOR 0 <name_of_host> -<br>
>> --<br>
>><br>
>> and send the output.<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>
>> On Tue, Apr 26, 2011 at 3:33 AM, Hoang Dinh Phuc <<a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a>> wrote:<br>
>> > Hi Tino Vazquez,<br>
>> ><br>
>> > I've ran the command<br>
>> ><br>
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb<br>
>> ><br>
>> > But it don't return anything. Do i have to do anything?<br>
>> ><br>
>> > Thanks<br>
>> ><br>
>> > On 25 April 2011 21:19, Tino Vazquez <<a href="mailto:tinova@opennebula.org" target="_blank">tinova@opennebula.org</a>> wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> Let's see what happens if the driver is executed by hand, please send<br>
>> >> the output of:<br>
>> >><br>
>> >> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb<br>
>> >> INIT<br>
>> >> MONITOR 0 <name_of_host> -<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>
>> >> On Tue, Apr 19, 2011 at 2:50 AM, Hoang Dinh Phuc <<a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a>><br>
>> >> wrote:<br>
>> >> ><br>
>> >> > Hello all,<br>
>> >> ><br>
>> >> >  I've already installed OpenNebula 2.2 on CentOS and add KVM host to<br>
>> >> > OpenNebula. Now, i want to add ESX Server (VMWARE) to be managed by<br>
>> >> > the<br>
>> >> > OpenNebula. But it make an error. Here is my oned.conf:<br>
>> >> ><br>
>> >> > VM_MAD = [<br>
>> >> >     name       = "vmm_vmware",<br>
>> >> >     executable = "one_vmm_sh",<br>
>> >> >     arguments  = "vmware",<br>
>> >> >     default    = "vmm_sh/vmm_sh_vmware.conf",<br>
>> >> >     type       = "vmware" ]<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > #-------------------------------------------------------------------------------<br>
>> >> > #  VMware Driver Addon Information Driver Manager Configuration<br>
>> >> ><br>
>> >> ><br>
>> >> > #-------------------------------------------------------------------------------<br>
>> >> > IM_MAD = [<br>
>> >> >       name       = "im_vmware",<br>
>> >> >       executable = "one_im_sh",<br>
>> >> >       arguments  = "vmware" ]<br>
>> >> > #       arguments = "--username oneadmin --password ' ' " ]<br>
>> >> ><br>
>> >> ><br>
>> >> > #-------------------------------------------------------------------------------<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > #-------------------------------------------------------------------------------<br>
>> >> > # VMware Driver Addon Transfer Manager Driver Configuration<br>
>> >> ><br>
>> >> ><br>
>> >> > #-------------------------------------------------------------------------------<br>
>> >> > TM_MAD = [<br>
>> >> >     name       = "tm_vmware",<br>
>> >> >     executable = "one_tm",<br>
>> >> >     arguments  = "tm_vmware/tm_vmware.conf" ]<br>
>> >> ><br>
>> >> > When i'm using onehost command to add VMWARE Host, it make an error<br>
>> >> > state.<br>
>> >> > And here is the log<br>
>> >> > $ onehost esxsrv im_vmware vmm_vmware tm_vmware<br>
>> >> ><br>
>> >> > Mon Apr 18 14:24:05 2011 [InM][I]: Monitoring host esxsrv (3)<br>
>> >> > Mon Apr 18 14:24:05 2011 [ReM][D]: VirtualMachinePoolInfo method<br>
>> >> > invoked<br>
>> >> > Mon Apr 18 14:24:05 2011 [InM][D]: Host 3 successfully monitored.<br>
>> >> > Mon Apr 18 14:24:05 2011 [ONE][E]: syntax error, unexpected $end,<br>
>> >> > expecting<br>
>> >> > VARIABLE at line 2, columns 1:2<br>
>> >> > Mon Apr 18 14:24:05 2011 [InM][E]: Error parsing host information:<br>
>> >> ><br>
>> >> > Please show me the way to add VMWARE host to OpenNebula.<br>
>> >> ><br>
>> >> > Thanks so much.<br>
>> >> > -------------------<br>
>> >> > F:  Hoang Dinh Phuc<br>
>> >> > E:  <a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a><br>
>> >> > M: +84909398700<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > -------------------<br>
>> >> > F:  Hoang Dinh Phuc<br>
>> >> > E:  <a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a><br>
>> >> > M: +84909398700<br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Users mailing list<br>
>> >> > <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
>> >> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>> >> ><br>
>> >> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > -------------------<br>
>> > F:  Hoang Dinh Phuc<br>
>> > E:  <a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a><br>
>> > M: +84909398700<br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> -------------------<br>
> F:  Hoang Dinh Phuc<br>
> E:  <a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a><br>
> M: +84909398700<br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-------------------<br>F:  Hoang Dinh Phuc<br>E:  <a href="mailto:hdphuc@gmail.com" target="_blank">hdphuc@gmail.com</a><br>M: +84909398700<br><br>