I have 2 instances of ESXi host and vCenter. I installed VIX API package on my Ubuntu 16.04 and tried to clone a VM. To do it i used the sample from documentation. Unfortunately, my program crashes with this message after executing the code below (connection to host and opening vm processes work properly): "The operation is not supported for the specified parameters"
The code:
jobHandle = VixVM_Clone(vmHandle,
VIX_INVALID_HANDLE,
VIX_CLONETYPE_FULL,
"[datastore1] mytemp-21_linked/mytemp-21_linked.vmx",
0,
VIX_INVALID_HANDLE,
NULL,
NULL);
Worth noting, in the doc sample VIX_SERVICEPROVIDER_VMWARE_WORKSTATION host type is used, by i've not found any info about restrictions for ESXi and vCenter (VIX_SERVICEPROVIDER_VMWARE_VI_SERVER type) and it should be supported too. What's wrong with my call?
Also, I saw something similar there, but there are quite bad description of the problem.