Unattended install ESXi 6.0

Posted: February 21, 2017 in VMWare

Creating ks.cfg file

This specify install location,root password,network settings and hostname

# Sample scripted installation file
#
# Accept the VMware End User License Agreement
vmaccepteula
# Set the root password for the DCUI and Tech Support Mode
rootpw mypassword
# Install on the first local disk available on machine
install --firstdisk=local --overwritevmfs
# Set the network to static on the first network adapter
network --bootproto=static --device=vmnic0 --ip=192.168.0.10 --netmask=255.255.255.0 --gateway=192.168.0.1 --nameserver=8.8.8.8 --hostname=esx1.test.com
# A sample post-install script
%post --interpreter=python --ignorefailure=true
import time
stampFile = open('/finished.stamp', mode='w')
stampFile.write( time.asctime() )

I copied this file to USB stick (must be formatted as FAT32!!)

We need to specify path to unattended file (Shift+O)

 

1

ks=usb (specifies usb as ks.cfg file location-installer will search for all USB drives formated as FAT16/32)

 

2

Installation has finished:

 

1.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s