Hi,<div><br></div><div>virsh reports static information for esx guests, instead of the real usage. That's why we decided to report 0 as the monitorization values, see [1]</div><div><br></div><div>Regards</div><div><br>
</div><div>[1] <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2012-February/007744.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2012-February/007744.html</a><br clear="all">--<br>
Carlos Martín, MSc<br>
Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Fri, Jul 6, 2012 at 4:20 AM, 张光鹏 <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">Sorry , I mad a big mistake,
I have edited this file
..remotes/vmm/vmware/vmware_driver.rb , but i forgot.</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">In this method " def poll(deploy_id)
",opennebula return ""STATE=#{state_short} ", </div>
<div style="TEXT-INDENT:2em">Why do you only return to the state, rather than return to the cpu and mem
.</div>
<div style="TEXT-INDENT:2em">I have suggested to use the "virsh dominfo
-x" to obtain the virtual machine CPU and mem
, but was refused.</div>
<div style="TEXT-INDENT:2em">Can we use this data below:</div>
<div style="TEXT-INDENT:2em"> </div>
<blockquote style="TEXT-INDENT:2em;MARGIN-RIGHT:0px" dir="ltr">
<div style="COLOR:#008000;FONT-SIZE:8pt">virsh # dominfo 320</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Id: 320</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Name: cloneWin2008</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">UUID: 42114de9-9275-239f-6f4b-9e19d6eab952</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">OS Type: hvm</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">State: running</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">CPU(s): 2</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Max memory: 2097152 kB</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Used memory: 2097152 kB</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Persistent: yes</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Autostart: disable</div>
<div style="COLOR:#008000;FONT-SIZE:8pt">Managed save: unknown</div></blockquote>
<div style="COLOR:#008000;FONT-SIZE:8pt" dir="ltr"> </div>
<div style="TEXT-INDENT:2em">I intercepted the CPU(s) and Used
memory, and return these data. So ,my vm can show CPU&&MEM:</div>
<blockquote style="MARGIN-RIGHT:0px" dir="ltr">
<div style="TEXT-INDENT:2em">
<div style="COLOR:#008000;FONT-SIZE:8pt"><img src="cid:_Foxmail.0@6BFD8D97-A119-4867-B825-04D58CC2A3EA"></div></div></blockquote>
<div style="TEXT-INDENT:2em;COLOR:#008000;FONT-SIZE:8pt" dir="ltr"> </div>
<div style="text-indent:2em;font-size:12pt" dir="ltr">But
before our data are as follows :</div>
<div style="COLOR:#008000;FONT-SIZE:8pt" dir="ltr">
<img style="WIDTH:888px;min-height:145px" src="cid:_Foxmail.1@EEAE882B-535C-4C7D-9189-1418FAA99232"></div>
<div style="COLOR:#008000;FONT-SIZE:8pt" dir="ltr"> </div>
<div style="text-indent:2em;font-size:12pt" dir="ltr">Hope to be helpful on openenbula .</div>
<hr style="WIDTH:210px;min-height:1px" 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-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>From:</b> <a href="mailto:cmartin@opennebula.org" target="_blank">Carlos Martín
Sánchez</a></div>
<div><b>Date:</b> <a href="tel:2012-07-06%C2%A000" value="+12012070600" target="_blank">2012-07-06 00</a>:12</div>
<div><b>To:</b> <a href="mailto:zhanggp@neusoft.com" target="_blank">张光鹏</a></div>
<div><b>CC:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users</a></div>
<div><b>Subject:</b> Re: [one-users] opennebula3.4.1&&vSphere4.0
CPU&&MEM problem</div></div></div><div><div class="h5">
<div>
<div>Hi,
<div><br></div>
<div>Could you please paste the complete output of 'onevm show' and 'onevm show
-x' ?</div>
<div><br></div>
<div>Regards<br clear="all">--<br>Carlos Martín, MSc<br>Project
Engineer<br>OpenNebula - The Open-source Solution for Data Center
Virtualization
<div><span style="BORDER-COLLAPSE:collapse;FONT-FAMILY:arial,sans-serif;COLOR:rgb(136,136,136);FONT-SIZE:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> |
<a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="BORDER-COLLAPSE:collapse;FONT-FAMILY:arial,sans-serif;COLOR:rgb(136,136,136);FONT-SIZE:13px"><a style="COLOR:rgb(42,93,176)" href="mailto:cmartin@opennebula.org" target="_blank"></a></span></div>
<br><br><br>
<div class="gmail_quote">On Thu, Jul 5, 2012 at 6:22 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,all</div>
<div style="TEXT-INDENT:2em">I encountered a strange problem
.</div>
<div style="TEXT-INDENT:2em">I use the following template to create a virtual machine.</div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">
<div><span style="COLOR:#333300;FONT-SIZE:8pt">NAME = BCI000000a0</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">MEMORY = 512</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">CPU = 1</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">VCPU = 1.0</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">RANK = FREECPU</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">OS = [ BOOT = hd, ARCH = x86_64 ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">DISK = [ IMAGE_ID = 58 ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">INPUT = [ TYPE = tablet,BUS = usb ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">GRAPHICS = [ TYPE = vnc,LISTEN = 0.0.0.0,PORT = -1 ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">NIC = [ MODEL = e1000,NETWORK = 10.150.0.0 ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">CONTEXT = [ VM_UUID = $NAME,HOSTNAME = $NAME,ETH0_IP = "$NIC[IP, NETWORK=\"10.150.0.0\"]",ETH0_NETMASK = 255.255.255.0,ETH0_GATEWAY = 10.150.0.254,ETH0_DNS1 = 8.8.8.8,ETH0_DNS2 = 9.9.9.9,ROOT_PASSWD = "zhanggp@123",FILES = "/opt/nebula/images/init.sh",TARGET = hdc ]</span></div>
<div><span style="COLOR:#333300;FONT-SIZE:8pt">]</span></div></div>
<div style="TEXT-INDENT:2em"> </div>
<div style="TEXT-INDENT:2em">Then , i use onevm show command to list the info
of this vm :</div>
<blockquote style="MARGIN-RIGHT:0px" dir="ltr">
<div style="TEXT-INDENT:2em;COLOR:#333300;FONT-SIZE:8pt">...</div>
<div style="TEXT-INDENT:2em;COLOR:#ff0000;FONT-SIZE:8pt">CPU="1" </div>
<div style="TEXT-INDENT:2em;COLOR:#00ff00;FONT-SIZE:8pt"><span style="COLOR:#ff0000">MEMORY="512" </span>...</div>
<div style="TEXT-INDENT:2em">
<div style="COLOR:#333300;FONT-SIZE:8pt">VIRTUAL MACHINE MONITORING </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">NET_TX : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">NET_RX : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">USED MEMORY : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">USED CPU : 0 </div></div></blockquote>
<div style="TEXT-INDENT:2em;COLOR:#333300;FONT-SIZE:8pt" dir="ltr"> </div>
<div style="TEXT-INDENT:2em">But after a few minutes, a strange thing happened
. The info of the vm was changed:</div>
<blockquote style="TEXT-INDENT:4em;MARGIN-RIGHT:0px" dir="ltr">
<div style="TEXT-INDENT:2em;COLOR:#333300;FONT-SIZE:8pt"><span style="COLOR:#ff0000">CPU="2" ,
<div style="COLOR:#ff0000">MEM="1024"</div>
<div><span style="COLOR:#ff0000">MEMORY="512"</span></div></span></div></blockquote></div>
<div style="TEXT-INDENT:2em">
<div style="COLOR:#333300;FONT-SIZE:8pt">VIRTUAL MACHINE MONITORING </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">NET_TX : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">NET_RX : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">USED MEMORY : 0 </div>
<div style="COLOR:#333300;FONT-SIZE:8pt">USED CPU : 0 </div></div>
<div style="TEXT-INDENT:4em;COLOR:#333300;FONT-SIZE:8pt" dir="ltr"> </div>
<div style="TEXT-INDENT:2em">Please help to explain .</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 src="cid:_Foxmail.2@7985EA29-9724-4346-8F64-343DD531DE2D"></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>
<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>