Hello Tim,<br><br>I've changed as your help, but it still get an error. Here is the log<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;">
<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 oneadmin -p virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: . Stdout: /srv/cloud/one/bin/tty_expect: invalid option -- c</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LOG - 0 Wrong option. Check usage</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 myexpect [-h] <-p password> <-u username> <command></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 SYNOPSIS</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 Wraps the execution of a command and sends username & password</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 OPTIONS</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LOG - 0 -h prints this help.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 -p the password</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LOG - 0 -u the username</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LOG - 0 <virsh command> complete virsh command</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LOG - 0 ExitCode: 255</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 255: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><br><br> P/s: account oneadmin don't have password<br><br>Thanks and regards<br><div class="gmail_quote">On 27 April 2011 19:57, <span dir="ltr"><<a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send Users mailing list submissions to<br>
<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@lists.opennebula.org">users-request@lists.opennebula.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@lists.opennebula.org">users-owner@lists.opennebula.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Does the SOURCE make no sense when creating an image in<br>
opennebula-2.2.0 (Carlos Mart?n S?nchez)<br>
2. Re: Asking about VMWARE ESX and OpenNebula (Tim Dunlevy)<br>
3. OpenNebula and ESXI 4.1 (C?sar Carrasco Mosquera)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 27 Apr 2011 12:55:25 +0200<br>
From: Carlos Mart?n S?nchez <<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>><br>
To: <a href="http://junjie.ma" target="_blank">junjie.ma</a>@<a href="http://cs2c.com.cn" target="_blank">cs2c.com.cn</a><br>
Cc: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] Does the SOURCE make no sense when creating<br>
an image in opennebula-2.2.0<br>
Message-ID: <BANLkTinn=<a href="mailto:raTL4Oy0QLUHe8By5bNKUT%2BvQ@mail.gmail.com">raTL4Oy0QLUHe8By5bNKUT+vQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="gb2312"<br>
<br>
Hi,<br>
<br>
You are right about the steps made by the ruby OCA and OpenNebula daemon.<br>
And indeed, it makes no sense to specify only a SOURE attribute *if it is a<br>
file path*.<br>
<br>
But you can still take advantage of the SOURCE if you use an http:// url.<br>
This can be used to bypass the local Image Repository and store some of the<br>
Image files remotely.<br>
<br>
Anyway, this isn't the typical scenario, and maybe it still makes sense to<br>
remove the SOURCE option from the Suntone wizard.<br>
<br>
Best regards,<br>
Carlos.<br>
--<br>
Carlos Mart?n, MSc<br>
Project Major Contributor<br>
OpenNebula - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> <<a href="http://www.opennebula.org/" target="_blank">http://www.opennebula.org/</a>> | <a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a><br>
<br>
<br>
On Wed, Apr 27, 2011 at 2:41 AM, <<a href="http://junjie.ma" target="_blank">junjie.ma</a>@<a href="http://cs2c.com.cn" target="_blank">cs2c.com.cn</a>> wrote:<br>
<br>
><br>
><br>
> Hello,<br>
><br>
> When creating an image by sunstone-server, I find that the<br>
> SOURCE makes no sense. So I go to the source code both in Ruby and<br>
> opennebula, the SOURCE is only valid when using the PATH or SIZE(with<br>
> FSTYPE).<br>
><br>
> In my opinion, the whole image creation consists of four steps:<br>
><br>
><br>
> 1. Sunstone-server sends "one.image.allocate" by using Ruby to<br>
> opennebula. The opennebula receives the calls and checks if the SOURCE<br>
> exists in parameters of the image template. If it does not exists,<br>
> opennebula assign a string to the SOURCE with the SHA1 digesting of<br>
> "uid:name", otherwise do nothing to the SOURCE. Then, inserts a image<br>
> record into the DB.<br>
><br>
> 2. Then sunstone-server sends "<a href="http://one.image.info" target="_blank">one.image.info</a>" to<br>
> opennebula to retrieve the initialized infomation by step 1, mainly the<br>
> value of SOURCE.<br>
><br>
> 3. Suntone-server starts to judge the branches by PATH,<br>
> SOURCE, SIZE, FSTYPE and TYPE. When there only exists the SOURCE, it will<br>
> do nothing. (For example, if the PATH exists and SOURCE not exists, it will<br>
> do copy the PATH file to the SOURCE file path, and etc.)<br>
><br>
> 4. If former<br>
> steps have no errors, sunstone-server sends "one.image.enable" to<br>
> opennebula, it just update the record in DB and do nothing about the<br>
> SOURCE. Otherwise, it sends "one.image.delete" to opennebula and delete the<br>
> record in DB.<br>
><br>
> So, if just specify the SOURCE to create an image, the<br>
> operation make no sense. So, I think the SOURCE input should be removed in<br>
> web pages of sunstone-server .<br>
><br>
> If I have mistakes, please send me the<br>
> error correction. Thanks. :-)<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/e6c13bdc/attachment-0001.htm" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/e6c13bdc/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 27 Apr 2011 08:36:27 -0400<br>
From: Tim Dunlevy <<a href="mailto:tim.dunlevy@commitent.com">tim.dunlevy@commitent.com</a>><br>
To: Tino Vazquez <<a href="mailto:tinova79@gmail.com">tinova79@gmail.com</a>><br>
Cc: "<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula<br>
Message-ID:<br>
<<a href="mailto:951EAAA951E3AD4B82B5B30AA2A0AF2B01D78395EEEF@Commitchs1.commitent.com">951EAAA951E3AD4B82B5B30AA2A0AF2B01D78395EEEF@Commitchs1.commitent.com</a>><br>
<br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Same error after changing the line to below.<br>
<br>
-----Original Message-----<br>
From: Tino Vazquez [mailto:<a href="mailto:tinova79@gmail.com">tinova79@gmail.com</a>]<br>
Sent: Wednesday, April 27, 2011 5:49 AM<br>
To: Tim Dunlevy<br>
Cc: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula<br>
<br>
Hi Tim,<br>
<br>
This looks like a bug. Could you change line 116 of $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:<br>
<br>
self.each(filter.to_s) { |e| ids_array << e.text }<br>
<br>
and try again. If this works, please come back and i'll open a ticket to get it fix in future OpenNebula releases.<br>
<br>
Regards,<br>
<br>
-Tino<br>
<br>
--<br>
Constantino V?zquez Blanco | <a href="http://dsa-research.org/tinova" target="_blank">dsa-research.org/tinova</a> Virtualization Technology Engineer / Researcher OpenNebula Toolkit | <a href="http://opennebula.org" target="_blank">opennebula.org</a><br>
<br>
<br>
<br>
On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy <<a href="mailto:tim.dunlevy@commitent.com">tim.dunlevy@commitent.com</a>> wrote:<br>
> FYI -<br>
> Ruby is version 1.8.7<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opennebula.org">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>
Message: 3<br>
Date: Wed, 27 Apr 2011 14:55:24 +0200<br>
From: C?sar Carrasco Mosquera <<a href="mailto:ccarrasco@csi.uned.es">ccarrasco@csi.uned.es</a>><br>
To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br>
Subject: [one-users] OpenNebula and ESXI 4.1<br>
Message-ID: <<a href="mailto:4DB8123C.5070800@csi.uned.es">4DB8123C.5070800@csi.uned.es</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
Dear all,<br>
<br>
I'm trying to deploy a cluster using Opennebula at the front end and ESXI<br>
at the compute nodes. Although I've found many emails in the mailing lists<br>
about how to make Opennebula and ESXI work together, I've not been able to<br>
find any manual on how to do this from scratch.<br>
<br>
This is, I have the Opennebula machine installed, and the ESXI compute<br>
node as well, but I don't know what to do to make them work toghether.<br>
<br>
Could you please give me some help?<br>
<br>
Best regards,<br>
<br>
--<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.htm" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.htm</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: firma-correo-electronico.gif<br>
Type: image/gif<br>
Size: 13605 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.gif" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.gif</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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>
End of Users Digest, Vol 38, Issue 107<br>
**************************************<br>
</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>