Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

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

Last Updated: 4/6/2021Categories: How toTotal Views: 52336Language:
Chinese (Simplified)JapaneseEnglish

22 like this article

Subscribe to get an email
newsletter with new updates

22 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Symptoms

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.

Cause

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.

Resolution

To resolve this issue, reload the virtual machine's .vmx configuration file.
Note: Configuration changes through .vmx file require the Virtual Machine to be Powered off.

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:

Log in to the Local Tech Support Mode console of the ESXi/ESX host. For more information, see:

Unable to connect to an ESX host using Secure Shell (SSH) (1003807)

Tech Support Mode for Emergency Support (1003677)

Using Tech Support Mode in ESXi 4.1 and ESXi 5.0 (1017910)

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.

Reload the .vmx file using this command:

# vim-cmd vmsvc/reload Vmid

Related Information

Configuration File has Unexpected Changes and during Backup Proxy Virtual Machine Terminates

Tech Support Mode for Emergency Support

Unable to connect to an ESX host using Secure Shell (SSH)

Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x

Virtual machines appear as invalid or orphaned in vCenter Server

仮想マシンの起動が、次のエラーで失敗する：Error : 'ethernet0.filter0.onFailure': DVFilter onFailure 'null' must be 'failOpen' or 'failClosed'

vMotion が 14% の時点で失敗し、次のエラーが表示される: 移行開始要求の待機中にタイム アウトになりました

VMware vRealize Automation でデプロイされた仮想マシンのパワーオンに失敗する、もしくはパワーオンできても CBT を有効化した SCSI ディスクが読み取り専用モードになる

インベントリから仮想マシンを削除せずに vmx ファイルをリロードする

vDGA で構成された Windows ゲスト OS で障害が発生して青色の診断画面が表示された後に、VMware ESXi 5.5.x ホストで障害が発生して紫色の診断画面が表示される

重新加载 vmx 文件而不从清单中移除虚拟机

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

Result 1 of 1

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vSphere ESXi

Related Versions:

VMware vSphere ESXi 6.7

VMware vSphere ESXi 6.5

VMware vSphere ESXi 6.0

VMware vSphere ESXi 5.5

VMware vSphere ESXi 5.1

VMware vSphere ESXi 5.0

Take Our Survey

Support Assistant