Hi.
I have 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 (VIX API Reference Documentation).
Unfortunately, running the code causes this message after executing the code below:
"The operation is not supported for the specified parameters"
My code is
jobHandle = VixVM_Clone(vmHandle,
VIX_INVALID_HANDLE,
VIX_CLONETYPE_FULL,
"[datastore1] mytemp-21_linked/mytemp-21_linked.vmx",
0,
VIX_INVALID_HANDLE,
NULL,
NULL);
What's wrong with it?
The same situation for VIX_CLONETYPE_LINKED for both ESXi and vCenter instances.