Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

The operation could not be performed because the device spec is invalid.

$
0
0


Hello all,


 


After import vm from vCenter to vCD we cannot customize machine property, by we can do power on/off, etc


 


Step to reproduce:


1. create vm in vCenter


2. import to vCD using SDK method


VMware_VCloud_SDK_Extension_VimServer::importVmIntoExistingVApp


3. find new vm in vCloud by name


4. try to customize, for example set new computer name


$message = new VMware_VCloud_API_OVF_Msg_Type();


$settings = new VMware_VCloud_API_GuestCustomizationSectionType(NULL, $message);


$settings->setComputerName('sameNewName');


// were $sdkVm is VMware_VCloud_SDK_Vm


$sdkVm->modifyGuestCustomizationSettings($settings);


error message


"Time:'2015/02/04 12:54:37' Message:'[ 55ef1a5b-942c-4f73-8d8e-225360e07d54 ] The operation could not be performed because the device spec is invalid. Invalid operation for device '0'. vCenter Server task (moref: task-38277) failed in vCenter Server 'vcenter5.5' (ed3ad698-ed67-43f9-be76-31e9f1ef9752).  - Invalid operation for device '0'."


 


same error message when we try to set vm descriptions


$sdkVm->modify(NULL, 'newDescriptions');


 


Such error occur only with vCloud 5.6 (doesn't meter SDK PHP API 5.5 or SDK PHP API 5.6.3). We don’t see such errors working with any previous versions of vCloud Director. 


Thank you in advance for your help!


--


Vladimir


Viewing all articles
Browse latest Browse all 2039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>