Code: Select all
CloneOptions options[] = { CloneOptions::CloneOptions_Link };
SAFEARRAY * psa;
SAFEARRAYBOUND rgsabound[1];
rgsabound[0].lLbound = 0;
rgsabound[0].cElements = 1;
psa = SafeArrayCreate(VT_INT, 1, rgsabound);
LONG rgIndex = 0;
HRESULT hr = SafeArrayPutElement(psa, &rgIndex, options);
rc=machine->CloneTo(machine_cloned, CloneMode::CloneMode_MachineState,psa, &progress);
how can I clone without creating a new vdi, but different states on different disks.