The idea es a complete duplication (with new MAC's)
The machine is created as follows:
Code: Select all
$newMachine = $this->virtualbox->createMachine(null, $cloneName, '/Clones', $originalMachine->OSTypeId, null);
$newMachine->saveSettings();
$this->virtualbox->registerMachine($newMachine);
$cm = new CloneMode();
$result = $originalMachine->CloneTo($newMachine, $cm->ValueMap['AllStates'], null);
Code: Select all
PHP Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Validation constraint violation: invalid value in element 'mode' in vboxServiceWrappers.php:3465
Thanks in advance