How to set vApp options in rbvmomi2 #51
Replies: 2 comments 9 replies
-
|
Edit: this is a similar request as vmware/govmomi#2261, just for the ruby lib, not for go. I just tried it again with: RbVmomi::VIM.VirtualMachineConfigSpec(
annotation: 'Base template: ' + host['template'] + "\n" +
'Creation time: ' + Time.now.strftime('%Y-%m-%d %H:%M') + "\n\n" +
'CI build link: ' + (ENV['BUILD_URL'] || 'Deployed independently of CI') +
'department: ' + @options[:department] +
'project: ' + @options[:project],
extraConfig: [
{
key: 'guestinfo.ovfenv.test1',
value: 'foo',
},
{
key: 'guestinfo.test2',
value: 'bar',
},
],
)And |
Beta Was this translation helpful? Give feedback.
-
|
@agrare Can you take a look here? @bastelfreak I moved this discussion from the general ManageIQ discussions page to this one specifically for rbvmomi2 (you didn't miss it - I just created it :D ) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
(I'm not a vmware expert, so my terminology might be wrong)
I maintain beaker-vcloud and beaker-vmware. Those tools basically create short-lived VMs where some integration tests are executed. we use the following to create a VM from a template:
https://github.com/voxpupuli/beaker-vcloud/blob/e9ab7fc8734066338414abe18df537e48f1ab36a/lib/beaker/hypervisor/vcloud.rb#L74-L163
Now I need to adjust it to pass vApp options as well. Is that supported by rbvmomi2 at the moment? I'm already passing guest information like this:
(https://github.com/voxpupuli/beaker-vcloud/blob/e9ab7fc8734066338414abe18df537e48f1ab36a/lib/beaker/hypervisor/vcloud.rb#L82-L85)
But that's not exactly the same as vApp options? I can quest for the above attribute via
vmtoolsd --cmd "info-get guestinfo.hostname". But vApp Options are at theguestinfo.ofvenv.*namespace? And I cannot write them viaextraConfig: [ { key: 'guestinfo.ovfenv.hostname', value: host['vmhostname'], },],?Beta Was this translation helpful? Give feedback.
All reactions