I am using VMware vCenter 5.1 to manage my servers. I would like to deploy some virtual machines via some VM templates and ask vCenter to assign IP address for these VM automatically. But it didn't work and network is not properly configured for VM I deployed, and I have no idea what went wrong here.
Here is what I did. I created a network protocol profile with an IPv4 IP pool and associated it with my network called "VM network". And I created a VM with "vApp Options" enabled. In the "vApp Options" of "Authoring" section, IP allocation scheme is set to "OVF environment", and in the "Deployment" section, "IP allocation is set to "Static IP Pool". And I created a vApp to use the "VM network", and used the VM I created previously as template to create a new VM in the vApp. My VM is a CentOS 6.4 guest with latest VMware tools installed and running.
The problem is when I created a VM in the vApp, its network adapter is not correctly set up (/etc/sysconfig/networking-scripts/ifcfg-eth0 contains incorrect Mac address and eth0 was not up) and no IP was assigned to it.
My question is how can I configure my VM/VMware vCenter to function together so that vCenter will assign static IP address from IP pool to new VMs I deploy? Thanks.