As part of a larger project I’ve been working on a set of scripts which configure a freshly-installed ESX (or ESXi) system into Virtual Center (after first attempting to remove previous VC state and clean state from the host). Currently they follow a typical post-boot configuration pattern:
- Set ESX password
- Add to Virtual Center cluster
- Configure Virtual Switches
- Configure Port Groups
- Add NFS partitions
- Add iSCSI partitions
- Configure NTP
- Configure VMotion
Before trying, modify esx-master.ps1 and esx-profile.ps1 to local conditions (or your password will be set to “CHANGEME”).
Command: esx-autoconfigure.ps1 “hostname|ip-address”
check out zijn post op http://communities.vmware.com/thread/161304