You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure about the current state of the code base here or whether you still need it or not, but for us, we had to extend the "add_extra_nic" method under "vsphere_helpers.rb", and modify "clone_spec.config.deviceChange = changes" to "clone_spec.config.deviceChange += changes" inside the "def build(vm_template, vm_name, options)" method under "clone_spec_builder.rb"
I had to do this about a year ago + added the ability extend the existing hdd drive from template to make it usable for our vcenter environment. So, short answer is that a year ago I think the answer is no - at least not from chef-provisioning-vsphere itself without extending the functionalities from what I know.
How can I specify the IP settings for more than one NIC?
I tried the spec below, but it didn't take it...:
with_machine_options :bootstrap_options => {
num_cpus: 8,
memory_mb: 8192,
host: '10.177.65.252',
network_name: ["VM Network"],
datacenter: 'DAL10',
template_name: 'cheftemplate',
datastore: "datastore3",
additional_disk_size_gb: [50,20],
customization_spec: {
ipsettings: {
ip: '10.176.113.236',
subnetMask: '255.255.255.192',
gateway: ["10.176.113.193"],
dnsServerList: ['10.0.80.11','10.0.80.12']
},
ipsettings: {
ip: '192.176.113.236',
subnetMask: '255.255.255.192',
gateway: ["192.176.113.193"]
},
:domain => 'local'
},
:ssh => {
:user => 'root',
:password => 'password',
:paranoid => false,
}
},
:sudo => false,
:convergence_options => {
:ssl_verify_mode => :verify_none,
:ignore_failure => false
}
Thanks.
The text was updated successfully, but these errors were encountered: