Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have been using vmware for years, not sure why I dont know the answer to this one. If I rename my virtual machine, simply right click, rename and rename the sever, does that rename the vmdk file as well, or do I need to manually rename the vmdk file?

Here is the deal... I need to build a new VM to replace an existing VM. I cant clone the current VM and I can build a new one then rename. I was going to rename the existing in Vcenter, build the new VM giving it the name of the old server. However, I dont want to run into any issues.

So in short... does anyone know if I just right click, chose rename if that renames the files as well?

Thanks,

share|improve this question
    
I don't have vmware up and running to test but my assumption would be that it would not change the name of the VMDK, this seem like it would cause issues with a running VM. Spin up a small VM and give it a try :D –  shtuff.it Jan 22 at 16:43
    
Why can't you clone it with a new name? –  HopelessN00b Jan 22 at 16:45
    
Its a production server that was not built correctly for the application being utilized. The C drive is over 100gb, if we clone we will have to resize C drive after the clone –  user1892330 Jan 22 at 21:23

2 Answers 2

I'm assuming you're using VMWare here... if so:

No, it does not rename the virtual machine files. It only changes the "display name" value in the .vmx file.

There are some some software solutions that can help with this. Trilead VMX is a freebie that can run a "replication" job that will properly clone a VM to a new name.

I don't know the specifics of your environment and what version/licensing you have, but there's a few methods for doing it depending on what you have available. Most times I end up doing it manually by SSH'ing in and using vmkfstools.

VMware has a helpful doc here:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1029513

share|improve this answer

By right clicking on an existing VM and renaming it the underlying vmdk(s), vmx and etc will not be renamed. It is possible to do a storage vMotion and have the underlying files be renamed during the storage vMotion. However this functionality has been removed in ESXi 5.x by default but it is possible to enable this if needed. The following KB article explains this in further detail. Good luck!

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2008877

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.