VMware Cloud Community
scparmenakis
Contributor
Contributor

vApp Network Protocol Profile - Static IPs aren't sticking

Hey all,

We're trying to set up some new port groups that automatically assign out IP addresses to new VMs being built in an automated fashion.  We'd like vCenter to assign out an IP to the VM and keep that IP for the life of the VM (regardless of power on / power off, reboot, etc).

For reference, tried this on 6.5 and 6.7u1.

We've set up the Network Protocol Profile, attached it to a distributed port group, set all of our IPv4 settings, etc.  Build a new vApp, set it to use IPv4 IP Pool - Static.  On the vApp or the VM, Configure -> vApp Options, and add some properties.  The one in question is:

Label: guestinfo.interface.0.ipaddress

Type: Dynamic, Macro IP Address.

When we start the VM, all of the information populates perfectly.  IP address, domain suffix, subnet, gateway, dns server, etc.  Upon power off, all of the fields clear themselves except for IP address, which is what we would expect (if we set this to Transient instead of Static, IP address also clears, as expected).  The problem comes when we go to power the vApp on for a 2nd time.  All of the fields populate again, but it gets a *new* IP address, incremented up the IP pool from the previous boot.  How do we get this to not fetch a brand new IP address every time?  Or are we doing this wrong altogether?

0 Kudos
0 Replies