次の方法で共有


MigrateVirtualSystemToSystem method of the Msvm_VirtualSystemMigrationService class

Migrates a virtual system to target system.

Syntax

uint32 MigrateVirtualSystemToSystem(
  [in]      CIM_ComputerSystem REF ComputerSystem,
  [in]      CIM_System         REF DestinationSystem,
  [in]      string                 MigrationSettingData,
  [in]      string                 NewSystemSettingData,
  [in]      string                 NewResourceSettingData[],
  [in, out] CIM_ComputerSystem REF NewComputerSystem,
  [in, out] CIM_ConcreteJob    REF Job
);

Parameters

ComputerSystem [in]

A reference to the source virtual system to migrate.

DestinationSystem [in]

The host system that will receive the migration. The format of this property is specified in the DestinationHostFormatsSupported property of the CIM_VirtualSystemMigrationCapabilities instance that is associated with the migration operation.

MigrationSettingData [in]

An embedded instance of the CIM_VirtualSystemMigrationSettingData class that represents the settings for the migration operation.

NewSystemSettingData [in]

An embedded instance of the CIM_VirtualSystemSettingData class that represents new properties for the virtual system after migration is complete.

NewResourceSettingData [in]

Array that contains embedded instances of the CIM_ResourceAllocationSettingData class that represents new properties for virtual resources of the virtual system after migration is complete.

NewComputerSystem [in, out]

Reference to an instance of the CIM_ComputerSystem class representing the virtual computer system after it has been migrated.

Job [in, out]

If the operation is to run asynchronously, this parameter will return a job for the operation.

Return value

The possible return values are:

0

Completed with No Error

1

Not Supported

2

Failed

3

Timeout

4

Invalid Parameter

5

Invalid State

6

Incompatible Parameters

7 4095

DMTF Reserved

4096

Method Parameters Checked - Job Started

4097 32767

Method Reserved

32768 65535

Vendor Specific

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

Msvm_VirtualSystemMigrationService