Start-VBRQuickMigration
Short Description
Starts Quick Migration of a virtual machine.
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRQuickMigration -Entity <CViVmItem[]> -Server <CHost> [-ResourcePool <CViResourcePoolItem>] [-Datastore <CViDatastoreItem>] [-Folder <CViFolderItem>] [-StoragePolicy <VBRViStoragePolicy>] [-SourceProxy <CViProxy[]>] [-TargetProxy <CViProxy[]>] [-ForceVeeamQM] [-DeleteSorceVmFiles] [-RunAsync] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet starts Quick Migration for a selected virtual machines.
Quick Migration is a service allowing to promptly migrate a VM between ESXi hosts, datastores or both in any state with minimum disruption to business operations and end user access to services.
Note |
|
The cmdlet will not run if the geographic location of the VMs you want to migrate and the destination server location do not match. If you still want to run the cmdlet, use the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Datastore |
Specifies the destination datastore to where you want to migrate the VMs.
Accepts the |
|
False |
Named |
False |
|
DeleteSorceVmFiles |
Defines that the original VM will be deleted upon receiving the heartbeat from the VM on the target host. |
|
False |
Named |
False |
|
Entity |
Specifies the array of virtual machines you want to migrate.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Folder |
Specifies the destination folder to where you want to migrate the VMs.
Accepts the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will start Quick Migration even if the geographic location of the VMs you want to migrate and the destination server location do not match. |
|
False |
Named |
False |
|
ForceVeeamQM |
Defines that the cmdlet will force using Veeam Quick Migration. If omitted, migration process will use VMware VMotion given that the migration scenario and VMware licensing allows it. |
|
False |
Named |
False |
|
ResourcePool |
Specifies the destination resource pool to where you want to migrate the VMs.
Accepts the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the destination server to where you want to migrate the VMs. |
|
True |
Named |
False |
|
SourceProxy |
Specifies the array of source proxies. For best migration performance deploy at least one source backup proxy. Default: automatic selection (recommended).
Accepts the |
|
False |
Named |
False |
|
StoragePolicy |
Specifies the VMware storage policy profile that must be applied to the virtual disks of the VMs.
Accepts the |
False |
Named |
False |
|
|
TargetProxy |
Specifies the array of target proxies. For best migration performance deploy at least one target backup proxy. Default: automatic selection (recommended).
Accepts the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Starting Quick Migration of Selected VM
This command starts Quick Migration of the selected VM with the following settings:
- The source and target proxies are not set enabling the Quick Migration mechanism to select them automatically.
- The
ForceVeeamQMparameter is not set enabling the use of VMware VMotion. - The
DeleteSourceVmFilesparameter is set to enable the clear up of the original VM files upon successful migration. - The
RunAsyncparameter is not set.
|
$vm = Find-VBRViEntity -Name "server01.tech.global" $server = Get-VBRServer -Type ESXi -Name "esx05.tech.local" $pool = Find-VBRViResourcePool -Server $server $datastore = Find-VBRViDatastore -Server $server $folder = Find-VBRViFolder -Server $server Start-VBRQuickMigration -Entity $vm -Server $server -ResourcePool $pool -Datastore $datastore -Folder $folder -DeleteSorceVmFiles |
Perform the following steps:
- Run the
Find-VBRViEntityLooks for VMware objects. cmdlet. Specify theNameparameter value. Save the result to the$vmvariable. - Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Set theESXioption for theTypeparameter. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Find-VBRViResourcePoolReturns VMware resource pools. cmdlet. Set the$servervariable as theServerparameter value. Save the result to the$poolvariable. - Run the
Find-VBRViDatastoreLooks for VMware datastores. cmdlet. Set the$servervariable as theServerparameter value. Save the result to the$datastorevariable. - Run the
Find-VBRViFolderLooks for folders on a specified ESXi host. cmdlet. Set the$servervariable as theServerparameter value. Save the result to the$foldervariable. - Run the
Start-VBRQuickMigrationcmdlet. Specify the following settings:- Set the
$vmvariable as theEntityparameter value. - Set the
$servervariable as theServerparameter value. - Set the
$poolvariable as theResourcePoolparameter value. - Set the
$datastorevariable as theDatastoreparameter value. - Set the
$foldervariable as theFolderparameter value. - Provide the
DeleteSorceVmFilesparameter.
- Set the
Related Commands
Find-VBRViEntityLooks for VMware objects.Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRViResourcePoolReturns VMware resource pools.Find-VBRViDatastoreLooks for VMware datastores.Find-VBRViFolderLooks for folders on a specified ESXi host.Get-VBRViProxyReturns a list of VMware backup proxies.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.