Import of workload domain fails with the error "Cluster does not have DVS shared by all the hosts for #####"
search cancel

Import of workload domain fails with the error "Cluster does not have DVS shared by all the hosts for #####"

book

Article ID: 408239

calendar_today

Updated On:

Products

VMware SDDC Manager VMware vCenter Server 8.0 VCF Operations

Issue/Introduction

When attempting to following the documentation to Import an Existing vCenter to Create a Workload Domain in VCF 9 an error may occur during the validation step when importing a vCenter 8.x machine, "Cluster does not have DVS shared by all the hosts for #####" even though all clusters in the vCenter do in fact have a shared DVS.

Environment

VCF 9.0

vCenter 8.x

Cause

If there exists a DVS in the vCenter environment that is being import which does not contain any hosts this error is reported.

Resolution

Utilizing the following powercli script will help identify any distributed virtual switches which contain no host.

ForEach ($vds in Get-VDSwitch) { If (!($vds | Get-VMHost)) { Write-Host $vds.Name } }

Once these distributed switches are removed from the vCenter inventory can attempt to re-run validation and will no longer fail.