Rename virtual disk filename

I tried rename a vmdk file, but i get information message, like this



You can solve this, when you are going to login to esxi by SSH, and follow this steps below.

1 – Remove disk from VM, but be carefull, you must only remove, don’t delete!!!


2 – Login to ESXi with Putty

3 – cd vmfs/volumes/

4 – ls -l

Rename vmdk

5 –  cd “DS-ARCHIVE” (case sensitive!!)

6 – ls -l

Rename vmware vmdk

7 – cd vm-FILE

8 – ls -lah


9 – vmkfstools -E OldFileName.vmdk NewFileName.vmdk

10 – Add new named virtual disk file to VM

Source and more details: