This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
vmware:esxi [2020/04/29 10:03] – [VMFS on SD] mschubi | vmware:esxi [2021/03/25 10:57] – [VMFS on SD] mschubi | ||
---|---|---|---|
Line 11: | Line 11: | ||
http:// | http:// | ||
+ | |||
+ | |||
+ | ====== ESXi Kickstart Installation ====== | ||
+ | |||
+ | Zum Kickstart: | ||
+ | - Kickstart Script erstellen | ||
+ | - Auf ein NFS Laufwerk legen | ||
+ | - Installations ISO über iDRAC/ | ||
+ | - Beim Boot mit Shift-O die Bootoptionen ändern | ||
+ | z.B. in netdevice=vmnic0 bootproto=dhcp ks=nfs: | ||
+ | - Man kann mit dem ISOBuilder die ISO auch so anpassen, dass dies Default ist (habe ich aber noch nicht gemacht 😊 | ||
+ | - Meine letzten Kickstart Geschichten waren noch PreHistorisch (ESX 4?) | ||
+ | |||
+ | Aber mal ein Beispiel: | ||
+ | <script bash> | ||
+ | #Accept the VMware End User License Agreement | ||
+ | vmaccepteula | ||
+ | # clear partitions and install | ||
+ | clearpart --firstdisk –overwritevmfs | ||
+ | install --firstdisk –overwritevmfs | ||
+ | #set the root password | ||
+ | rootpw VMware1! | ||
+ | |||
+ | #Host Network Settings | ||
+ | network --bootproto=static --addvmportgroup=1 --ip=192.168.1.20 --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=192.168.1.1 --hostname=esx-prz-01 | ||
+ | |||
+ | reboot | ||
+ | |||
+ | #Firstboot section 1 | ||
+ | %firstboot --interpreter=busybox | ||
+ | sleep 30 | ||
+ | |||
+ | #Enter Maintenance mode | ||
+ | vim-cmd hostsvc/ | ||
+ | |||
+ | #suppress Shell Warning | ||
+ | esxcli system settings advanced set -o / | ||
+ | esxcli system settings advanced set -o / | ||
+ | |||
+ | #Add DNS Nameservers to / | ||
+ | cat > / | ||
+ | nameserver 192.168.1.1 | ||
+ | nameserver 8.8.8.8 | ||
+ | DNS | ||
+ | |||
+ | #VSwitch Configurations | ||
+ | |||
+ | esxcli network vswitch standard add --vswitch-name=vSwitch0 --ports=24 | ||
+ | esxcli network vswitch standard uplink add --uplink-name=vmnic0 --vswitch-name=vSwitch0 | ||
+ | esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch0 | ||
+ | esxcli network vswitch standard uplink add --uplink-name=vmnic2 --vswitch-name=vSwitch0 | ||
+ | esxcli network vswitch standard uplink add --uplink-name=vmnic3 --vswitch-name=vSwitch0 | ||
+ | esxcli network vswitch standard policy failover set --active-uplinks=vmnic0, | ||
+ | esxcli network vswitch standard portgroup policy failover set --portgroup-name=" | ||
+ | esxcli network vswitch standard portgroup add --portgroup-name=“VM“ --vswitch-name=vSwitch0 | ||
+ | esxcli network vswitch standard portgroup remove --portgroup-name=" | ||
+ | |||
+ | #Firstboot Section 2 | ||
+ | %firstboot --interpreter=busybox | ||
+ | |||
+ | #Disable IPv6 | ||
+ | esxcli network ip set --ipv6-enabled=false | ||
+ | #Reboot | ||
+ | sleep 30 | ||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | Hier noch ein Link, wie man es mit PXE boot macht… | ||
+ | https:// | ||
+ | nützlich auch: | ||
+ | https:// | ||
+ | |||
+ | |||
+ | es ist auch möglich die ks.cfg mit auf ein USB-Drive/ | ||
+ | Man kann so entweder per USB oder per virtual ISO voll elektrisch installieren: | ||
+ | https:// | ||
+ | |||
===== ESXi Passwort reset ===== | ===== ESXi Passwort reset ===== |