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