The ESX installer comes with a default installation script that performs a standard installation to the first hard drive. The default ks-first.cfg script reformats the /dev/sda disk and sets up default partitioning.

This default script runs if you select the ESX Scripted Install to first disk (overwrite VMFS) option in the boot options menu.

You cannot modify the default script on the installation media. If you run the default script, the root password is mypassword. After the installation, you can log in to the ESX host and modify the default settings using the vSphere Client.

The default script contains the following commands:

#root Password 
rootpw --iscrypted $1$MpéRëÈíÌ$n9sgFQJweS1PeSBpqRRu.. 
# Authconfig 
authconfig --enableshadow --enablemd5 
# BootLoader (Use grub by default.) 
bootloader --location=mbr 
# Timezone 
timezone America/Los_Angeles --utc 
install cdrom 
#Network install type 
network --device=MAC_address --bootproto=dhcp 
keyboard us 
#Reboot after install? 
# Clear partitions 
clearpart --firstdisk 
# Partitioning 
part /boot --fstype=ext3 --size= --onfirstdisk 
part storage1 --fstype=vmfs3 --size=10000 --grow --onfirstdisk 
part None --fstype=vmkcore --size=100 --onfirstdisk 
# Create the vmdk on the cos vmfs partition.
virtualdisk cos --size=5000 --onvmfs=storage1 
# Partition the virtual disk. 
part / --fstype=ext3 --size=0 --grow --onvirtualdisk=cos 
part swap --fstype=swap --size=256 --onvirtualdisk=cos 
#VMware Specific Commands