Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 293210

Re: Linked Clones Question

$
0
0

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 293210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>