Being able to identify a VM that is not behaving properly and consuming more host resources than it should is a challenging task. You can certainly monitor resource utilization and react to a misbehaving VM. However, proactively managing VMs at scale will prove to be a very demanding task.
This is where Host Resource Protection comes in. This feature helps to prevent a VM from using more than its share of system resources, by looking for excessive levels of activity and throttling back this misbehaving VM to lessen the impact. This monitoring and enforcement is switched off by default, and can be enabled by using Windows PowerShell.
Host Resource Protection is configured on the Windows Server 2016 Hyper-V host, and simply requires a VM, running either a Windows or Linux operating system, to monitor.
The following step will show you how to configure Host Resource Protection for a given Windows Server 2016 Hyper-V host:
Set-VMProcessor -EnableHostResourceProtection $true
Host Resource Protection automatically restricts host resource availability to VM that display excessive levels of activity, based on an expected pattern of access. The logic here is that the Hyper-V host will proactively try to detect malicious activity, that is, activity you would not expect of a well-behaving operating system, and automatically throttle back the resources given to that VM, to minimize the overall impact on the host.
18.219.22.107