Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've gone through a lot of the APIs and searched to no avail. Is there a way to set or add an additional EULA to a VM? Currently I am trying the Ruby client RbVmomi talking to an ESXi 4.0 server. I am able to set other configuration options such as annotations but cannot seem to get the EULA config to stick.

vm.ReconfigVM_Task( :spec => VIM.VirtualMachineConfigSpec( :annotation => 'test', :vAppConfig => VIM.VmConfigSpec( :eula => ['test2']))).wait_for_completion

Has anyone had any luck with setting EULAs on VMs through the vSphere API?

share|improve this question

1 Answer 1

The EULA is typically contained in the OVF section of the VM. (vm.config.vAppConfig)

http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vApp.VmConfigInfo.html

share|improve this answer
    
Isn't that exactly what the sample code does? Setting this value either during import or after import doesn't seem to 'stick'. –  dekz Apr 17 '12 at 21:16
    
Yup. You have to import it as an OVF, afaik. The EULA will be contained in the product section of the OVF. I believe the VM must be off to make the change, and the vApp option in the GUI must be turned on. –  JakeRobinson Apr 19 '12 at 18:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.