VMware Cloud Community
MariusRoma
Expert
Expert

Editing .vmx files

Sometimes I need to manually edit some .vmx files.

Usually I download the files from my ESXi server, edit them with Wordpad and upload them back.

Sometimes the uploaded files are not recognized and after updating I don't see the typical icon associated with .vmx files.

It look like a file format issue, because if I make the same changes on other .vmx files everything is ok.

What is the right procedure to manually edit a .vmx file using a Windows client?

What are the conditions where a .vmx file is not recognized?

Regards

marius

0 Kudos
5 Replies
rcporto
Leadership
Leadership

Here are some tips for editing vmx files: VMware KB: Tips for editing a .vmx file

And instead of using Wordpad, try using Notepad++.

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
cykVM
Expert
Expert

First of all I would not use Wordpad but a real text editor like Notepad++ (see: Notepad++ Home).

CoolRam
Expert
Expert

Something the situation where ; is detected as . or otherway round if it is not the rich test editor. Do edit the file in the rich editor.

If you find any answer useful. please mark the answer as correct or helpful.
0 Kudos
JarryG
Expert
Expert

There might be some problem with line-breaks: ESXi uses "unix-like" format, with CR. Windows uses CR+LF. You'd better use dos2unix/unix2dos converters when you transfer & edit unix-files on windows...

_____________________________________________ If you found my answer useful please do *not* mark it as "correct" or "helpful". It is hard to pretend being noob with all those points! 😉
0 Kudos
continuum
Immortal
Immortal

> What is the right procedure to manually edit a .vmx file using a Windows client?

IMHO the safest and most reliable way is to use WinSCP to connect to the ESXi.
Then use the filebrowser to change directory and doubleclick the file to edit.
That opens the embedded editor which produces clean results: no need to download at all.

Typical reasons why a vmx-file is not accepted:
-bad encoding parameter set
-missing quotes - or wrong quote-type (happens often after copy from websites or forums
-file is blank ...


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos