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.

Linux
Migrate WordPress site to another hosting service.

IntroductionThis article details the migration of WordPress site (exactly this site you are now on) from one service provider to Amazon Lightsail. There might be various reason to do that (mine is outlined below) but in general I hope to share the message that especially with WordPress, migration can be …

VMware
VMware Workstation and Fusion can be installed and use for free (even for the enterprise)

For a while now, the VMware Workstation (and Fusion for MacOS) can be used without any additional fee for Personal use. That was a great Broadcom news and nice gesture from that software vendor. Recently Broadcom announced that the software will be available for all, even the commercial sector. This …

Linux
Salt, VMware implementation – part 1, introduction

As every IT administrator knows, the infrastructure (meaning storages, compute, VMware virtualisation stack) is just a fundaments to run various operating systems (OS) and finally (containerized) application. Therefore, installation of (let’s call it) infrastructure in the datacenter (SDDC), in that sense is just the beginning of the adventure. No wonder, …