SoFunction
Updated on 2025-04-09

Solve the problem of vmx file that cannot open virtual machine by vmware

vmware cannot open the vmx file of the virtual machine

Damage situation

.vmx fileCorrupted, other files should be intact.

  • vmware version: 16 pro
  • The virtual machine system is: Galaxy Kirin

Repair method

1) Delete.vmx(such as ubuntu16.0.), and create a new one with the same name.vmxdocument;

2) Open the files in the virtual machine directory; (can be opened with VScode or Notepad++ and other software for convenient operation)

3) Find the following two statements in the file,

DICT — CONFIGURATION
DICT — USER DEFAULTS

Note: Don't copy this - search, just copy, such as CONFIGURATION

4) Copy the data between these two lines; (The two lines of the above flag are not required to be copied)

5) Paste to the newly created one.vmxin the file;

6) The following needs to perform the format operation of the copied content: (The shortcut is at the end of the article)

  • Delete the date and time flags ahead of each line, leaving only the following information;
  • For example:
2020-06-13T09:24:40.557+08:00| vmx| I125: DICT  = “8”
Modified to
 = “8”
  • Then delete the spaces in front of each line;
  • Finally, add English double quotes to the characters after the equal sign of all lines (be careful not to use double quotes in Chinese input);
  • For example: (If you already have English quotes, you don’t need to add them)
 = 8
Change to
 = “8”

7) Save the .vmx file and open the virtual machine.

PS: The shortcut used to modify the file above

Vertical column selection, used in vscode,Mid-key for mouse pulley

Delete the spaces in front of each line, use in vscode,shift+tab

Summarize

The above is personal experience. I hope you can give you a reference and I hope you can support me more.