Hi,<div><br></div><div>You have to add also de CPU capacity for the VM (apart from the number of virtual cpus CPUs). The CPU value is used at the allocation phase. However you are specifying MEMORY and should be included in the allocated memeory (USED MEMORY in onehost show) So I guess there should be other problem with your template.</div>
<div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 10:50 AM, Luigi Fortunati <span dir="ltr"><<a href="mailto:luigi.fortunati@gmail.com">luigi.fortunati@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I can post the VM template content on monday. However, as far as I remember, the vm template was really simple:<div><font face="'courier new', monospace">NAME="Debian"</font></div>
<div><font face="'courier new', monospace">VCPU= 2</font></div><div><font face="'courier new', monospace">MEMORY=1024</font></div><div><font face="'courier new', monospace">DISK=[IMAGE="Debian5-i386"]</font></div>
<div><font face="'courier new', monospace">OS=[ARCH=i686]</font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">The VMs can boot and run, I can log on console through vSphere Client on the newly created VMs.</font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">I noticed that if you don't declare the number on VCPU the VM doesn't get scheduled on a cluster node. This option seems mandatory but I didn't find any mention about it on the documentation.</font></div>
<div><font face="arial, helvetica, sans-serif">Another thing that seems mandatory is declaring the cpu architecture as i686, otherwise OpenNebula will return error when writing the deployment.0 file.</font></div>
<div><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 5:42 PM, Ruben S. Montero <span dir="ltr"><<a href="mailto:rubensm@dacya.ucm.es" target="_blank">rubensm@dacya.ucm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div>I am not sure this is related to the VMware monitoring... Can you send the VM Templates?</div><div><br></div><div>Thanks</div><div><br></div><div>Ruben<br><br><div class="gmail_quote"><div><div></div>
<div>On Thu, Feb 3, 2011 at 5:10 PM, Luigi Fortunati <span dir="ltr"><<a href="mailto:luigi.fortunati@gmail.com" target="_blank">luigi.fortunati@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>Hi,<div>I noticed a serious problem about the usage of VMWare ESXi 4.1 and OpenNebula 2.0.1.</div>
<div>I'm actually using the VMWare driver addon which can be found on the opennebula website (ver. 1.0) and libvirt (ver. 0.8.7).</div>
<div>It happens that OpenNebula can't get information about the usage of resources on the cluster nodes.</div><div>By running 2 VM (each one requires 2 VCPU and 1 GB of memory) and executing some commands I get this output.</div>
<div><br></div><div><div><font face="'courier new', monospace">oneadmin@custom2:~/src$ onehost list</font></div><div><font face="'courier new', monospace"> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT</font></div>
<div><font face="'courier new', monospace"> 2 <a href="http://custom7.sns.it" target="_blank">custom7.sns.it</a> default 0 200 200 200 2G 0K off</font></div><div><font face="'courier new', monospace"> 1 <a href="http://custom6.sns.it" target="_blank">custom6.sns.it</a> default 2 200 200 200 2G 0K on</font></div>
<div><font face="'courier new', monospace">oneadmin@custom2:~/src$ onehost show 1</font></div><div><font face="'courier new', monospace">HOST 1 INFORMATION </font></div>
<div><font face="'courier new', monospace">ID : 1 </font></div><div><font face="'courier new', monospace">NAME : <a href="http://custom6.sns.it" target="_blank">custom6.sns.it</a> </font></div>
<div><font face="'courier new', monospace">CLUSTER : default </font></div><div><font face="'courier new', monospace">STATE : MONITORED </font></div>
<div><font face="'courier new', monospace">IM_MAD : im_vmware </font></div><div><font face="'courier new', monospace">VM_MAD : vmm_vmware </font></div>
<div><font face="'courier new', monospace">TM_MAD : tm_vmware </font></div><div><font face="'courier new', monospace"><br></font></div>
<div><font face="'courier new', monospace">HOST SHARES </font></div><div><font face="'courier new', monospace">MAX MEM : 2096460 </font></div>
<div><font face="'courier new', monospace">USED MEM (REAL) : 0 </font></div><div><font face="'courier new', monospace">USED MEM (ALLOCATED) : 0 </font></div>
<div><font face="'courier new', monospace">MAX CPU : 200 </font></div><div><font face="'courier new', monospace">USED CPU (REAL) : 0 </font></div>
<div><font face="'courier new', monospace">USED CPU (ALLOCATED) : 0 </font></div><div><font face="'courier new', monospace">RUNNING VMS : 2 </font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace">MONITORING INFORMATION </font></div>
<div><font face="'courier new', monospace">CPUSPEED=1992</font></div><div><font face="'courier new', monospace">HYPERVISOR=vmware</font></div><div><font face="'courier new', monospace">TOTALCPU=200</font></div>
<div><font face="'courier new', monospace">TOTALMEMORY=2096460</font></div></div><div><font face="'courier new', monospace"><br></font></div><div>As you can see OpenNebula is unable to get correct information about the usage of resources on the cluster nodes.</div>
<div>As these informations are used by the VM scheduler, OpenNebula is unable to schedule the VM correctly.</div><div>I tried to create several VM and all of them were placed on the same host even if the latter was unable to satisfy the resource requirements of all the VMs.</div>
<div>I think that this problem is strongly related to libvirt as OpenNebula use it to recover information about hosts and vm.</div><div><br></div><div>Do you get the same behavior? Do you know if there is a way to solve this big issue?</div>
<div><br>-- <br>Luigi Fortunati<br>
</div>
<br></div></div>_______________________________________________<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><br clear="all"><br>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>Luigi Fortunati<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>