-
noIOMMU ML110G7@Celeron G530ではVT-dが有効でないため、 noIOMMUを有効にしないと環境でないと動かない
-
firstdisk disk名を指定してパーティションの削除をしている
-
local userの作成、ロールの割り当てpasswordの要件に注意
Created
June 22, 2017 06:24
-
-
Save tetsuyainfra/c3276bc631a882e49f64f16329eab2d8 to your computer and use it in GitHub Desktop.
ESXi USBブート+kickstartする場合のサンプル
This file contains hidden or 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 | |
title=Loading ESXi installer | |
timeout=5 | |
kernel=/tboot.b00 | |
kernelopt=runweasel noIOMMU ks=usb text nofb com2_baud=115200 com2_Port=0x2f8 tty2Port=com2 gdbPort=none logPort=none | |
modules=/b.b00 --- /jumpstrt.gz --- /useropts.gz --- /features.gz --- /k.b00 --- /chardevs.b00 --- /a.b00 --- /user.b00 --- /uc_intel.b00 --- /uc_amd.b00 --- /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 --- /char_ran.v00 --- /ehci_ehc.v00 --- /elxnet.v00 --- /hid_hid.v00 --- /i40en.v00 --- /igbn.v00 --- /ima_qla4.v00 --- /ipmi_ipm.v00 --- /ipmi_ipm.v01 --- /ipmi_ipm.v02 --- /ixgben.v00 --- /lpfc.v00 --- /lsi_mr3.v00 --- /lsi_msgp.v00 --- /lsi_msgp.v01 --- /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 --- /nhpsa.v00 --- /nmlx4_co.v00 --- /nmlx4_en.v00 --- /nmlx4_rd.v00 --- /nmlx5_co.v00 --- /ntg3.v00 --- /nvme.v00 --- /nvmxnet3.v00 --- /ohci_usb.v00 --- /pvscsi.v00 --- /qedentv.v00 --- /qfle3.v00 --- /qflge.v00 --- /qlnative.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 --- /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 --- /uhci_usb.v00 --- /usb_stor.v00 --- /usbcore_.v00 --- /vmkata.v00 --- /vmkplexe.v00 --- /vmkusb.v00 --- /vmw_ahci.v00 --- /xhci_xhc.v00 --- /emulex_e.v00 --- /weaselin.t00 --- /esx_dvfi.v00 --- /esx_ui.v00 --- /lsu_hp_h.v00 --- /lsu_lsi_.v00 --- /lsu_lsi_.v01 --- /lsu_lsi_.v02 --- /lsu_lsi_.v03 --- /native_m.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 hidden or 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
# | |
# ESXi kickstart script (ks.cfg) | |
# | |
# Accept the VMware End User License Agreement | |
vmaccepteula | |
# Set the root password for the DCUI and Tech Support Mode | |
rootpw password0 | |
keyboard Japanese | |
clearpart --firstdisk=VB0250EAVER --overwritevmfs | |
install --firstdisk=VB0250EAVER --overwritevmfs | |
#installorupgrade --firstdisk=VB0250EAVER --overwritevmfs | |
# Set the network to DHCP on the first | |
#network --bootproto=dhcp --device=vmnic0 | |
network --bootproto=static --ip=192.168.11.110 --gateway=192.168.11.1 --netmask=255.255.255.0 --hostname=dev0.devopt.local | |
reboot | |
############################################################################### | |
# INSTALL POST script to set advanced config options | |
############################################################################### | |
%post --interpreter=busybox --ignorefailure=false | |
# at boot kernel noIOMMU | |
esxcli system settings kernel set --setting=noIOMMU --value=TRUE | |
# use com2 port for terminal | |
esxcfg-advcfg -k none gdbPort | |
esxcfg-advcfg -k none logPort | |
esxcfg-advcfg -k com2 tty2Port | |
############################################################################### | |
# a FIRST BOOT script | |
############################################################################### | |
%firstboot --interpreter=busybox | |
esxcfg-advcfg -k none gdbPort | |
esxcfg-advcfg -k none logPort | |
esxcfg-advcfg -k com2 tty2Port | |
# enable VHV (Virtual Hardware Virtualization to run nested 64bit Guests + Hyper-V VM) | |
grep -i "vhv.enable" /etc/vmware/config || echo "vhv.enable = \"TRUE\"" >> /etc/vmware/config | |
# enable & start remote ESXi Shell (SSH) | |
vim-cmd hostsvc/enable_ssh | |
vim-cmd hostsvc/start_ssh | |
# enable & start ESXi Shell (TSM) | |
vim-cmd hostsvc/enable_esx_shell | |
vim-cmd hostsvc/start_esx_shell | |
# supress ESXi Shell shell warning | |
# http://www.yellow-bricks.com/2011/07/21/esxi-5-suppressing-the-localremote-shell-warning/ | |
esxcli system settings advanced set -o /UserVars/SuppressShellWarning -i 1 | |
# create User and assign Role | |
esxcli system account add --id=test01 --password=password@121 --password-confirmation=password@121 | |
esxcli system permission set --id=test01 --role=Admin | |
# assign license | |
#vim-cmd vimsvc/license --set AAAAA-BBBBB-CCCCC-DDDDD-EEEEE | |
# shutdown before 60s | |
esxcli system shutdown reboot -d 20 -r "rebooting after host configurations" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment