I keep receiving an error in the client when it attempts to clone the machine:
"The object has already been deleted or has not been completely created"
My code below looks correct:
Vim25Api.VirtualMachineRelocateSpec relSpec = new Vim25Api.VirtualMachineRelocateSpec(); relSpec.diskMoveType ="createNewChildDiskBacking"; relSpec.datastore = ds;//ds is the managed object reference of the datastore Vim25Api.VirtualMachineCloneSpec cloneSpec = new Vim25Api.VirtualMachineCloneSpec(); cloneSpec.powerOn = true; cloneSpec.template = false; cloneSpec.location = relSpec; cloneSpec.snapshot = snapshot.SnapshotObjectReference; connection.Service.CloneVM_Task(parent.VMObjectReference, parent.ParentObjectReference, name, cloneSpec); Any thoughts on why it would not create? Thanks for responses