Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

Social List

How VM is allocated to host?

  • VmAllocationPolicySimple class is used for allocating the vm. It is the subclass of VmAllocationPolicy which is an abstract class. VmAllocationPolicySimple allocates vm to the host who’s PEs is less in use.
  • public VmAllocationPolicySimple(List<? Extends Host> list)</p>

    // creates VmAllocationPolicySimple object

    public boolean allocateHostForVm(Vm vm)

    //Allocates a host for the given Vm.

    public boolean allocateHostForVm(Vm vm, Host host)

    // Allocates a specified host for the given Vm.