Hi,<div><br></div><div>The reason behind the VM representation (which is the OCA representation of a VM) in the script shows 0 in both cpu and mem is because libvirt doesn't provide it.</div><div><br></div><div>Regards,</div>
<div><br></div><div>-Tino</div><div><br clear="all">--<br>Constantino Vázquez Blanco, MSc <br>Project Engineer<br>OpenNebula - The Open-Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula <br>
<br><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 6:37 AM, zhanggp <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div style="MARGIN:10px">
<div>Hi,</div>
<div style="TEXT-INDENT:2em">I know how the ruby script
""../ONE/var/remotes/im/vmware.d/vmware.rb" work . The script
get vm's info (such as cpu and mem) from database by the host .</div>
<div style="TEXT-INDENT:2em">And i didnot change the script , my vm's cpu and
mem shown "0".</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">So i want to know how openenebula3.4 use CLI
, and where can i find it ? I want to check if openenbula calling CLI correctly
?</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">Thanks.</div>
<div> </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">
<div><span>zhanggp</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>发件人:</b> <a href="mailto:tinova@opennebula.org" target="_blank">Tino
Vazquez</a></div>
<div><b>发送时间:</b> 2012-06-08 21:50</div>
<div><b>收件人:</b> <a href="mailto:zhanggp@neusoft.com" target="_blank">张光鹏</a></div>
<div><b>抄送:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users</a></div>
<div><b>主题:</b> Re: Re: [one-users] one3.4 & vmware hypervisor 's
virtual machine & cpu=0&mem=0</div></div></div><div><div class="h5">
<div>
<div>Hi,
<div><br></div>
<div>What does "vms" contain?</div>
<div><br></div>
<div>Regards,</div>
<div><br></div>
<div>-Tino</div>
<div><br clear="all">--<br>Constantino Vázquez Blanco, MSc <br>Project
Engineer<br>OpenNebula - The Open-Source Solution for Data Center
Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula <br><br><br>
<div class="gmail_quote">On Fri, Jun 8, 2012 at 12:15 PM, 张光鹏 <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
<div style="MARGIN:10px">
<div>Hi,</div>
<div>how can i get vm's value.</div>
<div>I checked this ruby file
"../ONE/var//remotes/im/vmware.d/vmware.rb",and this line return nil
"vms = VirtualMachinePool.new(client) ", so the next cmd will not be
used.</div>
<div> </div>
<div>can you help he resolve this problem?</div>
<div> </div>
<hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">
<div><span>张光鹏</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="PADDING-BOTTOM:8px;PADDING-LEFT:8px;PADDING-RIGHT:8px;BACKGROUND:#efefef;FONT-SIZE:12px;PADDING-TOP:8px">
<div><b>发件人:</b> <a href="mailto:tinova@opennebula.org" target="_blank">Tino Vazquez</a></div>
<div><b>发送时间:</b> 2012-06-08 17:30</div>
<div><b>收件人:</b> <a href="mailto:zhanggp@neusoft.com" target="_blank">张光鹏</a></div>
<div><b>抄送:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users</a></div>
<div><b>主题:</b> Re: [one-users] one3.4 & vmware hypervisor 's virtual
machine & cpu=0&mem=0</div></div></div>
<div>
<div>
<div>
<div>Hi,
<div><br></div>
<div>The values shown in the CLI are for dynamic, current consumption of the
VM. Using virsh is not possible to obtain such values, just the maximum
values, that's why 0 is shown.</div>
<div><br></div>
<div>Regards,</div>
<div><br></div>
<div>-Tino</div>
<div><br clear="all">--<br>Constantino Vázquez Blanco, MSc <br>Project
Engineer<br>OpenNebula - The Open-Source Solution for Data Center
Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @tinova79 | @OpenNebula <br><br><br>
<div class="gmail_quote">On Fri, Jun 8, 2012 at 5:03 AM, 张光鹏 <span dir="ltr"><<a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
<div style="MARGIN:10px">
<div>Hi</div>
<div style="TEXT-INDENT:2em">I use openenbula3.4 management vmware hypervisor<span style="FONT-WEIGHT:bold"></span> 。My host state are on
, my vm state are "runn", but vms's cpu and mem are 0:</div>
<div style="TEXT-INDENT:2em"><img></div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">this file
"../ONE/var/remotes/im/vmware.d/vmware.rb" looks like the
script to detect virtual machine data , but it can not
work .</div>
<div style="TEXT-INDENT:2em">My esx4.1 are all not install ruby.</div>
<div style="TEXT-INDENT:2em">I know a way to detect virtual machine data
,so could opennebula do some work for that?</div>
<div style="TEXT-INDENT:2em"><img></div>
<div> </div>
<div style="TEXT-INDENT:2em">Thanks.</div>
<hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">
<div><span>
<div>
<div>张光鹏</div>
<div>tel: 13718913184</div>
<div>mail: <a href="mailto:zhanggp@neusoft.com" target="_blank">zhanggp@neusoft.com</a></div>
<div>移动互联网事业部</div>
<div><img></div>
<div>东软集团股份有限公司</div>
<div><a href="http://www.neusoft.com" target="_blank">http://www.neusoft.com</a></div>
<div> </div></div></span></div><font face="monospace">---------------------------------------------------------------------------------------------------<br>Confidentiality
Notice: The information contained in this e-mail and any accompanying
attachment(s) <br>is intended only for the use of the intended recipient and
may be confidential and/or privileged of <br>Neusoft Corporation, its
subsidiaries and/or its affiliates. If any reader of this communication is
<br>not the intended recipient, unauthorized use, forwarding,
printing, storing, disclosure or copying <br>is strictly prohibited,
and may be unlawful.If you have received this communication in error,please
<br>immediately notify the sender by return e-mail, and delete the original
message and all copies from <br>your system. Thank you.
<br>---------------------------------------------------------------------------------------------------</font></div><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></blockquote></div><br></div></div></div><font face="monospace">---------------------------------------------------------------------------------------------------<br>Confidentiality
Notice: The information contained in this e-mail and any accompanying
attachment(s) <br>is intended only for the use of the intended recipient and
may be confidential and/or privileged of <br>Neusoft Corporation, its
subsidiaries and/or its affiliates. If any reader of this communication is
<br>not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying <br>is strictly prohibited, and may be
unlawful.If you have received this communication in error,please
<br>immediately notify the sender by return e-mail, and delete the original
message and all copies from <br>your system. Thank you.
<br>---------------------------------------------------------------------------------------------------</font></div></div></div></blockquote></div><br></div></div></div><font face="monospace">---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) <br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of <br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is <br>
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying <br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please <br>
immediately notify the sender by return e-mail, and delete the original message and all copies from <br>
your system. Thank you. <br>
---------------------------------------------------------------------------------------------------</font></div></div></div>
</blockquote></div><br></div>