format usb fat 32 burn source iso to usb with unetbootin edit both BOOT.CFG and add KS_AUTO.CFG to usb root
Last active
May 3, 2023 13:50
-
-
Save moondev/2c50d40024e83ca0e0c6dc09cd642c09 to your computer and use it in GitHub Desktop.
esxi kickstart examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bootstate=0 | |
timeout=5 | |
prefix= | |
kernel=/b.b00 | |
# title=DEFAULT ESXi installer | |
# kernelopt=cdromBoot runweasel | |
# kernelopt=netdevice=vmnic0 bootproto=dhcp ks=nfs://192.168.0.6/kickstart/ESXiLabConfig.cfg | |
# kernelopt=ks=cdrom:/KS_AUTO.CFG | |
# title=KICKSTARTING ESXI FROM cdrom:/KS_AUTO.CFG | |
# kernelopt=ks=cdrom:/KS_AUTO.CFG | |
title=KICKSTARTING ESXI FROM usb:/KS_AUTO.CFG | |
kernelopt=ks=usb:/KS_AUTO.CFG | |
modules=/jumpstrt.gz --- /useropts.gz --- /features.gz --- /k.b00 --- /chardevs.b00 --- /user.b00 --- /procfs.b00 --- /uc_intel.b00 --- /uc_amd.b00 --- /uc_hygon.b00 --- /vmx.v00 --- /vim.v00 --- /sb.v00 --- /s.v00 --- /ata_liba.v00 --- /ata_pata.v00 --- /ata_pata.v01 --- /ata_pata.v02 --- /ata_pata.v03 --- /ata_pata.v04 --- /ata_pata.v05 --- /ata_pata.v06 --- /ata_pata.v07 --- /block_cc.v00 --- /bnxtnet.v00 --- /bnxtroce.v00 --- /brcmfcoe.v00 --- /char_ran.v00 --- /ehci_ehc.v00 --- /elxiscsi.v00 --- /elxnet.v00 --- /hid_hid.v00 --- /i40en.v00 --- /iavmd.v00 --- /igbn.v00 --- /ima_qla4.v00 --- /ipmi_ipm.v00 --- /ipmi_ipm.v01 --- /ipmi_ipm.v02 --- /iser.v00 --- /ixgben.v00 --- /lpfc.v00 --- /lpnic.v00 --- /lsi_mr3.v00 --- /lsi_msgp.v00 --- /lsi_msgp.v01 --- /lsi_msgp.v02 --- /misc_cni.v00 --- /misc_dri.v00 --- /mtip32xx.v00 --- /ne1000.v00 --- /nenic.v00 --- /net_bnx2.v00 --- /net_bnx2.v01 --- /net_cdc_.v00 --- /net_cnic.v00 --- /net_e100.v00 --- /net_e100.v01 --- /net_enic.v00 --- /net_fcoe.v00 --- /net_forc.v00 --- /net_igb.v00 --- /net_ixgb.v00 --- /net_libf.v00 --- /net_mlx4.v00 --- /net_mlx4.v01 --- /net_nx_n.v00 --- /net_tg3.v00 --- /net_usbn.v00 --- /net_vmxn.v00 --- /nfnic.v00 --- /nhpsa.v00 --- /nmlx4_co.v00 --- /nmlx4_en.v00 --- /nmlx4_rd.v00 --- /nmlx5_co.v00 --- /nmlx5_rd.v00 --- /ntg3.v00 --- /nvme.v00 --- /nvmxnet3.v00 --- /nvmxnet3.v01 --- /ohci_usb.v00 --- /pvscsi.v00 --- /qcnic.v00 --- /qedentv.v00 --- /qfle3.v00 --- /qfle3f.v00 --- /qfle3i.v00 --- /qflge.v00 --- /sata_ahc.v00 --- /sata_ata.v00 --- /sata_sat.v00 --- /sata_sat.v01 --- /sata_sat.v02 --- /sata_sat.v03 --- /sata_sat.v04 --- /scsi_aac.v00 --- /scsi_adp.v00 --- /scsi_aic.v00 --- /scsi_bnx.v00 --- /scsi_bnx.v01 --- /scsi_fni.v00 --- /scsi_hps.v00 --- /scsi_ips.v00 --- /scsi_isc.v00 --- /scsi_lib.v00 --- /scsi_meg.v00 --- /scsi_meg.v01 --- /scsi_meg.v02 --- /scsi_mpt.v00 --- /scsi_mpt.v01 --- /scsi_mpt.v02 --- /scsi_qla.v00 --- /sfvmk.v00 --- /shim_isc.v00 --- /shim_isc.v01 --- /shim_lib.v00 --- /shim_lib.v01 --- /shim_lib.v02 --- /shim_lib.v03 --- /shim_lib.v04 --- /shim_lib.v05 --- /shim_vmk.v00 --- /shim_vmk.v01 --- /shim_vmk.v02 --- /smartpqi.v00 --- /uhci_usb.v00 --- /usb_stor.v00 --- /usbcore_.v00 --- /vmkata.v00 --- /vmkfcoe.v00 --- /vmkplexe.v00 --- /vmkusb.v00 --- /vmw_ahci.v00 --- /xhci_xhc.v00 --- /elx_esx_.v00 --- /btldr.t00 --- /esx_dvfi.v00 --- /esx_ui.v00 --- /esxupdt.v00 --- /weaselin.t00 --- /lsu_hp_h.v00 --- /lsu_inte.v00 --- /lsu_lsi_.v00 --- /lsu_lsi_.v01 --- /lsu_lsi_.v02 --- /lsu_lsi_.v03 --- /lsu_lsi_.v04 --- /lsu_smar.v00 --- /native_m.v00 --- /qlnative.v00 --- /rste.v00 --- /vmware_e.v00 --- /vsan.v00 --- /vsanheal.v00 --- /vsanmgmt.v00 --- /tools.t00 --- /xorg.v00 --- /imgdb.tgz --- /imgpayld.tgz | |
build= | |
updated=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vmaccepteula | |
# clear all disk partions | |
clearpart --alldrives --overwritevmfs | |
# install on usb | |
install --firstdisk=usb --novmfsondisk --overwritevmfs | |
reboot | |
# lab.10.10.100.40.xip.io | |
#network --hostname=ryzen.moonkube.io --ip=10.10.100.10 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
#network --hostname=contour.moonkube.io --ip=10.10.100.20 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
#network --hostname=ksonnet.moonkube.io --ip=10.10.100.30 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
#network --hostname=gimbal.moonkube.io --ip=10.10.100.40 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
#network --hostname=ark.moonkube.io --ip=10.10.100.50 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
#network --hostname=sonobuoy.moonkubeio --ip=10.10.100.60 --bootproto=static --netmask=255.255.255.0 --gateway=10.10.100.1 --nameserver=10.10.100.1 --addvmportgroup=1 | |
# DHCP example | |
network --bootproto=dhcp --device=vmnic0 --addvmportgroup=1 | |
rootpw VMware1! | |
# POST INSTALL SCRIPTS | |
%post --interpreter=python --ignorefailure=true | |
import time | |
stampFile = open('/finished.stamp', mode='w') | |
stampFile.write( time.asctime() ) | |
# FIRST BOOT SCRIPT | |
%firstboot --interpreter=busybox | |
# enable & start SSH | |
vim-cmd hostsvc/enable_ssh | |
vim-cmd hostsvc/start_ssh | |
# enable & start ESXi Shell | |
vim-cmd hostsvc/enable_esx_shell | |
vim-cmd hostsvc/start_esx_shell | |
# Suppress ESXi Shell warning | |
esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1 | |
# Suppress welcome message | |
esxcli system settings advanced set -o /UserVars/HostClientWelcomeMessage -i 0 | |
# disbale recent items list | |
esxcli system settings advanced set -o /UserVars/HostClientShowOnlyRecentObjects -i 0 | |
# CEIP | |
esxcli system settings advanced set -o /UserVars/HostClientCEIPOptIn -i 2 | |
# change acceptance level to allow 3rd party drivers | |
# esxcli software acceptance set --level=CommunitySupported | |
# install aquantia driver | |
#esxcli software vib install -v https://github.com/Aquantia/AQtion-esxi/releases/download/v2.2.3.0-esxi1.6/net670-atlantic-v2.2.3.0-esxi1.6.x86_x64.vib | |
# reboot now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment