Search the VMware Knowledge Base (KB)
View by Article ID

Renaming a VM using PowerCLI script reverts the VM name to its original value (2144061)

  • 0 Ratings


Renaming a virtual machine through PowerCLI or any direct vCenter Server API script, and restarting the vCenter Server might revert the virtual machine name to its original value. The issue occurs as the VPX_ENTITY table is not updated, when we rename a virtual machine through PowerCLI.

This is fixed in vCenter Server 6.0 Update 2. If you see the issue even after upgrading to vCenter Server 6.0 Update 2, follow the steps mentioned in the below section.


Perform the following steps to fix the issue:

  1. Login to the database.
  2. Run the following queries to compare the virtual machine names in VPX_ENTITY and VPX_VM_CONFIG_INFO tables:
    select id,name from vpx_vm_config_info;
    select id,name from vpx_entity;
  3. If there is a mismatch, then update the virtual machine name in VPX_ENTITY table as the virtual machine name stored in the VPX_VM_CONFIG_INFO table by executing the below command:
    SET name = "name in vpx_vm_config_info"
    WHERE id = "mismatch_vm_name id";

Additional Information

For translated versions of this article, see:

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 0 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 0 Ratings