VMware Cloud Community
A_Mikkelsen
Expert
Expert
Jump to solution

vRA 8.4 - nested ESXi Cloud Template

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 ?

 

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

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

View solution in original post

8 Replies
xian_
Expert
Expert
Jump to solution

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
A_Mikkelsen
Expert
Expert
Jump to solution

That helped - thanks.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos
A_Mikkelsen
Expert
Expert
Jump to solution

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

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos
xian_
Expert
Expert
Jump to solution

Not sure about the format, Terraform uses "True": 

https://williamlam.com/2020/06/full-ova-ovf-property-support-coming-to-terraform-provider-for-vspher...

yaml allows Yes, y, ...

A_Mikkelsen
Expert
Expert
Jump to solution

Thanks,

I'll try yes, etc...

 

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos
A_Mikkelsen
Expert
Expert
Jump to solution

Didn't help...

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos
mr_bib
Contributor
Contributor
Jump to solution

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!

Reply
0 Kudos
A_Mikkelsen
Expert
Expert
Jump to solution

Hey,

Haven't found a solution yet

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points. Regards A. Mikkelsen
Reply
0 Kudos