This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vmware:esxi [2018/03/14 15:59] – [ESXi Passwort reset] mschubi | vmware:esxi [2024/01/11 10:46] (current) – [High pNic error rate detected. Check the host's vSAN performance view for details] mschubi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ESXi ====== | ====== ESXi ====== | ||
+ | |||
+ | ====== ESXi manuell updaten ====== | ||
+ | |||
+ | Nicht immer kann man ESXi über VUM/vLCM updaten. Eine schnbelle und einfache Variante ist über ein Depot File. | ||
+ | Diese Offline Bundles haben teilweise mehrere Installationsmöglichkeiten. | ||
+ | Gerade bei OEM Depots sind diese Namen sehr " | ||
+ | |||
+ | Im Folgenden Codeblock wird gezeigt, wie dieser Name ermittelt werden kann und wie dann das eigentliche update/ | ||
+ | Das Ausrollen der neuen VIBs geht recht fix und am Ende muss der Host nur manuell neu gestartet werden. | ||
+ | |||
+ | <code bash> | ||
+ | [root@esxxxx: | ||
+ | Name Vendor | ||
+ | ---------------------------------------------- | ||
+ | FJT-Addon-for-FujitsuCustomImage_7.0.3-530.1.0 | ||
+ | |||
+ | [root@esxxxx: | ||
+ | -offline_bundle.zip -p FJT-Addon-for-FujitsuCustomImage_7.0.3-530.1.0 | ||
+ | </ | ||
+ | |||
+ | ====== High pNic error rate detected. Check the host's vSAN performance view for details ====== | ||
+ | |||
+ | Es kann, muss aber nicht, am RX Buffer liegen.... | ||
+ | |||
+ | <code bash> | ||
+ | # Einstellungen testen und Max. Werte abfragen | ||
+ | esxcli network nic ring preset get -n vmnic0 | ||
+ | esxcli network nic ring current get -n vmnic0 | ||
+ | # Buffer auf 4080 stellen | ||
+ | esxcli network nic ring current set -n vmnic0 -r 4080 | ||
+ | </ | ||
+ | |||
+ | Generelle Tests mit iperf: | ||
+ | Sender: | ||
+ | <code bash> | ||
+ | [root@senderhost:/ | ||
+ | iperf 3.1.6 | ||
+ | VMkernel xxxxxxxxxxxxxxxxxx 7.0.3 #1 SMP Release build-22348816 Aug 30 2023 04:36:58 x86_64 | ||
+ | Control connection MSS 8948 | ||
+ | Time: Thu, 11 Jan 2024 09:03:11 GMT | ||
+ | Connecting to host ZIEL_IP, port 5201 | ||
+ | Cookie: xxxxxxxxxxxxxxxxxx.17049637 | ||
+ | TCP MSS: 8948 (default) | ||
+ | [ 4] local 10.30.98.22 port 56526 connected to 10.30.98.23 port 5201 | ||
+ | Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ ID] Interval | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 4] | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Test Complete. Summary Results: | ||
+ | [ ID] Interval | ||
+ | [ 4] | ||
+ | [ 4] | ||
+ | CPU Utilization: | ||
+ | snd_tcp_congestion newreno | ||
+ | rcv_tcp_congestion newreno | ||
+ | |||
+ | iperf Done. | ||
+ | </ | ||
+ | |||
+ | Empfänger: | ||
+ | <code bash> | ||
+ | [root@empfaenger:/ | ||
+ | ----------------------------------------------------------- | ||
+ | Server listening on 5201 | ||
+ | ----------------------------------------------------------- | ||
+ | Accepted connection from SENDER_IP, port 11289 | ||
+ | [ 5] local LISTEN_IP port 5201 connected to SENDER_IP port 56526 | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ ID] Interval | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] | ||
+ | iperf3: getsockopt - Function not implemented | ||
+ | [ 5] 10.00-10.10 | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | [ ID] Interval | ||
+ | [ 5] | ||
+ | [ 5] | ||
+ | ----------------------------------------------------------- | ||
+ | Server listening on 5201 | ||
+ | ----------------------------------------------------------- | ||
+ | |||
+ | </ | ||
+ | ====== Acceptance Level & VIB mit PowerShell ====== | ||
+ | |||
+ | <code powershell> | ||
+ | #List Acceptance Level | ||
+ | Foreach ($VMHost in Get-VMHost ) { $ESXCli = Get-EsxCli -VMHost $VMHost; $VMHost | Select Name, @{N=" | ||
+ | |||
+ | # list CommunitySupported VIBs | ||
+ | Foreach ($VMHost in Get-VMHost ) { $ESXCli = Get-EsxCli -VMHost $VMHost; $ESXCli.software.vib.list() | Where { ($_.AcceptanceLevel -ne " | ||
+ | |||
+ | #remove CommunitySupported VIB | ||
+ | Foreach ($VMHost in Get-VMHost ) { $ESXCli = Get-EsxCli -VMHost $VMHost; $ESXCli.software.vib.remove.invoke($null, | ||
+ | |||
+ | # set PartnerSupported | ||
+ | Foreach ($VMHost in Get-VMHost ) { $ESXCli = Get-EsxCli -VMHost $VMHost; $ESXCli.software.acceptance.Set(" | ||
+ | |||
+ | </ | ||
+ | ====== bootbank Problem und wenn das Kind in den Brunnen gefallen ist.... ====== | ||
+ | |||
+ | Problem: https:// | ||
+ | |||
+ | Wenn ein Host disconnected ist, und man nicht einfach mit den VMs ausschalten will, folgendes Vorgehen. | ||
+ | |||
+ | * auf dem Host mit '' | ||
+ | * die entsprechenden VMs im OS herunterfahren | ||
+ | * auf einem anderen ESXi Host per ssh oder console draufgehen | ||
+ | * dort die entsprechenden VMs, die als " | ||
+ | * dazu nutzt man '' | ||
+ | * kurz darauf verschwindet das " | ||
+ | |||
+ | ====== esxtop und Statistiken ====== | ||
+ | |||
+ | https:// | ||
+ | |||
====== VMFS on SD ====== | ====== VMFS on SD ====== | ||
Line 6: | Line 157: | ||
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 😊 | ||
+ | |||
+ | |||
+ | Aber mal ein Beispiel: | ||
+ | <code bash> | ||
+ | #Accept the VMware End User License Agreement | ||
+ | vmaccepteula | ||
+ | # clear partitions and install | ||
+ | clearpart --firstdisk=local –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 ===== | ||
Line 24: | Line 256: | ||
esxcfg-advcfg --set-kernel " | esxcfg-advcfg --set-kernel " | ||
</ | </ | ||
+ | |||
+ | |||
+ | ====== VxRail ====== | ||
+ | * MGMT vLANs setzen | ||
+ | * / | ||
+ | * vim-cmd vmsvc/ | ||
+ | * vim-cmd vmsvc/ | ||
+ | * esxcli network firewall ruleset list --ruleset-id sshClient | ||
+ | * vim-cmd vmsvc/ | ||
+ | * ssh -6 mystic@fe80:: | ||
+ | * / | ||
+ | * |