vCenter rename

So, you have just woke up this morning with thought “I am gonna to change vCenter name Today”. I have to warn you, not an easy task!!

First glance on article: https://blogs.vmware.com/vsphere/2019/08/changing-your-vcenter-servers-fqdn.html will give you some overview.

In general, you need to check a few prerequisites like (the most important):

  1. VCHA needs to be destroyed before FQDN change
  2. Hybrid Linked Mode needs to be recreated
  3. VC needs to be rejoined to AD (permission rights required)
  4. !! DNS (forward and reverse zone) update !!
  5. Check if whatever you use static DNS resolution (in /etc/hosts file, in application, scripts etc)

Than after some backup, snapshot etc you can start with VC naming using VAMI (https://VC:5480).

In VAMI choose networking -> network card -> edit -> next -> change FQDN and follow the rest of the wizard. Be warned that VC services be restart during during wizard process.

After this process if you are lucky, VC starts without any problems (this is in most cases) and you will have access to it. Additionally, you will have to recreate configuration for VCHA or Hybrid Linked Mode according to their procedures.

Unfortunately, in my example, after service restart some of the system information inside VC (such as logs) referred to the old name.

In such case you can check vCenter status by using the following procedure:

  1. Check the VC ID by using the following command: /usr/lib/vmidentity/tools/scripts/lstool.py list –url https://localhost/lookupservice/sdk –no-check-cert > out-full.txt. In file out-full.txt check what is a Sevice ID entry below “Service product: com.vmware.cis”. Service ID should have the following format: XXXXXXXXX-YYYY-AAAA-WWWW-ZZZZZZZZZZZZ
  2. /usr/lib/vmidentity/tools/scripts/lstool.py get –url https://localhost/lookupservice/sdk –id SERVICE_ID –as-spec –no-check-cert > /root/vcenter.spec
  3. Search in this file for old vCenter name and change this name to new one
  4. Reregister service by using the following command: /usr/lib/vmidentity/tools/scripts/lstool.py reregister –url https://localhost/lookupservice/sdk –no-check-cert –id SERVICE_ID –spec /storage/vc.spec –user administrator@vsphere.local –password “admin-password”
  5. Restart vCenter service (or whole server the best)

Check if everywhere vCenter name is currently displaying in the new form.

Helpful files:

  • /var/log/vmware/applmgmt/pnid_change.log
  • /usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid –server-name localhost
  • Files in location: /usr/lib/vmware-updatemgr/bin;
    • configvalues.txt 
    • extension.xml 
No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

VMware
VCF, backup configuration

Backup implementation for VMware component is fairly easy. Just the requirements is to configure SFTP server in proper way and make it network available to the VMware components. SDDC Manager and NSX Manager backup In VCF Operations it is possible to configure backup for SDDC Manager and NSX Manager. Go …

VMware
VCF Automation, fresh environment configuration with identity providers and access control.

Introduction Login Login as user admin to the Organization name: system or if selected manual: Check the connections (in Administration section), where you should see connection to the vCenter and NSX-t manager as those are provided automatically via VCF Operations: the same for VCF Instances: Also check your networking: Identity …

VMware
VCF SoS

SoS (Supportability and Serviceability) command can be used for troubleshooting purpose to generate VCF (per component) log bundle, massively enable/disable ssh service on ESXi, vCenter, password and certificates expiry status, verify cluster health and many other. while troubleshooting, the following commands can be helpful: