VMware Cloud Community
legioon
Enthusiast
Enthusiast

How to assign manual IP Address to VM during deployment with vRA 8 Blueprint

Hi,

I have good experience on vRA7. But, now I'm trying to learn vRA8. I have found a lot of article about Infoblox and vRA8 integration and I have done many scenario with this integration. But, I need to assign manual IP address with user input during deployment.

I can assign IP address of OS during deployment with the following custom properties on vRA 7 ;

VirtualMachine.NetworkN.Name

VirtualMachine.NetworkN.Address

VirtualMachine.NetworkN.SubnetMask

VirtualMachine.NetworkN.Gateway

VirtualMachine.NetworkN.PrimaryDns

VirtualMachine.NetworkN.SecondaryDns

VirtualMachine.NetworkN.DnsSuffix

VirtualMachine.NetworkN.DnsSearchSuffixes

I could not find any documentation about this...

I have created blueprint like this ;

formatVersion: 1

inputs:

  hostname:

    type: string

    title: hostname

resources:

  Cloud_vSphere_Machine_1:

    type: Cloud.vSphere.Machine

    properties:

      image: WinTemplate

      customizationSpec: Demo

      name: '${input.hostname}'

      cpuCount: 1

      totalMemoryMB: 1024

      networks:

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

          assignment: static

          address: 172.22.211.211

          deviceIndex: 0

  Cloud_vSphere_Network_1:

    type: Cloud.vSphere.Network

    properties:

      networkType: existing

      networkCidr: 172.22.0.0/16

      constraints:

        - tag: VLAN100

I'm getting this error ;" Unable to find a valid subnet for network 'Cloud_vSphere_Network_1' of type 'EXISTING' with constraints '[VLAN100]', reasons: [Network profile 'All-Networks' was skipped because [Network [Cloud_vSphere_Network_1] allocation: cannot allocate a network with static IP ranges for profile 'All-Networks'.]] (less) "

Is that possible with vRA 8 or do we have to completely change our understanding of the network with vRA8 ?

Tags (1)
1 Reply
marcethz
Enthusiast
Enthusiast

I asume you are using 8.1 ? I stumbled over the same thing as this was possible in 8.0.1. From 8.1 there must be a IP range present on the fabric networks you are trying to select using the "VLAN100" tag (Even if you not intend to use the internal vRA IPAM). You can actually define any range on the fabric networks. If you override the IP it doesn't get tracked by Cloud Assembly IPAM Endpoint.

Give it a try, I'm pretty shure it will work. 

Reply
0 Kudos