Rename vm (files) on vmware workstation

15

3

When I rename a virtual machine in vmware workstation, the old file names (e.g.: the hard drive file name) remains.

How do I manually rename these without messing up the virtual machine?

I'm not using the newest vmware workstation version.

AO

Posted 2010-02-04T21:38:08.227

Reputation:

Answers

9

The vmx file that stores the virtual machine's configuration is a just a text file. You can just rename all of the vm's files and then edit the vmx to point to those files.

shf301

Posted 2010-02-04T21:38:08.227

Reputation: 7 582

1

Note that this is trickier if the VM has snapshots or if the VM is using split disks. Georgi Hristov's answer is more complete.

– jamesdlin – 2015-08-29T21:05:23.693

9

You can rename files of VM without any VMware software. Or using bare-minimum VMware Player only.

First stop virtual machine and exit VMware Player if you do not done already.

Go to VM data folder (the one with your big VM files) and find few descriptor files alongside many virtual disk (VMDK) files. You only need to edit two files with your favorite text editor, namely:

  1. In VMX file this three properties are related:

    • scsi0:0.fileName
    • nvram
    • extendedConfigFile

    --> Just edit/change all of them with new name.

  2. In VMDK file under # Extent description section you will find sub-vmdk file names that all should be renamed, acording to your new name.

  3. Rename (manually or with renaming software) all VMDK-files on the file system, but you should remain intact (do not edit) last few (most often 5) characters, which are indexes (i.e. -s001.vmdk;-s002.vmdk, etc.)

Georgi Hristov

Posted 2010-02-04T21:38:08.227

Reputation: 91

1But the VMDK is a huge binary file. How do your rename the sub-vmdk file names? – Avi – 2015-12-18T11:25:28.857

2

Probably like this: https://www.vmware.com/support/ws45/doc/disks_vdiskmanager_eg_ws.html

– Avi – 2015-12-18T12:01:24.527

vmware-vdiskmanager standalone is here – snipsnipsnip – 2018-07-04T09:01:13.257

1If you use split disks, the VMDK file is the hard disk hence it is a huge binary file and you cannot edit it. With split disks, the VMDK file is a text file. – Dennis G – 2018-11-22T12:20:26.547

1

I use the import option to do this. This way I can keep a base VM on a share someplace called base-XP or whatever, then when I need a new test VM, I do an import and the disks are named according to the setting I specify when going through the import wizard.

Rob Goodwin

Posted 2010-02-04T21:38:08.227

Reputation: 141

1

If you are running vmware workstation 8, you can use the cloning function (VM-> Manage -> Clone), you can then give a new name to the cloned VM.

xyutech

Posted 2010-02-04T21:38:08.227

Reputation: 43

2This does not rename the VMDK (hard-drive / disk) file names. – Jeroen Wiert Pluimers – 2014-04-10T13:12:14.697

0

You can follow what @Georgi Hristov suggested, but I found that the old name also exists within those vmware-*.log and -S00.vmdk files, so I took @xyutech's suggestion and found out using the built-in clone function is the easiest way to create a new VM with a different name. Here is a screen shot clone a vm.

One caveat, all cloned files will be place under the selected folder, so you should pick an empty folder when asked.

tdwong.star

Posted 2010-02-04T21:38:08.227

Reputation: 111