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 class="Apple-style-span" face="'courier new', monospace">oneadmin@custom2:~/src$ onehost list</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> 2 <a href="http://custom7.sns.it">custom7.sns.it</a> default 0 200 200 200 2G 0K off</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> 1 <a href="http://custom6.sns.it">custom6.sns.it</a> default 2 200 200 200 2G 0K on</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">oneadmin@custom2:~/src$ onehost show 1</font></div><div><font class="Apple-style-span" face="'courier new', monospace">HOST 1 INFORMATION </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">ID : 1 </font></div><div><font class="Apple-style-span" face="'courier new', monospace">NAME : <a href="http://custom6.sns.it">custom6.sns.it</a> </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">CLUSTER : default </font></div><div><font class="Apple-style-span" face="'courier new', monospace">STATE : MONITORED </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">IM_MAD : im_vmware </font></div><div><font class="Apple-style-span" face="'courier new', monospace">VM_MAD : vmm_vmware </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">TM_MAD : tm_vmware </font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">HOST SHARES </font></div><div><font class="Apple-style-span" face="'courier new', monospace">MAX MEM : 2096460 </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">USED MEM (REAL) : 0 </font></div><div><font class="Apple-style-span" face="'courier new', monospace">USED MEM (ALLOCATED) : 0 </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">MAX CPU : 200 </font></div><div><font class="Apple-style-span" face="'courier new', monospace">USED CPU (REAL) : 0 </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">USED CPU (ALLOCATED) : 0 </font></div><div><font class="Apple-style-span" face="'courier new', monospace">RUNNING VMS : 2 </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">MONITORING INFORMATION </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">CPUSPEED=1992</font></div><div><font class="Apple-style-span" face="'courier new', monospace">HYPERVISOR=vmware</font></div><div><font class="Apple-style-span" face="'courier new', monospace">TOTALCPU=200</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">TOTALMEMORY=2096460</font></div></div><div><font class="Apple-style-span" 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>