<div dir="ltr">Hi<div><br></div><div style>Here:</div><div style><br></div><div style>Deploy</div><div style><a href="https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L486">https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L486</a><br>
</div><div style><br></div><div style>Migrate (Live or not)</div><div style><a href="https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L603">https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L603</a><br>
</div><div style><br></div><div style>Check function test the capacity, here:</div><div style><a href="https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L224">https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerVirtualMachine.cc#L224</a><br>
</div><div style><br></div><div style>Cheers</div><div style><br></div><div style>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 15, 2013 at 3:09 AM, cmcc.dylan <span dir="ltr"><<a href="mailto:dx10years@126.com" target="_blank">dx10years@126.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;font-size:14px;font-family:arial"><div>Thanks Ruben!</div><div> I read the source code related to cold migration, but i don't find judgement places about CPU. That is to say, the test_capacity function isn't called in the cold migration. Is it right? If you please, can you poit out how opennebula does?</div>
<div> </div><div> Thank you very much!</div><div> <br><br><br><br></div><div></div><div></div><div></div>At 2013-03-14 17:13:17,"Ruben S. Montero" <<a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a>> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">Hi<div><br></div><div>About the first problem (-2). This should be fixed in OpenNebula 3.8.3, are you using that version? If so can you send the output of onehost sh
ow -x <host_id> before and after the migration.</div>
<div><br></div><div>About the second problem (capacity checks). We have included the '--enforce' option to enforce that the host capacity is not exceeded for onevm migrate and livemigrate. (The new onevm resize command also accepts that options so you can enforce that the host capacity is not overcommitted when re-sizing the VM capacity).</div>
<div><br></div><div>Cheers</div><div><br></div><div>Ruben</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 6:07 AM, cmcc.dylan <span dir="ltr"><<a href="mailto:dx10years@126.com" target="_blank">dx10years@126.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div style="line-height:1.7;font-family:arial;font-size:14px">
<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> 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></span></span><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><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</font></span></div>
</blockquote></div><br><br><span title="neteasefooter"><span></span></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula
</div>