During vCenter Server upgrade to VCF 9.0, an administrator will get this error message:
Please leave the Active Directory domain before proceeding https://knowledge.broadcom.com/external/article?articleId=373004
VCF 9.0
vCenter Server 7.x
vCenter Server 8.x
VCF 9.0 removes the support for joining an Active Directory domain from the vCenter Server.
Before upgrading to VCF 9.0, an existing vCenter Server Appliance from an older version must leave the Active Directory domain it is joined in. The vCenter Server administrator must manually leave the Active Directory domain and ensure alternative authentication.
Customers can use MFA through federated authentication. See here for more information on configuring federated authentication.
Leave Domain Using CLI
If the above steps fail to remove the vCenter from the domain,
/opt/likewise/bin/domainjoin-cli query/opt/likewise/bin/domainjoin-cli leaveor specify the domain explicitly:
/opt/likewise/bin/domainjoin-cli leave <DomainName.com>
After running these commands, please restart the vCenter Server.
If the leave command fails with the error: LW_ERROR_KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN
Please refer to the following KB article for troubleshooting steps: Unable to leave Active Directory Domain from UI or CLI