Trying to deploy William Lam's Nested ESXi OVA via a Cloud Template (https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u2a_Appliance_Template_v1....
Using
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
ovfProperties:
- key: guestinfo.createvmfs
value: 'false'
- key: guestinfo.dns
value: 192.168.30.130
- key: guestinfo.domain
value: dcdemo.dom
- key: guestinfo.followmac
value: 'true'
- key: guestinfo.gateway
value: 192.168.30.1
- key: guestinfo.hostname
value: myesxi01
- key: guestinfo.ipaddress
value: 192.168.30.190
- key: guestinfo.netmask
value: 255.255.255.0
- key: guestinfo.ntp
value: pool.ntp.org
- key: guestinfo.password
value: VMware1!
- key: guestinfo.ssh
value: 'true'
#- key: guestinfo.ssh_key
# value: ''
#- key: guestinfo.syslog
# value: ''
#- key: guestinfo.vlan
# value: '0'
It deployes, but does not get customized.
Anny suggestions ?
Try to put ovfProperties below properties:
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
image: coreos-4.3.0
flavor: ocp.bootstrap
ovfProperties:
- key: guestinfo.ignition.config.data.encoding
value: base64
Try to put ovfProperties below properties:
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
image: coreos-4.3.0
flavor: ocp.bootstrap
ovfProperties:
- key: guestinfo.ignition.config.data.encoding
value: base64
That helped - thanks.
Hi @xian_
I get an error when deploying the CT
Provisioning operation failed. Error from vCenter: Invalid value 'true' specified for property guestinfo.ssh.
For the key:
- key: guestinfo.ssh
value: 'true'
I have tried changing the key to
True / true / 'True' / 'true'
But still same error - any idea ??
\\Anders
Not sure about the format, Terraform uses "True":
yaml allows Yes, y, ...
Thanks,
I'll try yes, etc...
Didn't help...
Hi, Did you manage to succeed deploying the Nested ESXi OVAs? I'm also struggling to make this work:
ESXi_Hosts:
type: Cloud.vSphere.Machine
properties:
image: Nested ESXi 7.0u2a
count: 3
constraints:
- tag: 'env:vsphere'
name: '${env.deploymentName}'
folderName: 'Labs/${env.deploymentName}'
ovfProperties:
- key: guestinfo.createvmfs
value: false
- key: guestinfo.debug
value: false
- key: guestinfo.dns
value: '192.168.100.200,192.168.101.200'
- key: guestinfo.domain
value: lab.core.pilue.co.uk
- key: guestinfo.gateway
value: 192.168.101.254
- key: guestinfo.hostname
value: '${replace(env.deploymentName + count.index, " ", "-"}'
- key: guestinfo.ipaddress
value: '${self.address}'
- key: guestinfo.netmask
value: 255.255.255.0
- key: guestinfo.ntp
value: 'ntp0.core.pilue.co.uk,ntp1.core.pilue.co.uk'
- key: guestinfo.password
value: '${input.esxi_password}'
- key: guestinfo.ssh
value: true
- key: guestinfo.syslog
value: null
- key: vlan
value: 101
flavor: esxi-small
networks:
- network: '${resource.Management_LAN.id}'
As you found in your original post, the VM deploys, but doesn't get customised.
Many thanks for any advice you can offer!
Hey,
Haven't found a solution yet