Skip to content

Instantly share code, notes, and snippets.

@davidohne
Created March 8, 2024 21:55
Show Gist options
  • Save davidohne/f6d1893213347ec6c08b0afa4fb78cbb to your computer and use it in GitHub Desktop.
Save davidohne/f6d1893213347ec6c08b0afa4fb78cbb to your computer and use it in GitHub Desktop.
ESXI 7 or 8 network misconfiguration through upgrading

Symptom:

  • Settings on vSwitches can not be changed
  • Error in logs: "A specified parameter was not correct" and others
  • You can not add Portgroups or change/add uplinks

Reason:

  • In ESXI 7 (and eventually also 8) when removing additional uplinks from virtual switches and portgroup settings, unhealthy configuration parts are staying in the ConfigStorage

Proof:

  • Enable Shell and enter "esxcfg-vswitch -B both [YOUR PROBLEM-SWITCH-NAME"
  • Unhealthy parts inside of the network configuration will get displayed - remember them - you have to manually edit your configuration

Resolution:

  • Export the switch configuration: "configstorecli config current set -c esx -g network_vss -k switches -outfile tmp.json"
  • Resolve the errors
  • Write the edited switch configuration into the ConfigStorage: "configstorecli config current set -c esx -g network_vss -k switches -infile tmp.json"
  • Reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment