Virtual Hard Disk free disk space

Microsoft.Windows.HyperV.VirtualDrive.FreeSpaceMonitor (UnitMonitor)

Monitors free logical disk space for virtual hard disks.

Knowledge Base article:

Summary

This monitor tracks the amount of free disk space on a logical disk that contains a dynamically expanding or differencing virtual hard disk.

It changes the state according to the Warning and Error State Disk Space parameter values that can be re-configured. The default values are 2 GB for Warning and 200 MB for Error state. Hyper-V will pause the virtual machines when the available free disk space is less than 200 MB.

Causes

This monitor will cause the following states:

Resolutions

Element properties:

TargetMicrosoft.Windows.HyperV.Discovery.VirtualDrive
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.HyperV.DiskFreeSpaceMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.HyperV.VirtualDrive.FreeSpaceMonitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="HVDisc!Microsoft.Windows.HyperV.Discovery.VirtualDrive" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="HVLib!Microsoft.Windows.HyperV.DiskFreeSpaceMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<OperationalStates>
<OperationalState ID="EnoughSpace" MonitorTypeStateID="FreeSpaceAvailable" HealthState="Success"/>
<OperationalState ID="PartialSpace" MonitorTypeStateID="PartialSpaceAvailable" HealthState="Warning"/>
<OperationalState ID="NoSpace" MonitorTypeStateID="NoSpaceAvailable" HealthState="Error"/>
</OperationalStates>
<Configuration>
<VirtualDriveId>$Target/Property[Type="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent"]/DeviceId$</VirtualDriveId>
<WarningSize>2048</WarningSize>
<ErrorSize>200</ErrorSize>
</Configuration>
</UnitMonitor>