VMware Cloud Community
UCL
Enthusiast
Enthusiast

Prioritize vmotion of VM with "Reserve all guest memory (All locked)".

Hello.

When putting an ESXi 6.7 host into maintenance mode in a 6.7 vCenter we would like to have VMs with "Reserve all guest memory (All locked)" moved first since moving them last could result in having no host with sufficient RAM at that time. When that happens these VMs crash.

Where can I do that?

/Peter

Reply
0 Kudos
1 Reply
Gidrakos
Hot Shot
Hot Shot

I don't know of a way to set this automatically, but you can easily do this with PowerCLI:

Get-VMHost [hostname] | Get-VM | Where-Object {$_.ExtensionData.ResourceConfig.MemoryAllocation.Reservation -ne "0" } | Move-VM -destination [hostname]

Reply
0 Kudos