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.

Free(BSD)
Search for duplicated files

This will be short (but hopefully I will find more time to show entire process to search duplicated files together with some examples). In case you are searching for duplicated files I can recommend two software which actually rocks in openSource world

Azure
NFS issue, cannot be mounted or is not visible

The same kind of issue I have encountered numerous times while working across different environments and with various customers. The problem with NFS mounts connected from remote locations is so common. This issue extends beyond communication solely over WAN and also include connections between datacenters (DC) where we lack control …

Azure
Why Firefox is important and people should use this browser in 2024, my thoughts.

Can you remember the times when everyone was using Internet Explorer? Back in the ’90s and the early part of this century, Internet Explorer dominated the browser market. Software Incompatibility with Other Browsers Incompatibility issues with software and other browsers have been a persistent problem. Even in 2022, this remains …