vSphere post installation script

vSphere post installation script

This is a post installation script that I wrote to

complete the base installation of an ESX host. The most

impressive portion of this script, in my opinion, is the automation of

the VMkernel port. As you can see in the script, I am taking

input from the user and using that input to create the VMkernel

port and then enable VMotion.

Please feel free to use, modify or make recommendations. I only ask

that if you do have recommendations please post them with as much

detail as possible so that everyone can benefit.

Comments

Could you please add a description like what it does.

Thanks

Here is a list of the tasks that are performed.

  1. Gathering the information for the VMkernel port

  2. Creation of the VMkernel port and enables VMotion

  3. Creation of the Virtual Switches

  4. Add a new portgroup to the virtual switch

  5. Use ALL to set VLAN IDs on all portgroups

  6. Linking NICs to vSwitches

  7. Updating the NIC policy for the switches

  8. Configure Active Directory authenticatie

  9. Add a user to the local system. If using AD authentication the user needs to exist in AD.

  10. Add users to the wheel group

  11. Backing up resolv.conf file

  12. Backing up the snmp.conf file

  13. Backing up the ntp.conf file

  14. Backing up the NTP step-tickers file

  15. Backing up the hosts file

  16. Backing up the sshd_config file

  17. Backing up the sudoers file

  18. Backing up the esx.conf and grub.conf files

  19. DNS configuration

  20. Setting up SNMP

  21. Configuring NTP

  22. Configuring step-tickers

  23. Configuring the hosts file

  24. Enabling the Banner in the sshd_config file

  25. Configuring the Banner file

  26. Configuring the sudoers file

  27. Modifying the esx.conf and the grub.conf file to extend the memory for the Service Console

  28. Restarting the NTP service

  29. Setting the startup options for ntp and snmp

  30. Backing up the .profiles for users.

  31. Syncing the hardware clock with the system clock

  32. Setting the PermitRootLogin to no

  33. Modifying the .profile for each user

  34. Securing the sudoers file

  35. Restarting the host

Version history
Revision #:
1 of 1
Last update:
‎07-27-2010 01:33 PM
Updated by: