VMware Cloud Community
dmalcor
Contributor
Contributor
Jump to solution

Fixing out of sync VMX configfile names and DisplayNames

We have a few VMs that have radically different names in the path and .vmx filenames from the display name. My question is what is the best practice to correct this (I'm a little curious as to how it happened, but I think that is more of a people problem).

Example:

\# vmware-cmd /vmfs/volumes/452d75c9-7ab9486d-6a8d-0017a445851b/[b]ANTXSM3/ANTXSM3[/b].vmx getconfig displayname

getconfig(displayname) = [b]ANNDWT01[/b][/u]

There are also config paths with spaces in them that need clean up too (we encourage the use of the "Notes" field more now). I'm thinking that cloning the VM to the better name and then just removing the ugly one from inventory.

Reply
0 Kudos
1 Solution

Accepted Solutions
chouse
Enthusiast
Enthusiast
Jump to solution

I believe I read somewhere that if you relocate the disk files to another datastore (while the VM is powered off obviously) then it will rename everything according to the display name.

View solution in original post

Reply
0 Kudos
3 Replies
juchestyle
Commander
Commander
Jump to solution

Cloning is probably the easiest way. You could also create folders with the new name you want, and then adjust the two vmdk files to reflect the new name. One of the vmdk files is a pointer file to the real vmdk file and you have to go into that file and adjust the pointer name if you follow through that way. If you decide to go that route, let me know and I can email you my directions on how to do that.

Respectfully,

Kaizen!
chouse
Enthusiast
Enthusiast
Jump to solution

I believe I read somewhere that if you relocate the disk files to another datastore (while the VM is powered off obviously) then it will rename everything according to the display name.

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

That is true and is the biggest pain in the but for me

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos