vRA 6.2.2: while attempting to deploy a VM from blueprint we received the following error:
Internal error: Error allocating network on machine. Attempted to divide by zero
Pretty helpful error message as usual for this version of the product ;-)
The Network Profile and Path appeared to be set correctly when requesting the VM. We eventually tracked it down to the Network Profile IP Range having run out of unallocated IPs. The solution of course is to free up some IPs. Head to the Network Profile, IP Ranges to check out which ones might be suitable to free up:
Once you have removed a VM the IP will go into the Destroyed state for a while (I believe it is 30 mins, couldn’t find a document to confirm)
To speed things up you can hit the Reclaim button:
and the IP should got to the Unallocated state:
Fire up the provision VM task again and things should be better now.