VMware

This Question is Answered

2 "helpful" answers available (6 pts)
3 Replies Last post: Oct 27, 2009 1:26 PM by sid1010202030…  

Problem in Cloning VM using C/C++ posted: Oct 27, 2009 8:56 AM

Click to view sid101020203030's profile Novice 9 posts since
Oct 6, 2009
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!

Re: Problem in Cloning VM using C/C++

2. Oct 27, 2009 12:51 PM in response to: sid1010202030…
Click to view mattrich's profile Expert 510 posts since
Nov 29, 2006
VixVM_Clone() is currently only supported with VMware Workstation. It is not supported when used against VMware Server or vSphere.

Developer Social Media

Communities