Patent ID: 8880773

Claim:
A method, comprising: receiving, by a processing device of a source host machine from an end user, a value of a maximum downtime of a virtual machine (VM) that can occur during a live migration of the VM from the source host machine to a destination host machine; determining, by the source host machine during the live migration of the VM, a capacity of a network channel hosting the live migration of the VM to the destination host machine; calculating, by the source host machine, a number of memory pages of the VM that are not to be transferred to the destination host machine as part of the live migration of the VM before the VM is stopped, wherein the calculating of the number of memory pages is in view of the received value of the maximum downtime and the determined capacity of the network channel during the live migration; stopping, by the source host machine, the VM when a number of memory pages remaining to be transferred as part of the live migration is equal to the calculated number of memory pages; and transferring, by the source host machine while the VM is stopped, the memory pages remaining to be transferred to the destination host machine.