• Skip to primary navigation
  • Skip to content

www.open902.com

My own Knowledge Base made public ..

  • Home
  • vRealize Automation 7
    • vRA & vRB 7.2
      • Installation
        • vRA 7.2 – Installation
        • vRA 7.2 – Unattended Enterprise Install
        • vRA 7.2 – Unattended Install Answer File Generator
        • vRB 7.2 – Installation
      • Configuration
        • vRA 7.2 – Initial Configuration
        • vRA 7.2 – Endpoints and AD Integration
        • vRA 7.2 – Fabric and Business Groups
        • vRA 7.2 – Reservations, Reservation Policies and Network Profiles
        • vRA 7.2 – Blueprints and Entitlements
        • vRA 7.2 – Email Config and Approval Policies
      • Advanced Configuration
        • vRA 7.2 – Guest Agent and Software Components
        • vRA 7.2 – Custom Property RegEx
        • vRA 7.2 – Make IP in Network Profile unavailable for deployments
      • Integrations
        • vRA 7.2 – Azure Integration
        • vRA 7.2 – vRB 7.2 Configuration
        • vRB Cloud without vRA by using vIDM
    • vRA 7.0 & 7.1
      • Installation & Configuration
        • vRealize Automation 7 – Simple install
        • vRealize Automation 7 – Enterprise install
        • Upgrade vRealize Automation 7.0 to 7.0.1
        • vRA7 – Initial Configuration
        • vRA7 – Endpoint
        • vRA7 – Business Groups
        • vRA7 – AD Integration
        • vRA7 – Fabric Group
        • vRA7 – Network Profile
        • vRA7 – Reservations
        • vRA7 – IaaS Blueprint
        • vRA7 – Mail and Approvals
      • Advanced Configuration
        • vRA7 – Customize Hostname, VLAN and IP during deployment
        • vRA7 – Custom Property Relationships using Actions
        • vRA7 – vRealize Orchestrator 7
        • vRA7 – VAMI Certificate
        • vRA7 – Gugent on Linux
        • vRA7 – Gugent on Windows
        • vRA7 – Import Unmanaged Virtual Machines from vSphere
      • Integrations
        • vRA7 – NSX 6 Integration
        • Ubiquiti EdgeRouter X, NSX and vRealize Automation in network kinda harmony
        • vRA7 – vRealize Business Standard
        • vRealize Business for Cloud – Change Time zone
        • vRB Cloud without vRA by using vIDM
      • Troubleshooting
        • vRA7 – Delete stuck ‘In Progress’ Deployments
        • vRA 7 – Remove Stuck Approval Process
        • Remove Orphaned Network Profiles
        • vRA7 – Remove Stuck or Orphaned Managed Machines
  • vRA / vCAC 6
    • Installation
      • 1. Requirements
      • 2. Identity Appliance
      • 3. vCAC Appliance
      • 4. IaaS Server
    • Configuration
      • 5. Add a Tenant
      • 6. Agents & Endpoints
      • 7. Resource Allocations
      • 8. Blueprints
      • 9. Services & Catalogs
      • 10. Entitlements & Test
    • Advanced Configuration
      • Enable vCenter Orchestrator in vCAC
      • Configure External vCenter Orchestrator for vCAC
      • vCAC – Create Active Directory Endpoint & Test
      • vCAC – Refresh Inventory
      • vCAC – SMTP Settings
  • NSX
    • Ubiquiti EdgeRouter X, NSX and vRA7 Configuration
    • NSX 6 Integration into vRA7
    • NSX Authentication in Web Client using Sub-Domain users
  • vCloud Director 8.x
    • Install vCloud Director 8.0 for SP
    • NSX 6.2 for vCloud Director 8.0 SP
    • Configure vCloud Director 8.0 for SP – PVDC
    • Configure vCloud Director 8.0 for SP – Organization
    • vCloud Director 8.0 with NSX 6.2 – Final Testing
  • vCloud Director 5.x
    • 1. Installation of vCD 5.5
    • 2. vShield Manager
    • 3. VXLAN Configuration
    • 4. Initial vCloud Config
    • 5. Create a Provider vDC
    • 6.External Network
    • 7. Organization VDC
    • 8. vShield Edge & Organization Network
    • 9. Final Testing
    • 10. Installing an additional vCloud cell
    • Upgrade 1.5 > 5.5
      • 1. vCloud Director Binaries
      • 2. vShield Manager
      • 3. Final Touches
  • Lego NUC vSAN Cluster
  • Vembu
  • About Me

vRealize Automation 7.2 – Make IP in Network Profile unavailable for deployments

Sometimes you might get into a situation where you added an IP Range to a Network Profile and then realised you have some IP in use on that VLAN – i.e. physical servers.

If you KNOW this is a possibility BEFORE you create the range, then this is easy (we’ll come to that).

But if you have imported the range and already used it – then it becomes a bit more complicated .. just a bit ..

Here you can see I have three machines in the range. Now imagine I want to reserve the following IPs for physical machines

  • 172.1.0.201
  • 172.1.0.203

Because they are right bang in the middle the already taken IPs, I can’t even attempt to split the range.

 

Unfortunately this requires a bit of digging through the database. VMware did release a Knowledge base Article, but it is based on vRA 6.2

But the good news are – it still works. So open up your SQL Management Studio

Note 1 : DON‘T FORGET TO BACKUP THE DB BEFORE DOING ANYTHING !! 

Note 2 : Database Edits are not supported by VMware Support unless instructed by them directly

Connect to your vRA Database and expand the Tables

Navigate to

dbo.StaticIPv4Address

Right click the table and select Select Top 1000 Rows

When you now scroll to the right to

StaticIPv4AddressState

You can see a status of either ‘0’ or ‘1’.

  • 0 = Allocated
  • 1 = Unallocated

Here as example, 172.1.0.202 is taken up by VM IP-Range-2 – and therefore the status is ‘0’.

172.1.0.203 is currently not allocated – and therefore the status is ‘1’

As mentioned, I want to allocated two IPs, 172.1.0.201 and 172.1.0.203 – so for this we need to run two queries (one for each IP)

update StaticIPv4Address set StaticIPv4AddressState = 0 where IPv4Address = '172.1.0.201'

and

update StaticIPv4Address set StaticIPv4AddressState = 0 where IPv4Address = '172.1.0.203'

Now when you refresh the range inside the Network Profile, you can see those two IPs as allocated

Unfortunately there isn’t an easy way to put a description there, but at least you can avoid ‘automated’ IP Conflicts that way. To make them available again, simply change the query to ‘1’.

I did mention a way to do this BEFORE you deploy any VMs, right.

When creating a range, you have the option to import a CSV file rather than creating the range manually

See option Import from CSV

You can find the documentation in how to format the CSV HERE

You can see I have here a range of 172.1.0.200 – 172.1.0.249

I will now import three more. Two empty – unallocated ones, and one which I allocated to a VM (for example from inside the OS rather than through vRA)

My resulting CSV is

172.1.0.250,,Unallocated
172.1.0.251,IP-Range-01,Allocated
172.1.0.252,,Unallocated

You can see I have left the machine name empty for the Unallocated machines.

Let’s import that. So click Import form CSV

That should hopefully finish

When you click Apply and check the IP Addresses, you can see that those IPs have now been assigned / entered into the DB

Now why is that different ? Have a look at the above screenshot. You can see ‘X Delete’ is actually available. 

Because you imported a CSV, vRA considers each IP an individual ‘range’ and can therefore be deleted !

Imagine I now changed my mind and want to remove 172.1.0.251 again

Click Delete

Gone .. The bottom line here is I guess – if you work in a Greenfield environment, import ranges via CSV rather than configuring the ranges through the UI.

Customers can easily change their mind and therefore gives you more freedom when it comes to Network Profiles

The End 🙂

 

Copyright © 2019 · Genesis Sample on Genesis Framework · WordPress · Log in