Events
Apr 29, 2 PM - Apr 30, 7 PM
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Read this article to learn about enabling dynamic optimization (DO) and power optimization for virtual machines (VMs) in System Center Virtual Machine Manager (VMM). The article includes features overview, instructions for setting up BMC for power optimization, and describes how to enable and run these features.
Note
Note
Dynamic optimization: Using dynamic optimization, VMM performs live migration of VMs and VHDs within a host cluster. The migration is based on the settings you specify to improve load balancing among hosts and cluster shared storage (cluster shared volumes (CSVs), file shares) and to correct the placement issues for VMs.
VMM supports compute dynamic optimization (both compute and storage in VMM 2019 and later) and power optimization on Hyper-V host clusters. Compute dynamic optimization and power optimization is also supported on VMware host clusters in the VMM fabric that support live migration.
VMM supports compute and storage dynamic optimization and power optimization on Hyper-V host clusters. Compute dynamic optimization and power optimization is also supported on VMware host clusters in the VMM fabric that support live migration.
Note the following information before you start using DO.
Node fairness is a new feature in Windows Server 2016.
It identifies cluster nodes with light loads, and distributes VMs to those nodes to balance load. This is similar to VMM's dynamic optimization. To avoid potential performance issues, dynamic optimization and node fairness must not work together. To ensure this doesn't happen, VMM disables node fairness in all clusters in a host group for which dynamic optimization is set to automatic. If you enable node fairness outside the VMM console, VMM will turn it off the next time that dynamic optimization refreshes. If you do want to use node fairness, disable dynamic optimization and then manually enable node fairness.
For hosts with BMC that support IMPI 1.5/2.0, DCMI 1.0, or SMASH 1.0 over WS-Management, you can configure BMC settings as follows:
Select Fabric > Servers > All Hosts and select the host group that you want to configure.
With the host group selected, select Folder > Properties group > Properties.
In the host group properties, select Dynamic Optimization.
In Specify dynamic optimization settings, clear the Use Dynamic Optimization settings from the parent host group checkbox.
In Aggressiveness, select High, Medium, or Low.
Note
In VMM 2019 and later, VM aggressiveness values are replaced from low/medium/high scale to integer scale 1 to 5.
1 is the lowest degree of aggressiveness, and 5 is the highest.
VM aggressiveness determines the amount of load imbalance that is required to initiate a migration during dynamic optimization.
Disk space aggressiveness determines the amount of free storage space below disk space threshold that is required to migrate VHDs to other cluster shared storage during dynamic optimization.
When you configure frequency and aggressiveness for dynamic optimization, you must try to balance the resource cost of additional migrations against the advantages of balancing load among hosts in a host cluster. Initially, you might accept the default value of Medium. After you observe the effects of dynamic optimization in your environment, you can increase the aggressiveness.
When you configure frequency and aggressiveness for dynamic optimization, you must try to balance the resource cost of additional migrations against the advantages of balancing load among hosts in a host cluster. Initially, you might accept the default value of 3. After you observe the effects of dynamic optimization in your environment, you can increase the aggressiveness.
To help conserve energy by having VMM turn off hosts when they aren't needed and turn them on again when they're needed, configure power optimization for the host group. Power optimization is only available when virtual machines are being migrated automatically to balance load.
To periodically run dynamic optimization on qualifying host clusters in the host group, enter the following settings:
To turn on power optimization on the host group, select the Enable power optimization checkbox. Select OK again to save your changes.
Note
If there is a mismatch of disk space warning levels between host groups having the same file share, it can result in multiple migrations to and from that file share and can impact storage DO performance. We recommend you to not do a file share across different host groups where storage dynamic optimization is enabled.
You can run dynamic optimization on demand on a host cluster. To do this, dynamic optimization doesn't need to be configured on the parent host group.
Open Fabric > Servers > Host Groups and navigate to the host cluster.
To perform compute resource load balancing, select Optimize hosts. To perform storage load balancing across cluster shared storage, select Optimize disks.
To Optimize hosts: VMM performs a dynamic optimization review to determine whether VHDs can be migrated to improve load balancing in the host cluster. If migration of VMs can improve load balancing, VMM displays a list of VMs that are recommended for migration, with the current and target hosts indicated. The list excludes any hosts that are in maintenance mode in VMM and any virtual machines that aren't highly available.
To Optimize Disk Space: VMM performs a dynamic optimization review to determine whether VHDs can be migrated to meet the free storage space threshold (disk space) while considering aggressiveness set in the Dynamic Optimization page. Dynamic Optimization will only be triggered when any cluster shared storage violates the disk space threshold set. If migration of VHDs can help free the storage space threshold in shared storage in the cluster, VMM displays a list of VHDs that are recommended for migration, with the current and target storage space indicated. VHDs will only migrate to another shared storage with the same storage classification.
Select Migrate.
Note
If VHDs are migrated between one storage type to another (for example, from a CSV to NAS file share), the storage migration will be slow. If the storage optimization does not return a list of VHDs to migrate even when the threshold and aggressiveness criteria are met:
Learn about provisioning VMs.
Events
Apr 29, 2 PM - Apr 30, 7 PM
Join the ultimate Windows Server virtual event April 29-30 for deep-dive technical sessions and live Q&A with Microsoft engineers.
Sign up nowTraining
Module
Optimize Costs with Azure Virtual Desktops Autoscale - Training
Learn how to optimize deployment and infrastructure costs using Azure Virtual Desktops native scaling tool Autoscale. Learn how to configure Autoscale so that session host VMs are only running when you need them to be.
Certification
Microsoft Certified: Windows Server Hybrid Administrator Associate - Certifications
As a Windows Server hybrid administrator, you integrate Windows Server environments with Azure services and manage Windows Server in on-premises networks.