@Sample(name="xvmotion",
description="This sample is used to migrate/relocate VM to another host and datastoreusing the drs placement recommendations")
public class XVMotion
extends ConnectedVimServiceBase
ConnectedVimServiceBase.ConnectionExceptionPROP_ME_NAME, SVC_INST_NAME| Constructor and Description |
|---|
XVMotion() |
| Modifier and Type | Method and Description |
|---|---|
void |
placeVM()
This method is used to relocate the VM to the computing resource
recommended by the DRS.
|
void |
setCluster(java.lang.String clusterName) |
void |
setVmName(java.lang.String name) |
basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection@Option(name="vmname",
description="Name of the virtual machine to be migrated")
public void setVmName(java.lang.String name)
@Option(name="clustername",
description="Target cluster name")
public void setCluster(java.lang.String clusterName)
@Action
public void placeVM()
throws com.vmware.vim25.RuntimeFaultFaultMsg,
com.vmware.vim25.InvalidPropertyFaultMsg,
com.vmware.vim25.FileFaultFaultMsg,
com.vmware.vim25.InsufficientResourcesFaultFaultMsg,
com.vmware.vim25.InvalidDatastoreFaultMsg,
com.vmware.vim25.InvalidStateFaultMsg,
com.vmware.vim25.MigrationFaultFaultMsg,
com.vmware.vim25.TimedoutFaultMsg,
com.vmware.vim25.VmConfigFaultFaultMsg,
com.vmware.vim25.InvalidCollectorVersionFaultMsg
com.vmware.vim25.RuntimeFaultFaultMsgcom.vmware.vim25.InvalidPropertyFaultMsgcom.vmware.vim25.FileFaultFaultMsgcom.vmware.vim25.InsufficientResourcesFaultFaultMsgcom.vmware.vim25.InvalidDatastoreFaultMsgcom.vmware.vim25.InvalidStateFaultMsgcom.vmware.vim25.MigrationFaultFaultMsgcom.vmware.vim25.TimedoutFaultMsgcom.vmware.vim25.VmConfigFaultFaultMsgcom.vmware.vim25.InvalidCollectorVersionFaultMsg