VMware {code} Community
sid101020203030
Contributor
Contributor
Jump to solution

Problem in Cloning VM using C/C++

Hi I am trying to clone a Virtual Machine usind C/C++ as a programming language and VIX API call which is

VixHandle VixVM_Clone(VixHandle vmHandle,

VixHandle snapshotHandle,

VixCloneType cloneType,

const char *destConfigPathName,

int options,

VixHandle propertyListHandle,

VixEventProc *callbackProc,

void *clientData);

But I am getting the error code 6 which is VIX_E_NOT_SUPPORTED and the VIX_PROPERTY_JOB_RESULT_HANDLE is showing 3010 which is VIX_E_NO_GUEST_OS_INSTALLED .

I first connected to the VM, then open the VM and then tried to Clone. When trying to clone I am getting the error which is Operation Not Supported.The VM I am trying to Clone is not running i.e., it is powerd off state.

I also tried to Clone using the vmrun but same results.

Can you please help me. Thanks a lot!

0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

VixVM_Clone() is currently only supported with VMware Workstation. It is not supported when used against VMware Server or vSphere.

View solution in original post

0 Kudos
3 Replies
sid101020203030
Contributor
Contributor
Jump to solution

The destConfigPathName I specified = [[datastore]]clonename/clonename.vmx

0 Kudos
admin
Immortal
Immortal
Jump to solution

VixVM_Clone() is currently only supported with VMware Workstation. It is not supported when used against VMware Server or vSphere.

0 Kudos
sid101020203030
Contributor
Contributor
Jump to solution

Hi Matt,

Thanks for your quick response. Any ideas when it's going to be supported for VMWareServer or vSphere.

Thanks a lot!

0 Kudos