Virtual machine migration
AssigneeMicrosoft Corporation
InventorsDharshan Rangegowda, Robert Fries
Life of this patent
Estimating the term…
Abstract
Virtual machine migration is described. In embodiment(s), a virtual machine can be migrated from one host computer to another utilizing LUN (logic unit number) masking. A virtual drive of the virtual machine can be mapped to a LUN of a storage array. A LUN mask associates the LUN with a host computer. The LUN mask can be changed to unmask the LUN to a second computer to migrate the virtual machine from the host computer to the second computer.
Claims16
A method for virtual machine migration, the method comprising:
- initiating restartable migration tasks for the virtual machine migration, the restartable migration tasks comprising:
- identifying one or more virtual drives of a virtual machine that are each mapped to a different respective LUN (logical unit number) of a storage array having one or more LUNs;
- mapping the one or more virtual drives to a mapping file that is stored on one of the LUNs of the storage array;
- unmasking each of the one or more LUNs to migrate the virtual machine from a first host computer to a second host computer;
- creating the virtual machine on the second host computer according to the mapping file, the one or more virtual drives each being mapped from the different respective LUN of the storage array to the virtual machine on the second host computer;
- deleting the virtual machine from the first host computer;
- and
- disassociating the one or more virtual drives from the first host computer after deleting the virtual machine from the first host computer;
- and
- restarting from one of the restartable migration tasks for the virtual machine migration if one of the identifying, mapping, unmasking, creating, deleting, or disassociating restartable migration tasks fails to be completed.
A computer system, comprising:
- at least a memory and a processor to implement a virtual manager configured to initiate and manage migration of a virtual machine from a first host computer to a second host computer, the virtual machine configured to execute on the first host computer;
- a LUN (logical unit number) of a storage array that is mapped to a virtual drive of the virtual machine;
- a mapping file that maps the virtual drive of the virtual machine to the LUN;
- a LUN mask configured to associate the LUN with the first host computer of the virtual machine, the LUN mask being configurable to unmask the LUN to migrate the virtual machine from the first host computer to the second host computer;
- and
- the virtual manager further configured to:
- create the virtual machine on the second host computer according to the mapping file;
- delete the virtual machine from the first host computer;
- and
- disassociate the virtual drive from the first host computer after the virtual machine is deleted from the first host computer.
One or more computer-readable storage media comprising computer-executable instructions that, when executed, direct a virtual manager to:
- implement restartable migration tasks for virtual machine migration that include to:
- initiate creation of one or more LUNs (logical unit numbers) on a storage array;
- unmask the one or more LUNs to the virtual manager to associate the one or more LUNs with the virtual manager;
- initiate creation of a virtual machine from a virtual machine template, the virtual machine having an associated one or more virtual drives and configured to execute on a host computer;
- unmask the one or more LUNs to map each of the one or more LUNs from the virtual manager to a different respective virtual drive of the virtual machine on the host computer;
- initiate migration of the virtual machine from the host computer to an additional host computer;
- delete the virtual machine from the host computer after the virtual machine is migrated from the host computer to the additional host computer;
- and
- disassociate the one or more virtual drives from the host computer after the virtual machine is deleted from the host computer;
- and
- restart from one of the restartable migration tasks for the virtual migration if one of the restartable migration tasks fails to be completed.
Dependencies are inferred from the claim text.