Install ESXi5.0 from a CD or DVD Using a Script

In the previous post we saw how to interactively install ESXi, here I will show you how to install using script. Only difference between this method and interactive method is you do not need provide any inputs. Just one simple line pointing to ks.cfg file and all done.

What you need? i.e. pre-requisites

  1. IIS or any Webserver
  2. ISO image to burn it on CD/DVD (assuming you do not have ILO)

Configuration of IIS Server

  1. Install IIS using standard next next method. Nothing special there.
  2. Extract ESXi5.0 ISO image using ISO Buster
  3. Below is what it might look after extracting the imageimage
  4. Create a folder by name e.g. ESXi5 under C:\Inetpub\wwwroot\ as shown below and copy the above files or entire content of the CD image
  5. Create a answer file with name ks.cfg as shown below

#
# 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 –overwritevmfs
# Set the network to DHCP on the first network adapater
network –bootproto=dhcp –device=vmnic0

# Reboot the OS but do not eject CD.

reboot –-noeject

  1. Copy the ks.cfg file into C:\Inetpub\wwwroot\ESXi5
  2. Start the server, ensure it boots from the CD as shown below and press enterimage
  3. When you see below screen press SHIFT + Oimage

  4. You get below screen, remove run runweasel by press backspaceimage

  5. Type the webserver address as shown belowimage
  6. Press Enter and watch the stuff.
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