"Failed to add DV Port in vmkernel: Status (bad0006)= Limit exceeded" during VM creation
search cancel

"Failed to add DV Port in vmkernel: Status (bad0006)= Limit exceeded" during VM creation

book

Article ID: 327475

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:

During VM creation, vSphere CPI reports:

 

"Failed to add DV Port in vmkernel: Status (bad0006)= Limit exceeded"


Environment

VMware Tanzu Kubernetes Grid Integrated Edition 1.x

Cause

 

The allocated memory for a large number of virtual distributed switch ports exceeds the dvsLargeHeap parameter (DVSLargeHeapMaxSize)

 

In vSphere 7, it is a default of 300

 

This can go as high as 2048

 

Resolution

Increase the value of DVSLargeHeapMaxSize parameter on every affected ESXi host

 

This can be done using the esxcli cli

 

Verify the current configuration:

 

esxcli system settings advanced list -o /Net/DVSLargeHeapMaxSize

 

 

To update the setting:

 

  • Put the host in Maintenance Mode
  • Run the CLI command

esxcli system settings advanced set -o /Net/DVSLargeHeapMaxSize --int-value 512

 

  • Reboot the ESXi Host
  • Take the host out of Maintenance Mode

 

 

 


Additional Information

Impact/Risks:

VM could not complete creation and power on