Cannot create vSwitch or vSwitch portgroup on ESXi 7.0 : "A Specified Parameter was not set"
search cancel

Cannot create vSwitch or vSwitch portgroup on ESXi 7.0 : "A Specified Parameter was not set"

book

Article ID: 318032

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

There are two instances of this issue:

  1. Attempting to create a standard switch portgroup on ESXi 7.0 fails with "A Specified Parameter was not set".

    hostd.log shows:

    YYYY-MM-DDTHH:MM:SS.sssZ info hostd[####][Originator@####] sub=Hostsvc opID=####:#### user=vpxuser:####]Invalid shaping policy: shaper is enabled, but at least one of the avgbps, peakbps or burst is not set.
    YYYY-MM-DDTHH:MM:SS.sssZ info hostd[####][Originator@####] sub=Hostsvc opID=####:#### user=vpxuser:####]Invalid network policy: there are invalid properties in network traffic shaping policy.
    YYYY-MM-DDTHH:MM:SS.sssZ info hostd[####][Originator@####] sub=Hostsvc opID=####:#### user=vpxuser:####]Cannot add portgroup [VMotion]: invalid network policy specified:(vim.host.NetworkPolicy) {
    ...
    --> shapingPolicy = (vim.host.NetworkPolicy.TrafficShapingPolicy) {
    --> enabled = true,
    --> burstSize = 104857600,
    --> }

  2. The policy cannot be set for the vSwitch.

    hostd.log shows:

    YYYY-MM-DDTHH:MM:SS.sssZ info hostd[####][Originator@####] sub=Hostsvc opID=####:#### user=vpxuser:####]Cannot set policy for vswitch [vSwitch0], network policy is invalid: (vim.host.NetworkPolicy) {
    ...
    --> shapingPolicy = (vim.host.NetworkPolicy.TrafficShapingPolicy) {
    --> enabled = true,
    --> averageBandwidth = 2000000000,
    --> }
    --> }

Environment

VMware ESXi 7.0

Cause

This issue occurs because the system pulls traffic shaping policies from an existing vSwitch or port group to the newly created one. If these parameters in the ConfigStore are extremely large, hostd treats them as "unset," causing configuration validation to fail during the creation process.

Resolution

This issue is resolved in VMware ESXi 7.0 U3f (build number 20036589).

Workaround :
  1. Remove and recreate the portgroup which it is referencing in the error stack.

  2. Disable Traffic Shaping policies.
    esxcli network vswitch standard policy shaping set --vswitch-name <vSwitch> --enabled false

Additional Information

ESXi 7.0 の 標準スイッチ または ポートグループ の作成が「指定されたパラメータが正しくありません」というエラーで失敗する