You can modify host configuration, including advanced settings related to virtual machine migration, and apply them to another host.

Connect to a vSphere server.

1

Change the migration timeout for the ESXHost1 host.

Get-VMHost ESXHost1 | Set-VmHostAdvancedConfiguration -Name Migrate.NetTimeout -Value ( [system.int32] 10 )
2

Enable creation of a checksum of the virtual machines memory during the migration.

Get-VMHost ESXHost1 | Set-VmHostAdvancedConfiguration -Name Migrate.MemChksum -Value ( [system.int32] 1 )
3

Get the ESXHost1 host migration settings.

$migrationSettings = Get-VMHost ESXHost1 | Get-VmHostAdvancedConfiguration -Name Migrate.*
4

Apply the migration settings to ESXHost2.

Set-VmHostAdvancedConfiguration -VMHost ESXHost2 -Hashtable $migrationSettings