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

Reloading a vmx file without removing the virtual machine from inventory (1026043)

  • 39 Ratings


  • Changes are not recognized in vCenter Server when you edit a virtual machine's .vmx file.
  • If you use the Remove from Inventory option to remove the virtual machine, you must re-add it manually with the datastore browser which generates a new Inventory ID.


The virtual machine's .vmx configuration file can be reloaded from the command line. This operation does not generate a new Inventory ID (Vmid) for the virtual machine and allows it to stay in the same resource pool.


To resolve this issue, reload the virtual machine's .vmx configuration file.

To reload the virtual machine's .vmx configuration file, perform one of these options: 
  • Reload the configuration file of all the virtual machines on the ESXi/ESX host using a script by running this command:

    for a in $(vim-cmd vmsvc/getallvms 2>&1 |grep invalid |awk '{print $4}'|cut -d \' -f2);do vim-cmd vmsvc/reload $a;done

  • Reload the .vmx configuration file from the command line:
  1. Log in to the Local Tech Support Mode console of the ESXi/ESX host. For more information, see:

  2. Obtain the Inventory ID (Vmid) for the virtual machine using this command:

    # vim-cmd vmsvc/getallvms

    Note: The output shows virtual machines which are registered on the ESXi/ESX host.

    You see output similar to:

    Vmid Name File Guest OS Version Annotation
    2848 Win2003_storage_performance [local] Win .vmx winNetEnterpriseGuest vmx-07 To be used as a template

    In this example, the Vmid is 2848.

  3. Reload the .vmx file using this command:

    # vim-cmd vmsvc/reload Vmid


vm-configuration-file  virtual-machine-vmx-file

See Also

Update History

04/10/2013 - Added Scripting info to resolution. 01/10/2012 - Added ESXi info in resolution and ESXi to the product list. 04/29/2013 - Added command to reload configuration files of all the virtual machines on the ESXi/ESX host 10/11/2013 - Minor formatting change.

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.


  • 39 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.
  • 39 Ratings