hello,

I want to change the method vmCreate(Vm vm) defined in Host.java in clloudsim toolkit, i want to change, the if condition defined in the method, 

if (!getVmScheduler().allocatePesForVm(vm, vm.getCurrentRequestedMips())) {

Log.printLine("[VmScheduler.vmCreate] Allocation of VM #" + vm.getId() + " to Host #" + getId()

+ " failed by MIPS");

getRamProvisioner().deallocateRamForVm(vm);

getBwProvisioner().deallocateBwForVm(vm);

return false;

whenever this code is executed, i want to allocate the vm to the next available host according to my vm allocation policy.

what shoud i add to this code, so that all the vms are allocated to the remaining hosts.

More Ankita Jiyani Mangtani's questions See All
Similar questions and discussions