Hi,<\/p>\n
I found that vCenter can be deployed with Ansible with IP configuration using the following parameters which are found in the vCenter’s OVF file, which is basically an XML file.<\/p>\n
properties:\n DeploymentOption.value: '{{ vcsa_size }}'\n guestinfo.cis.appliance.net.addr.family: 'ipv4'\n guestinfo.cis.appliance.net.mode: 'static'\n guestinfo.cis.appliance.net.addr: '{{ vcenter_address }}' \n guestinfo.cis.appliance.net.pnid: \"{{ vcenter_hostname }}.{{ domain }}\" \n guestinfo.cis.appliance.net.prefix: '{{ net_prefix }}' \n guestinfo.cis.appliance.net.gateway: '{{ net_gateway }}' \n guestinfo.cis.appliance.net.dns.servers: '{{ dns_servers }}' \n guestinfo.cis.appliance.root.passwd: '{{ vcenter_password }}' \n guestinfo.cis.ceip_enabled: \"False\"\n guestinfo.cis.deployment.autoconfig: 'True' \n guestinfo.cis.vmdir.password: '{{ vcenter_password }}' \n domain: '{{ domain }}'\n searchpath: '{{ searchpath }}'\n<\/code><\/pre>\n
Advertisement
And in Ansible the code inject_ovf_env: true<\/code> needs to be added as well for the IP configuration to be injected during the OVA deployment.<\/p>\nMy question is what part in the OVF file determines if an OVA will accept or allow injecting IP related configuration because I have a StarWind OVA as well which does not accept IP configuration.<\/p>\n
I opened the OVF file of both and its not clear which part determines this.<\/p>\n
Would anyone happen to know this, or where, or what to look for..<\/p>\n
Thanks..<\/p>","upvoteCount":1,"answerCount":11,"datePublished":"2025-07-07T02:47:27.481Z","author":{"@type":"Person","name":"tryllz","url":"https://community.spiceworks.com/u/tryllz"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi,<\/p>\n
I found that vCenter can be deployed with Ansible with IP configuration using the following parameters which are found in the vCenter’s OVF file, which is basically an XML file.<\/p>\n
properties:\n DeploymentOption.value: '{{ vcsa_size }}'\n guestinfo.cis.appliance.net.addr.family: 'ipv4'\n guestinfo.cis.appliance.net.mode: 'static'\n guestinfo.cis.appliance.net.addr: '{{ vcenter_address }}' \n guestinfo.cis.appliance.net.pnid: \"{{ vcenter_hostname }}.{{ domain }}\" \n guestinfo.cis.appliance.net.prefix: '{{ net_prefix }}' \n guestinfo.cis.appliance.net.gateway: '{{ net_gateway }}' \n guestinfo.cis.appliance.net.dns.servers: '{{ dns_servers }}' \n guestinfo.cis.appliance.root.passwd: '{{ vcenter_password }}' \n guestinfo.cis.ceip_enabled: \"False\"\n guestinfo.cis.deployment.autoconfig: 'True' \n guestinfo.cis.vmdir.password: '{{ vcenter_password }}' \n domain: '{{ domain }}'\n searchpath: '{{ searchpath }}'\n<\/code><\/pre>\nAnd in Ansible the code inject_ovf_env: true<\/code> needs to be added as well for the IP configuration to be injected during the OVA deployment.<\/p>\nMy question is what part in the OVF file determines if an OVA will accept or allow injecting IP related configuration because I have a StarWind OVA as well which does not accept IP configuration.<\/p>\n
I opened the OVF file of both and its not clear which part determines this.<\/p>\n
Would anyone happen to know this, or where, or what to look for..<\/p>\n
Thanks..<\/p>","upvoteCount":1,"datePublished":"2025-07-07T02:47:27.547Z","url":"https://community.spiceworks.com/t/ip-configuration-during-ova-deployment-with-ansible/1221431/1","author":{"@type":"Person","name":"tryllz","url":"https://community.spiceworks.com/u/tryllz"}},{"@type":"Answer","text":"
Take a read of this.<\/p>\n