# Automatically generated UDA Kickstart script for ESX3 # Regional Settings keyboard us lang en_US langsupport --default en_US timezone America/New_York # Installatition settings skipx mouse none firewall --disabled # Unencrypted root password: password rootpw --iscrypted $1$5a17$In5zYe6YsCty76AycpGaf/ reboot install url --url http://192.168.3.150/esx/esx301/ # Driver disks # Load drivers # Ignore these SAN LUNs # This assumes that /dev/sda, /dev/sdb are SAN LUNs # and you are installing to a local LUN called /dev/sda ignoredisk –drives=sdb,sdc,sdd,sde,sdf,sdg,sdh,sdi,sdj,sdk,sdl # Bootloader options bootloader --location=mbr --driveorder=sda # Authentication auth --enableshadow --enablemd5 # Partitioning clearpart --all --drives=sda --initlabel part /boot --fstype ext3 --size 250 --ondisk=sda part swap --size 1600 --ondisk=sda part / --fstype ext3 --size 5120 --ondisk=sda part /var --fstype ext3 --size 2048 --ondisk=sda part /tmp --fstype ext3 --size 2048 --ondisk=sda part /opt --fstype ext3 --size 2048 --ondisk=sda part /home --fstype ext3 --size 2048 --ondisk=sda part None --fstype vmkcore --size 100 --ondisk=sda part /vmimages --fstype ext3 --size 1 --grow --ondisk=sda # Network Configurations network --device eth0 --bootproto static --ip 192.168.3.101 --netmask 255.255.255.0 --gateway 192.168.3.254 --nameserver 192.168.3.130 --hostname esx1.vi3book.com --addvmportgroup=0 # VMWare License options vmaccepteula vmlicense --mode=server --server=27000@virtualcenter.vi3book.com --edition=esxFull --features=backup,vsmp %vmlicense_text %packages @base %post # Your postinstall script goes here! cat > /tmp/esxcfg.sh <> /etc/resolv.conf echo nameserver 192.168.3.132 >> /etc/resolv.conf # Enable strong security of hashed passwords in the script # Create a local user for SSH Access - Default password is password # useradd -p '$1$Rg69B9QA$JUtqStBrjNFbyzyP9zTsf0' -c "Mike Laverick" lavericm # DANGEROUS Allow ROOT access using SSH # sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new # mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config # service sshd restart # Enable the SSH client (From this ESX host to another) esxcfg-firewall -e sshClient EOF1 # Make esxcfg.sh eXcutable chmod +x /tmp/esxcfg.sh # Backup original rc.local file cp /etc/rc.d/rc.local /etc/rc.d/rc.local.bak # Make esxcfg.sh run from rc.local and make rc.local reset itself cat >> /etc/rc.d/rc.local <