Sunday, April 26, 2015

VM Resource Metering


'VM Resource Metering' is a feature in Windows Server 2012 R2, which will help us to keep track of the resources consumed by virtual machines. By default this feature is disabled.

You can enable metering for a particular VM using the PowerShell command : Get-VM <virtual machine name> |  Enable-VMResourceMetering

If you want to enable it for all VMs, you can use : Get-VM | Enable-VMResourceMetering

You can view the resource usage list of all virtual machines using : Get_VM | Measure-VM

You can sort the list using : Get_VM | Measure-VM |sort AvgRAM –descending

No comments:

Post a Comment