<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>Hi everyone!</div>   I doubt about this problem for a long time and i also prove it using some test case.<div>   Firstly, let's describe the problem as follows:</div><div>   I manage two host machines using opennebula and they both have 4 cores in total. I deploy vm1 which has 2 cores in host1 and deploy vm2 which has 4 cores in host2. After that, I migrate vm1 to host2, to my surprise it success and the free cpu of host2 becomes -2.</div><div><br></div><div>   so i read the source code related to virtual machine's migration, and i find this is no judgement of host resources' capacity in the whole migration process. Source codes as follows:</div><div style="color: rgb(136, 0, 0); "><div style="color: rgb(136, 0, 0); ">                       vm->get_requirements(cpu,mem,disk);</div><div style="color: rgb(136, 0, 0); ">                       hpool->add_capacity(vm->get_hid(),cpu,mem,disk);</div></div><div>   And i also seek what actions does opennebula to test host resources' capacity and find only two places and they also related to scheduler.For example:</div><div>   (1)void Scheduler::match()</div><div>   (2)int VirtualMachineXML::get_host()</div><div>Only the two place call the funstion - test_capacity(cpu,mem,dsk) to judge the host resources.</div><div>   </div><div>   i'm sorry if i don't describe the problem clearly. Hope someone to help and communication with me.</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>