=========================================================================================================
RHEL4 already has a "firstboot" script. It runs the python based
application that is used to finalize the configuration during an
install. Setup a RHEL4 template and now deploy a new
VM it runs the GUI to prompt me for all settings. To accomplish this try:
- Install and perform basic configuration just like normal
- Turn on the firstboot init script with the commands "chkconfig --add firstboot" and "chkconfig firstboot on" (this gets deleted and disabled after the first install finishes)
- Delete the firstboot file - "rm -f /etc/sysconfig/firstboot" (This gets created after the first run completes to prevent firstboot from running again)
- If you want to completely reconfigure all aspects of the system,
then alos create a file in the /etc directory - "touch /etc/reconfigSys" (This commands firstboot to not just configure the parameters firstboot
normally does during install, but to reconfigure everything)
Shutdown the VM and convert it to a template. Now when you deploy a template as a new VM, it runs the firstboot application with
the "reconfig" option and it can reconfigure the entire OS as needed.
Hope this helps.