Quantcast
Channel: VMware Communities : Blog List - All Communities
Viewing all articles
Browse latest Browse all 3135

HowTo: Recreating a .vmx from the vmware.log file

$
0
0

In case a virtual machine configuration (.vmx) file becomes corrupt for whatever reason, you may see error messages like "Not a valid virtual machine configuration file", or "... syntax error in line X" when you try to start the VM.

 

VMware KB: Starting a virtual machine generates a syntax error provides some options for how to resolve such an issue. However, manually recreating the configuration file is somewhat cumbersome.

 

The attached batch file automates the task of recreating the .vmx file by simply dragging the vmware.log file and dropping it on the log2vmx.cmd file. The script parses the .log file for the required configuration data, and - if this information is found - creates a new .vmx file in the script's folder. If a .vmx file with the same name already exists, it will be renamed to .vmx.bak.


Viewing all articles
Browse latest Browse all 3135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>