18.08.2013 Views

vSphere Installation and Setup - Documentation - VMware

vSphere Installation and Setup - Documentation - VMware

vSphere Installation and Setup - Documentation - VMware

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>vSphere</strong> <strong>Installation</strong> <strong>and</strong> <strong>Setup</strong><br />

About <strong>Installation</strong> <strong>and</strong> Upgrade Scripts<br />

The installation/upgrade script is a text file, for example ks.cfg, that contains supported comm<strong>and</strong>s.<br />

The comm<strong>and</strong> section of the script contains the ESXi installation options. This section is required <strong>and</strong> must<br />

appear first in the script.<br />

About the Default ks.cfg <strong>Installation</strong> Script<br />

The ESXi installer includes a default installation script that performs a st<strong>and</strong>ard installation to the first detected<br />

disk.<br />

The default ks.cfg installation script is located in the initial RAM disk at /etc/vmware/weasel/ks.cfg. You can<br />

specify the location of the default ks.cfg file with the ks=file://etc/vmware/weasel/ks.cfg boot option. See<br />

“Enter Boot Options to Start an <strong>Installation</strong> or Upgrade Script,” on page 48.<br />

When you install ESXi using the ks.cfg script, the default root password is mypassword.<br />

You cannot modify the default script on the installation media. After the installation, you can log in to the ESXi<br />

host <strong>and</strong> use the <strong>vSphere</strong> Client to modify the default settings.<br />

The default script contains the following comm<strong>and</strong>s:<br />

#<br />

# Sample scripted installation file<br />

#<br />

# Accept the <strong>VMware</strong> End User License Agreement<br />

vmaccepteula<br />

# Set the root password for the DCUI <strong>and</strong> Tech Support Mode<br />

rootpw mypassword<br />

# Install on the first local disk available on machine<br />

install --firstdisk --overwritevmfs<br />

# Set the network to DHCP on the first network adapter<br />

network --bootproto=dhcp --device=vmnic0<br />

# A sample post-install script<br />

%post --interpreter=python --ignorefailure=true<br />

import time<br />

stampFile = open('/finished.stamp', mode='w')<br />

stampFile.write( time.asctime() )<br />

Locations Supported for <strong>Installation</strong> or Upgrade Scripts<br />

In scripted installations <strong>and</strong> upgrades, the ESXi installer can access the installation or upgrade script, also called<br />

the kickstart file, from several locations.<br />

The following locations are supported for the installation or upgrade script:<br />

n CD/DVD. See “Create an Installer ISO Image with a Custom <strong>Installation</strong> or Upgrade Script,” on page 17.<br />

n USB Flash drive. See “Create a USB Flash Drive to Store the ESXi <strong>Installation</strong> Script or Upgrade Script,”<br />

on page 16.<br />

n A network location accessible through the following protocols: NFS, HTTP, HTTPS, FTP<br />

50 <strong>VMware</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!