MigrateVirtualSystemToSystem method of the CIM_VirtualSystemMigrationService class
Method to move, migrate or relocate a virtual system to a target system.
Return code description:
Syntax
uint32 MigrateVirtualSystemToSystem(
[in] CIM_ComputerSystem REF ComputerSystem,
[in] CIM_System REF DestinationSystem,
[in] string MigrationSettingData,
[in] string NewSystemSettingData,
[in] string NewResourceSettingData[],
[out] CIM_ComputerSystem REF NewComputerSystem,
[out] CIM_ConcreteJob REF Job
);
Parameters
-
ComputerSystem [in]
-
Source virtual computer system to be migrated.
-
DestinationSystem [in]
-
Destination host system whereto migrate the virtual system.
-
MigrationSettingData [in]
-
String containing an embedded instance of the CIM_VirtualSystemMigrationSettingData class representing migration settings applicable to the migration operation.
-
NewSystemSettingData [in]
-
String containing an embedded instance of the CIM_VirtualSystemSettingData class representing new properties applicable to the virtual system after it is migrated.
-
NewResourceSettingData [in]
-
Array of strings each containing an embedded instance of the CIM_ResourceAllocationSettingData class representing new properties applicable to virtual resources in the scope of the virtual system after it is migrated.
-
NewComputerSystem [out]
-
Reference to an instance of the CIM_ComputerSystem class representing the virtual computer system after it has been migrated.
-
Job [out]
-
If the operation is long running, then optionally a CIM_ConcreteJob representing the job may be returned.
Return value
Returns a 0 on success; otherwise, returns an error.
Return code/value | Description |
---|---|
|
Virtual system was migrated. |
|
Method not supported by implementation. |
|
Virtual system migration failed for unspecified reasons. |
|
Virtual system migration time out; the virtual system state is unknown. |
|
One or more parameters are formally invalid For example, the value of the Destination System parameter does not contain a valid object path. |
|
The source virtual system, the source host system or the target host system are in a state that does allow initiation of the requested virtual system migration; this may be a temporary condition. |
|
One or more input parameters are incompatible as a set, or with respect to the target host. For example the value of the MigrationNewSettingData parameter contains properties that are not supported by the target host system identified by the value of the DestinationSystem parameter. |
|
|
|
|
|
|
|
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8.1 |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\virtualization\v2 |
MOF |
|
DLL |
|