Linux VMguest Automation

i need a help to conigure the ipaddress for linux vmguest
we have perl script to deploy the vmguest from our master server and that script will configure the vmguest and boot the machine automatically.

i have query once guest booted it should read a file from (.vmx or some file from datestore location) datestore and configure the ip.

any idea please let me know.