VMware Cloud Community
mulliganesx
Enthusiast
Enthusiast

Issue allocating IP addresses on vRA8

Unable to allocate an IP address.  Continuously receiving a .169 after customization.  I found a related article about including 'assignment: static' but no luck. 

 

Using below code

formatVersion: 1

inputs:

  os-image:

    type: string

    oneOf:

      - title: Windows Server 2016

        const: Windows Server 2016

      - title: Windows Server 2019

        const: Windows Server 2019

    title: Select Operating System

    description: Specify which OS to be deployed on the machine.

  hardware-config:

    type: string

    oneOf:

      - title: Small

        const: Small

      - title: Medium

        const: Medium

      - title: Large

        const: Large

    title: Machine Size

    description: Specify size of the VM.

resources:

  VM1:

    type: Cloud.vSphere.Machine

    properties:

      image: '${input.os-image}'

      customizationSpec: 1_vRA CS 2016

      flavor: '${input.hardware-config}'

      networks:

        - network: '${resource.DC-01-NP.id}'

          assignment: static

  DC-01-NP:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

 

 

formatVersion: 1
inputs:
  os-image:
    type: string
    oneOf:
      - title: Windows Server 2016
        const: Windows Server 2016
      - title: Windows Server 2019
        const: Windows Server 2019
    title: Select Operating System
    description: Specify which OS to be deployed on the machine.
  hardware-config:
    type: string
    oneOf:
      - title: Small
        const: Small
      - title: Medium
        const: Medium
      - title: Large
        const: Large
    title: Machine Size
    description: Specify size of the VM.
resources:
  VM-002:
    type: Cloud.vSphere.Machine
    properties:
      image: '${input.os-image}'
      customizationSpec: 1_VRA ECI 2016
      flavor: '${input.hardware-config}'
      networks:
        - network: '${resource.MIT-INF00-VLAN238-NP.id}'
          assignment: static
  MIT-INF00-VLAN238-NP:
    type: Cloud.vSphere.Network
    properties:
      networkType: existing
0 Kudos
5 Replies
mulliganesx
Enthusiast
Enthusiast

To add to the above thread, I can verify that the deployed VM is displaying on the correct port group, as well as the vNIC displaying the correct port group as well.  Still receiving the 169.x.x.x address 
0 Kudos
xian_
Expert
Expert

Have you setup an IP range in your network profile?

ip_range.jpg

0 Kudos
mulliganesx
Enthusiast
Enthusiast

Yes, I have a network profile created.  I already added a network, and when selecting "Manage IP Ranges" I defined a start IP address and a end IP address. 

I also confirmed the IP range defined do not have a VM assigned to it, as I know this can also impact deployment.  Not sure what I set incorrectly, this seemed simpler in 7.x 

0 Kudos
xian_
Expert
Expert

VMware tools installed on the template?

0 Kudos
mulliganesx
Enthusiast
Enthusiast

Alright I ended up creating the networks from scratch and starting over again.  It may not have liked that I changed the default naming of the "Cloud_vSphere_Network_1" so I deleted what I had and reverted back to basic.  I will stick with the out of the box for the future unless there is a use case for that..

I just ran 2 tests with success... so I was able to figure it out, but thank you for trying to help.  

I will post what I ended up going with below, I also included an additional line for adding storage.  The storage line works great.  

resources:

  Cloud_vSphere_Network_1:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

  VM-001:

    type: Cloud.vSphere.Machine

    properties:

      image: '${input.os-image}'

      customizationSpec: Custom 2016

      flavor: '${input.hardware-config}'

      networks:

        - network: '${resource.Cloud_vSphere_Network_1.id}'

          assignment: static

      attachedDisks:

        - source: '${resource.Cloud_vSphere_Disk_1.id}'

  Cloud_vSphere_Disk_1:

    type: Cloud.vSphere.Disk

    properties:

      capacityGb: 10

      provisioningType: eagerZeroedThick

resources:
  Cloud_vSphere_Network_1:
    type: Cloud.vSphere.Network
    properties:
      networkType: existing
  VM-001:
    type: Cloud.vSphere.Machine
    properties:
      image: '${input.os-image}'
      customizationSpec: 1_VRA ECI 2016
      flavor: '${input.hardware-config}'
      networks:
        - network: '${resource.Cloud_vSphere_Network_1.id}'
          assignment: static
      attachedDisks:
        - source: '${resource.Cloud_vSphere_Disk_1.id}'
  Cloud_vSphere_Disk_1:
    type: Cloud.vSphere.Disk
    properties:
      capacityGb: 10
      provisioningType: eagerZeroedThick
0 Kudos