Setting reservations and limits for resource pools
At a conceptual level, reservations and limits make a lot of sense to a vSphere administrator. Reservations are the guarantees to a VM that it will receive at least the specified amount of CPU or RAM as defined by the reservation. Limits are at the other end and limit the VM to not use more than a certain amount of CPU or RAM.
Reservations and Limits can be set on individual VMs, or they can be set on the resource pool and then used by the VMs inside the pool.
Getting ready
To begin this recipe, you will need a PowerCLI window and an active connection to vCenter.
How to do it…
To set reservations and limits for resource pools, perform the following steps:
To set resource configurations on one or more virtual machines, you can use the
Set-VMResourceConfiguration
cmdlet. TheSet-VMResourceConfiguration
cmdlet expects to have a resource configuration piped into it, so you must use aGet-VMResourceConfiguration
cmdlet to retrieve and pipe in an existing...