Hello,
I execute a getVm() and obtain among all sections two new sections:
the first one :
<ovf:ProductSection ovf:required="true">
<ovf:Property ovf:userConfigurable="false" ovf:value="1" ovf:key="vCloud_bitMask" ovf:password="false" ovf:type="string">
<ovf:Label>vCloud_bitMask</ovf:Label>
</ovf:Property>
[...]
</ovf:ProductSection>
the second one :
<ovfenv:Environment id="" ns8:vCenterId="vm-5794">
<ovfenv:PlatformSection>
<ovfenv:Property value="1" key="vCloud_bitMask"></ovfenv:Property>
[...]
</ovfenv:PropertySection>
[...]
</ovfenv:Environment>
What is the difference between these two sections. It seams that we can find some tags that are the same and others that are different. are some differents uses ?
How can we use these two sections ? I found these functions and classes :
VMware_VCloud_API_OVF_Property
VMware_VCloud_API_OVF_Msg_Type
VMware_VCloud_API_OVF_ProductSection_Type
$sdkVm->modifyProductInfo($product)
withe these 4 line I tried to change someting in the vm but I got an internal server Error
$sdkVm->getProductInfo ()
with that one, I got the ovf:ProductSection
Is there a classe which permit to get / set something about ovfenv:PlatformSection ?
it seam that the ovfenv:PlatformSection correspond to the xml get on the vm by the followning command :
/usr/sbin/vmtoolsd --cmd 'info-get guestinfo.ovfEnv'
can we set a new key on the vm by usr/sbin/vmtoolsd --cmd and get it via the vcloud API ? IF yes what function have I to use to get it ?
can we set a new key via the vcloud Api and get it via /usr/sbin/vmtoolsd --cmd 'info-get guestinfo.ovfEnv' command on the VM? if yes , must we do a reboot of the vm after setting a new key or can we send it on the fly ?
Is there some documentation about all that ?
I know that there are a lot of questions. But we are very interested by those sections. It seams that we are able to interact a lot with a vm deployed with vcloud director with these two sections.
Any ideas ?
Thanks
Yann CONAN