ESXi

 View Only
  • 1.  automate post configuration of ESXi after install.

    Posted Jan 11, 2010 03:59 PM

    I have been able to automate the process of installing ESXi over the network (hacking the install.tgz file) but can not figure out how to automate the post install configuration (i.e. password and syslog location). Anyone have any luck at this or any ideas. I have seen the midwife script for stateless ESXi hosts but I want a stateful environment.

    To automate the install over the network I did something similar to the vinternals blog and also automated the process to select the local disk to install the hypervisor on.



  • 2.  RE: automate post configuration of ESXi after install.

    Broadcom Employee
    Posted Jan 11, 2010 04:38 PM

    You can add the custom configurations into oem.tgz (take a look at Dave's site: http://www.vm-help.com/esx40i/customize_oem_tgz.php) I also have a link on my site documenting how you might persist paired SSH keys: http://engineering.ucsb.edu/~duonglt/vmware/#esxi_stateless, recommendation would to be to put this in oem.tgz for any custom updates.

    You could also look into using vCLI or PowerCLI to do the post configuration, you would have to manually run the set of scripts but this would allow you to stay away from hacking the ESXi files and just use the vSphere API to make the final post configuration (this assumes you're NOT using the free version, must be licensed)

    =========================================================================

    William Lam

    VMware vExpert 2009

    VMware ESX/ESXi scripts and resources at:

    Twitter: @lamw

    VMware Code Central - Scripts/Sample code for Developers and Administrators

    VMware Developer Comuunity

    If you find this information useful, please award points for "correct" or "helpful".



  • 3.  RE: automate post configuration of ESXi after install.

    Posted Jan 11, 2010 06:50 PM

    If I put a script in the oem.tgz to modify the password and other advanced settings wouldn't it run everytime I boot the system. Do you suggest that I have the script modify the boot parameters after it runs once?



  • 4.  RE: automate post configuration of ESXi after install.

    Broadcom Employee
    Posted Jan 11, 2010 06:58 PM

    It kinda depends if you're going down the route of doing an unsupported setup or supported setup (via APIs).

    If you use oem.tgz method, you're basically making changes to individual files within the ESXi filesystem in the unsupported Busybox console also known as Tech Support Mode. The changes must be stored in oem.tgz or some other persisted file because changes into that console are not persisted, only certain files are 'automatically' backed up via an internal process. This method is not so straight forward but again is documented in the links in previous reply.

    The recommended approach is to use the APIs and again this assumes you have a valid license for ESXi (not the free version). In which case you can use the vSphere API's to run post configuration scripts on each of your ESX(i) hosts after the initial provision, this can be setting NTP, snmp, advanced configurations/etc.

    =========================================================================

    William Lam

    VMware vExpert 2009

    VMware ESX/ESXi scripts and resources at:

    Twitter: @lamw

    VMware Code Central - Scripts/Sample code for Developers and Administrators

    VMware Developer Comuunity

    If you find this information useful, please award points for "correct" or "helpful".



  • 5.  RE: automate post configuration of ESXi after install.

    Posted Jun 18, 2010 11:23 PM

    Does somebody knows a set of scripts (ms powershell) for post installation configuration of esxi?



  • 6.  RE: automate post configuration of ESXi after install.

    Posted Jun 18, 2010 11:37 PM

    Please post to a new thread. You might want to consider using http://communities.vmware.com/community/vmtn/vsphere/automationtools