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.
VCF 9.0
vCenter 8.x
If there exists a DVS in the vCenter environment that is being import which does not contain any hosts this error is reported.
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.