VMware ESX 4.0 - INSTALLATION GUIDE UPDATE 1 Installation Manual page 58

Hide thumbs Also See for ESX 4.0 - INSTALLATION GUIDE UPDATE 1:
Table of Contents

Advertisement

ESX and vCenter Server Installation Guide
=[python|bash]
%post (optional)
Executes the specified script after package installation has been completed. If you specify multiple
sections, they are executed in the order they appear in the installation script. For example:
%post
MY_MAC=`esxcfg-nics -l | tail -1 | awk '{print $7}'` CONF_URL="http://example.com/$MY_MAC"
esxcfg-firewall --allowOutgoing
--interpreter python -c "import urllib; urllib.urlretrieve('$CONF_URL', '/tmp/myconfig.sh')"
esxcfg-firewall --blockOutgoing
sh /tmp/myconfig.sh
--interpreter
=[perl|python|bash]
--nochroot
--timeout=secs
--ignorefailure
=[true|false]
Disk Device Names
Installation script commands such as
Table 6-1
lists the supported disk device names.
Table 6-1. Disk Device Names
Format
VML
/dev/.+
sdX, cciss/cNdN
Differences Between Kickstart and ESX Commands
ESX scripted installation is similar to, but incompatible with Red Hat's kickstart.
In general, kickstart and ESX scripts differ as follows:
ESX scripts use the UUID format for specifying disks.
n
ESX scripts use MAC addresses to specify network adapters.
n
ESX scripts generally allow file and NFS URLs.
n
ESX command options and their values require an equal sign (
n
--location=mbr # Correct
--location mbr # Incorrect
Specific command differences are noted in the following summary.
58
Specifies an interpreter to use. The default is bash.
Indicates whether the script is executed after you chroot into the service console
file system.
Specifies a timeout for executing the script. If the script has not finished when
the timeout expires, the script is forcefully terminated.
If true, the installation is considered a success even if the %pre script terminated
with an error.
and
autopart
clearpart
Examples
mpx.vmhba0:C0:T0:L0
/dev/sda, /dev/cciss/c0d0
sda, cciss/c0d0
require the use of disk device names.
Description
The vmkernel device name.
Full device path in the service console.
Shortened device path from the service console.
) instead of a space. For example:
=
%post
VMware, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vcenter server 4.0Esx 4.0

Table of Contents