### ESX Installer Boot Options Example Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/esx-installation-and-setup/installing-esxi/installing-esxi-by-using-a-script/scripted-esxi-installation/enter-boot-options-to-start-an-installation-or-upgrade-script.html This example shows the boot options you can type at the ESX installer prompt to initiate a scripted installation or upgrade. It includes the kickstart file location and network configuration parameters. ```bash ks=http://00.00.00.00/kickstart/ks-osdc-pdp101.cfg nameserver=00.00.0.0 ip=00.00.00.000 netmask=255.255.255.0 gateway=00.00.00.000 ``` -------------------------------- ### Configure ESX Kickstart Installation Script Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/esx-installation-and-setup/installing-esxi/installing-esxi-by-using-a-script/installation-and-upgrade-scripts-used-for-esxi-installation/about-the-default-ks-cfg-installation-script.html A sample ks.cfg file demonstrating how to accept the EULA, set a root password, define disk installation targets, and configure network settings. It also includes an example of a post-installation Python script to log completion time. ```Kickstart # Accept the VMware End User License Agreement vmaccepteula # Set the root password for the DCUI and Tech Support Mode rootpw myp@ssw0rd # Install on the first local disk available on machine install --firstdisk --overwritevmfs # Set the network to DHCP on the first network adapter network --bootproto=dhcp --device=vmnic0 # A sample post-install script %post --interpreter=python --ignorefailure=true import time stampFile = open('/finished.stamp', mode='w') stampFile.write( time.asctime() ) ``` -------------------------------- ### Customization Script Example (Shell) Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/vsphere-virtual-machine-administration/managing-virtual-machinesvsphere-vm-admin/customizing-guest-operating-systemsvsphere-vm-admin/create-and-manage-customization-specificationsvsphere-vm-admin/create-and-manage-customization-specificationsvsphere-vm-admin.html This script demonstrates how to handle 'precustomization' and 'postcustomization' tasks within a guest operating system customization process. It checks the first argument passed to the script to determine whether to execute pre- or post-customization logic. ```shell #!/bin/sh if [ x$1 == x"precustomization" ]; then echo Do Precustomization tasks elif [ x$1 == x"postcustomization" ]; then echo Do Postcustomization tasks fi ``` -------------------------------- ### Install GPU Graphics Card VIB on ESX Host Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/setup-your-environment-for-vsga.html This command installs the GPU graphics card VIB (vSphere Installation Bundle) files on an ESX host. Ensure you have the correct VIB file path. This is a prerequisite for enabling vSGA. ```bash esxcli software vib install -v $PWD/VendorName-vsga-driver_x.y.z-1OEM.a.b.c.vib ``` -------------------------------- ### Example Workflow for Manual TLS Customization Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/vsphere-security/managing-tls-protocol-configuration-with-the-tls-reconfiguration-utility/managing-vsphere-tls/managing-vsphere-tls.html A practical example demonstrating the transition from a default profile to a MANUAL profile, followed by the customization of elliptic curve groups. ```bash [root@host1] esxcli system tls server get [root@host1] esxcli system tls server set --profile MANUAL [root@host1] esxcli system tls server get [root@host1] esxcli system tls server set --groups=prime256v1:secp384r1 [root@host1] esxcli system tls server get ``` -------------------------------- ### Verify Driver VM Status with crx-cli Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/setup-your-environment-for-vsga.html This command verifies that at least one driver VM has started after configuring the ESX host for vSGA. It's a crucial step to ensure the graphics drivers are operational. ```bash crx-cli list ``` -------------------------------- ### Configure boot.cfg for UEFI and Scripted Installation Source: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/9-0/esx-installation-and-setup/installing-esxi/network-booting-the-esxi-installer/boot-the-esxi-installer-by-using-pxe-and-tftp.html Configuration snippets for the boot.cfg file to define the installation prefix and specify the location of a kickstart script for automated deployments. ```text prefix=ESX-9.x.x-xxxxxx ``` ```text kernelopt=ks=http://XXX.XXX.XXX.XXX/esxi_ksFiles/ks.cfg ```