Use migration with Storage vMotion to relocate the configuration file of a virtual machine and its virtual disks while the virtual machine is powered on.
You can change the virtual machine host during a migration with Storage vMotion.
Verify that your system satisfies the requirements for Storage vMotion. See "Storage vMotion Requirements and Limitations" in the vCenter Server and Host Management documentation.
For migration of a virtual machine with NVIDIA vGPU, verify that the ESXi host on which the virtual machine runs has a free vGPU slot. Also, verify that the
vgpu.hotmigrate.enabledadvanced setting is set to
true. For more information about configuring vCenter Server advanced settings, see "Configure Advanced Settings" in the vCenter Server and Host Management documentation.
- Right-click the virtual machine and select Migrate.
- To locate a virtual machine, select a data center, folder, cluster, resource pool, host, or vApp.
- Click the Virtual Machines tab.
- Click Change storage only and click Next.
- Select the format for the virtual machine's disks.
Same format as source
Use the same format as the source virtual machine.
Thick Provision Lazy Zeroed
Create a virtual disk in a default thick format. Space required for the virtual disk is allocated during creation. Any data remaining on the physical device is not erased during creation. Instead, it is zeroed out on demand on first write from the virtual machine.
Thick Provision Eager Zeroed
Create a thick disk that supports clustering features such as Fault Tolerance. Space required for the virtual disk is allocated at creation time. In contrast to the thick provision lazy zeroed format, the data remaining on the physical device is zeroed out during creation. It might take longer to create disks in this format than to create other types of disks.
Use the thin provisioned format. At first, a thin provisioned disk uses only as much datastore space as the disk initially needs. If the thin disk needs more space later, it can expand to the maximum capacity allocated to it.
- Select a virtual machine storage policy from the VM Storage Policy drop-down menu.
Storage policies specify storage requirements for applications that run on the virtual machine. You can also select the default policy for vSAN or Virtual Volumes datastores.Important:
If the virtual machine hard disks use different storage policies, the new policy that you select only applies to non-PMem hard disks. PMem hard disks are migrated to the host-local PMem datastore of the destination host.
- Select the datastore location where you want to store the virtual machine files.
Store all virtual machine files in the same location on a datastore.
Select a datastore and click Next.
Store all virtual machine files in the same Storage DRS cluster.
Select a Storage DRS cluster.
To disable Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster.
Store virtual machine configuration files and disks in separate locations.
You can use the Advanced option to downgrade from or upgrade to PMem storage.
For the virtual machine configuration file and for each virtual disk, select Browse, and select a datastore or Storage DRS cluster.Note:
Configuration files cannot be stored on a PMem datastore.
If you selected a Storage DRS cluster and do not want to use Storage DRS with this virtual machine, select Disable Storage DRS for this virtual machine and select a datastore within the Storage DRS cluster.
- On the Ready to complete page, review the details and click Finish.
vCenter Server moves the virtual machine to the new storage location. Names of migrated virtual machine files on the destination datastore match the inventory name of the virtual machine.
Event messages appear in the Events tab. The data displayed on the Summary tab shows the status and state throughout the migration. If errors occur during migration, the virtual machines revert to their original states and locations.