Due to the underlying architecture, migrating virtual machines with vGPU configured will lead to considerably increased VM stun times, usually longer than the default stun timeout of 100 seconds.
Therefore DRS by default handles vGPU VMs in semi-automated mode and will only give recommendations rather than migrating those virtual machines automatically.
Starting with vSphere 8.0 U2, DRS can estimate the Stun Time for a given vGPU VM configuration. When the DRS Cluster Advanced Options are set and the Estimated VM Devices Stun Time for a VM is lower than the VM Devices vMotion Stun Time limit, DRS will automatically migrate the VM.
To enable this functionality, make sure that the infrastructure meets the following requirements:
Once this was confirmed, add the following DRS Cluster Advanced Options:
| Option | Value |
|---|---|
PassthroughDrsAutomation | 1 |
LBMaxVmotionPerHost | 1 |
For vGPU VMs with Stun Times exceeding the vMotion Stun Time Limit (default 100 seconds), a VI Admin can add the following DRS Cluster Advanced Option:
| Option | Value |
|---|---|
VmDevicesStunTimeTolerated | <number of seconds, greater than any VMs Estimated Stun Time in the Cluster> (Default 100 seconds) |
Starting with vCenter Server 7.0 Update 3f, a DRS Cluster Advanced Option was introduced as a way to allow virtual infrastructure admins to override the default DRS behavior and instead to OPT-IN to automated evacuation of vGPU VMs. To enable this functionality, configure the following option:
| Option | Value |
|---|---|
VgpuMMAutomationTimeoutSecs | -1 |
This override comes with the following behavior changes:
Requirements:
For older releases, manually evacuate any running vGPU virtual machines prior to setting the host into maintenance mode. If VM placement issues arise, reduce the DRS automation level to "Partially automated". Refer to Configure Virtual Graphics on vSphere for more information.